Meta Description & Meta Keyword - Order In Code

4 replies
  • SEO
  • |
Hi,

Is it mandatory to have all the meta
<meta name="description"
<meta name="keywords"
<meta name="robots"
<META NAME="ROBOTS" CONTENT="NOODP, NOYDIR">

All consecutively underneath the <Title> tag for purposes of clean code?

Or can you have <title> and then some javascript, and then place your meta tags underneath the javascript?

Any of this Mandatory / Optional , and why?

Lastly, would you put <META NAME="ROBOTS" CONTENT="NOODP, NOYDIR">
on all pages of the site, or just the home page, and why?

Thanks
#code #description #keyword #meta #order
  • Profile picture of the author CMartin
    Originally Posted by VegasLights View Post

    Is it mandatory to have all the meta
    <meta name="description"
    <meta name="keywords"
    <meta name="robots"
    <META NAME="ROBOTS" CONTENT="NOODP, NOYDIR">

    All consecutively underneath the <Title> tag for purposes of clean code?
    It's not mandatory, but it helps a lot when reading code ;-)
    Or can you have <title> and then some javascript, and then place your meta tags underneath the javascript?
    Yep... as long they are inside the HEAD tag, it works... but again, when reading the code it's easier if they are placed below the TITLE.

    Any of this Mandatory / Optional , and why?
    They are all optional. Why? Because they are ;-)
    But you should use at least the description and keywords meta tags, although the SEs might simply ignore the keywords tag. Off course that if you have a page that you don't want to be indexed you should use the robots meta tag with "NOINDEX" (and "NOFOLLOW" if you don't want the SEs to follow any links on that page).

    Lastly, would you put <META NAME="ROBOTS" CONTENT="NOODP, NOYDIR">
    on all pages of the site, or just the home page, and why?
    It depends on what are you trying to do. If the main page is listed at OOP and Yahoo directory and if you don't want the SEs to use those descriptions (from OOP and YDIR) in their SERPs, then you should use that tag. The SEs might use the text in the description meta tag or some parts of the body text.
    I really don't know if those instructions have any influence in the other pages of the domain if they are not listed in those directories... just make a test and see how it works.

    Carlos
    {{ DiscussionBoard.errors[21324].message }}
    • Profile picture of the author Dave_Kelly
      As Carlos said, clean code is always preferrable, especially when you have to work on the code.. but I don't know of any data that would show that the order of the tags (as long as they are where they belong) will make any difference

      Dave
      {{ DiscussionBoard.errors[21422].message }}
      • Profile picture of the author JaturontThan
        The title is the most important part of the header. Many times Google shows meta description on SERPs. So writing attractive meta description is something you should consider.

        Don't write meta description for the search engine, write attractive meta description for people who read it.
        {{ DiscussionBoard.errors[22780].message }}
  • Profile picture of the author angilina
    Keyword tag no longer is useful. The only meta tag that is helpful is the description meta tag and the other tag that is improtant is the title tag.
    {{ DiscussionBoard.errors[23676].message }}

Trending Topics