Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: DOCTYPE & Meta Content  (Read 3658 times)

0 Members and 1 Guest are viewing this topic.

Barnum

    Topic Starter


    Rookie

    DOCTYPE & Meta Content
    « on: November 25, 2008, 03:14:53 PM »
    Is this information placed on the first page only (index) or does it need to be on each html page?  Also how important are these items? 

    ChrisXPPro



      Adviser

    • Forever Learning
    • Thanked: 4
      • ACB Systems
    • Computer: Specs
    • Experience: Experienced
    • OS: Windows XP
    Re: DOCTYPE & Meta Content
    « Reply #1 on: November 26, 2008, 04:43:36 PM »
    Doctype should be on each page - and IMO meta data can also be repeated - I have all that within a template usually and so it gets repeated, although the homepage is I reckon the most important for all that - it should be the first page to get spidered.  If you happen to use frames, make sure all your data is in its frames page head area.

    A starter page from Dreamweaver gives this .......

    Code: [Select]
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Untitled Document</title>
    </head>

    <body>
    </body>
    </html>

    Make sure no space left above the doctype page code start, unless adding in some php initially or a cgi call, but still no white space. Your meta data can include content, keywords, author - numerous options but, keep a keywords list IMO 32 items max - search engines will reject ultra long strings of keywords.
    Ain't technology great - until it goes wrong!

    busweb



      Greenhorn

      Re: DOCTYPE & Meta Content
      « Reply #2 on: December 13, 2008, 01:55:11 PM »
      It should be on every page and it is important because spiders should be able to read your content. Your pages will be hard to spider and index if they have codification errors. You should check your HTML code with The W3C Markup Validation Service.

      kpac

      • Web moderator
      • Moderator


      • Hacker

      • kpac®
      • Thanked: 184
        • Yes
        • Yes
        • Yes
      • Certifications: List
      • Computer: Specs
      • Experience: Expert
      • OS: Windows 7
      Re: DOCTYPE & Meta Content
      « Reply #3 on: December 13, 2008, 02:52:24 PM »
      Your pages will be hard to spider and index if they have codification errors.

      Not entirely correct, because most spiders now use the robots.txt file.