head meta questions.

Discussion in 'HTML & Website Design' started by wacamoi, Oct 9, 2008.

  1. #1
    my questions are:

    which format is correct? use "/>" or ">" at the end?
    <meta name="keywords" content="____________" />
    <meta name="description" content="____________" />

    <meta name="keywords" content="____________" >
    <meta name="description" content="____________" >

    and is there any maximum length for meta keywords, description and title?

    thanks


    Regards,
     
    wacamoi, Oct 9, 2008 IP
  2. MikeHayes

    MikeHayes Peon

    Messages:
    95
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi,

    I don't use the / and have no problems.

    Mike
     
    MikeHayes, Oct 9, 2008 IP
  3. flatroxs

    flatroxs Banned

    Messages:
    396
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    This is Right
    <meta name="keywords" content="____________" >
    <meta name="description" content="____________" >
     
    flatroxs, Oct 10, 2008 IP
  4. wacamoi

    wacamoi Peon

    Messages:
    810
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #4
    well DP use

    <meta name="keywords" content="____________" />
    <meta name="description" content="____________" />
     
    wacamoi, Oct 10, 2008 IP
  5. marco786

    marco786 Banned

    Messages:
    42
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    If you want to validate your site according to W3C format for SEO reasons then < " " /> is the perfect one and <> will show you the warning....
    Thank you.
     
    marco786, Oct 10, 2008 IP
    wacamoi likes this.
  6. garrettheel

    garrettheel Peon

    Messages:
    341
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #6
    The /> is needed to be valid xhtml, I believe. Basically, it means that it is self closing. Just like <input /> and <br />.

    Basically, if you want your site to validate as xhtml, you'll need />
     
    garrettheel, Oct 10, 2008 IP
    wacamoi likes this.
  7. rajku

    rajku Member

    Messages:
    37
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    33
    #7
    garrettheel is right. The end slash works as a closing tag for those tags that dont have a defined closing tags. Omitting that wont make a visual difference either in html or xhtml, but will cause problem in validating the site if its defined as xhtml.
     
    rajku, Oct 10, 2008 IP
    wacamoi likes this.