Is my meta tag code right?

Discussion in 'HTML & Website Design' started by PeterA, May 11, 2009.

  1. #1
    Hi everyone,

    Hey I was trying one of these on page seo checkers and put my site in and it threw up this meta tag error:

    There seems to be a problem. The most common problem is incorrect formatting. Make sure your format is meta name=xxxx content=xxxx. Also ensure the element is correctly closed.

    Are my meta tags formatted right? Here one now:
    <meta name="Description" content="Mig welding is a very common and used throughout the world. Is the easiest process to learn how to weld.">

    The only thing I might see is that some other pages on other sites will have a forward slash at the end of the code like this: "/>

    1. Do I need this slash?
    2. Is that what the problem is?

    Used this checker: http://www.seedkeywords.com/pagecheck/

    Peter
    Australia
     
    PeterA, May 11, 2009 IP
  2. technista

    technista Guest

    Messages:
    71
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Well I do think that you need the forward slash at the end, but it seems to me that these site "analysers" are not perfect. Heck I even checked google on it and they said the exact same message, so I wouldn't trust it.
     
    technista, May 11, 2009 IP
  3. ExtremeData

    ExtremeData Well-Known Member

    Messages:
    450
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    125
    #3
    You need the slash if your page is coded into XHTML, if is coded into HTML you don't need the slash.
    Check if your doctype (should be the first line into your document source) is HTML or XHTML .
     
    ExtremeData, May 11, 2009 IP
  4. qazu

    qazu Well-Known Member

    Messages:
    1,834
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    165
    #4
    What the forward slash does is close the tag. For XHTML code to be valid you must close all tags, even ones that don't have any content, like <br />, <hr />, meta tags, image tags, etc. The page still works without the forward slash at the end, it's just not valid XHTML code though.
     
    qazu, May 11, 2009 IP
  5. melbel

    melbel Notable Member

    Messages:
    2,373
    Likes Received:
    241
    Best Answers:
    0
    Trophy Points:
    230
    #5
    I ran my site through that and it said the same thing. There is no issue with my site for SEO, either... I know that for a fact.
     
    melbel, May 11, 2009 IP
  6. uldisx1

    uldisx1 Active Member

    Messages:
    212
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    73
    #6
    at the end you need to write />

    <meta name="description" content="Mig welding is a very common and used throughout the world. Is the easiest process to learn how to weld." <meta name="Description" content="Mig welding is a very common and used throughout the world. Is the easiest process to learn how to weld." />
     
    uldisx1, May 11, 2009 IP
  7. PeterA

    PeterA Guest

    Messages:
    107
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    So whats the verdict then?

    My page just seems to be HTML only, so just leave it then?
     
    PeterA, May 11, 2009 IP
  8. ExtremeData

    ExtremeData Well-Known Member

    Messages:
    450
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    125
    #8
    If you give us a link to the page will can help you.
     
    ExtremeData, May 11, 2009 IP
  9. PeterA

    PeterA Guest

    Messages:
    107
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    PeterA, May 12, 2009 IP
  10. ExtremeData

    ExtremeData Well-Known Member

    Messages:
    450
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    125
    #10
    ExtremeData, May 12, 2009 IP
  11. hostcoin

    hostcoin Peon

    Messages:
    75
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Well, It depends on the HTML Document Type.

    e.g
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">

    Here all HTML tags should ended with />
     
    hostcoin, May 12, 2009 IP