The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Technical SEO Issues
    4. Meta tag Syntax

    Meta tag Syntax

    Technical SEO Issues
    4 3 256
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • McCaldin
      McCaldin last edited by

      Hi,

      This might seem silly.

      What is the correct syntax for the meta tag used when noindexing webpages?

      I have "".  I have seen it both with and without the forward slash before the greater than sign.  Does it make any difference if the forward slash is present or not?

      Cheers

      1 Reply Last reply Reply Quote 0
      • GastonRiera
        GastonRiera last edited by

        Hi,

        I've seen the forward slash too. 
        But google does not use it in the search console help.

        Check it out here: 
        Block search indexing with meta tags - Google SC Help

        Hope it helps.
        GR

        McCaldin 1 Reply Last reply Reply Quote 2
        • netzkern_AG
          netzkern_AG last edited by

          It should not make any difference and is a question of style/syntax. The forward slash at the end is XHTML-Standard-Syntax. Sometimes, some validators may complain about one way of writing it or the other. Compare other Elements:

          works if you write it just once at the start of a new parapgraph. Properly, a paragraph should be encased by

          TextOfTheParagraph

          , a DIV goesDivContentetc. Some elements ("void elements") do not have a beginning and end as such, for example a line break (
          ) or an image () or meta tags. Those can be written just like before or in XHTML-Syntax
          indicating that the element is opened and then closed/finished by itself - there will not be a closing tag for it later on.

          Main point speaking for XHTML (HTML+XML) is that it is really well structured. Cf. http://www.w3schools.com/html/html_xhtml.asp

          Regards

          Nico

          1 Reply Last reply Reply Quote 1
          • McCaldin
            McCaldin @GastonRiera last edited by

            That makes sense.  Thanks

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            • H1 Tags the same as Title Tags and other meta questions
              Houses
              Houses
              0
              3
              629

            • Meta Title Tags
              KeriMorgret
              KeriMorgret
              0
              6
              775

            • Duplicate title tags and meta description tags
              RanjeetP
              RanjeetP
              1
              6
              1.6k

            • About Meta Tag Descriptions
              Confections
              Confections
              0
              4
              525

            • I use All in one SEO pack for wordpress and i i have 2 meta tags i need to delete them is this the meta description tag ?
              mad2k
              mad2k
              0
              2
              415

            • Google showing former meta tags in search results inspite of new tags being crawled by it
              sesertin
              sesertin
              0
              3
              558

            • How do you add a description to the Meta Description area to Tag Pages in Wordpress? This way I do not get the errors: "Missing Meta Description Tag" from SEOMoz Bot? Thanks!
              kurtray
              kurtray
              0
              9
              3.4k

            • Meta tags question - imagetoolbar
              Theo-NL
              Theo-NL
              0
              3
              861

            Get started with Moz Pro!

            Unlock the power of advanced SEO tools and data-driven insights.

            Start my free trial
            Products
            • Moz Pro
            • Moz Local
            • Moz API
            • Moz Data
            • STAT
            • Product Updates
            Moz Solutions
            • SMB Solutions
            • Agency Solutions
            • Enterprise Solutions
            • Digital Marketers
            Free SEO Tools
            • Domain Authority Checker
            • Link Explorer
            • Keyword Explorer
            • Competitive Research
            • Brand Authority Checker
            • Local Citation Checker
            • MozBar Extension
            • MozCast
            Resources
            • Blog
            • SEO Learning Center
            • Help Hub
            • Beginner's Guide to SEO
            • How-to Guides
            • Moz Academy
            • API Docs
            About Moz
            • About
            • Team
            • Careers
            • Contact
            Why Moz
            • Case Studies
            • Testimonials
            Get Involved
            • Become an Affiliate
            • MozCon
            • Webinars
            • Practical Marketer Series
            • MozPod
            Connect with us

            Contact the Help team

            Join our newsletter
            Moz logo
            © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
            • Accessibility
            • Terms of Use
            • Privacy