Meta tag Syntax
-
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
-
That makes sense. Thanks
-
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
-
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 HelpHope it helps.
GR
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
What is the correct Canonical tag on m.site?
We have 2 separate sites for desktop (www.example.com) and mobile (m.example.com) As per the guideline, we have added Rel=alternate tag on www.example.com to point to mobile URL(m.example.com) and Rel=canonical tag on m.example.com to point to Desktop site(www.example.com).However, i didn't find any guideline on what canonical tag we should add ifFor Desktop sitewww.example.com/PageA - has a canonical tag to www.example.com/PageBOn this page, we have a Rel=alternate tag m.example.com/pageAWhat will be the canonical we should add for the mobile version of Page Am.example.com/PageA - Canonical tag point to www.example.com/PageA -or www.example.com/PageB?Kalpesh
Technical SEO | | kguard0 -
Meta Description Being Picked up from another site!?
Hi, when we search for a phrase (which is the most searched for phrase for our company) the meta description which is displayed isnt the one we set, and it hasnt picked it up from any text on the page. The description is incorrect, it says we have an office in a city that we dont, and it just isnt a very good description generally. What has been suggested to us by our website developers is that the description is being picked up by google from a website which lists companies details. The description which is displayed on that website, is the same as the description which is shown for our company in the search results. But is it possible for Google to ignore the meta description which is set in our homepage and the other text on the home page, and pickup the text from another website and use it as our description? Many Thanks
Technical SEO | | danieldunn100 -
Canoical tags how do i use them
Hi i have this coming up on the report for my url www.in2town.co.uk but i am not sure how to use the canonical tag. I am using joomla and would be grateful if anyone could please give me advice on how to use this. Canonical URL Tag Usage Moderate fix <dl> <dt>Number of Canonical tags</dt> <dd>0</dd> <dt>Explanation</dt> <dd>Although the canonical URL tag is generally thought of as a way to solve duplicate content problems, it can be extremely wise to use it on every (unique) page of a site to help prevent any query strings, session IDs, scraped versions, licensing deals or future developments to potentially create a secondary version and pull link juice or other metrics away from the original. We believe the canonical URL tag is a best practice to help prevent future problems, even if nothing is specifically duplicate/problematic today.</dd> <dt>Recommendation</dt> <dd>Add a canonical URL tag referencing this URL to the header of the page.</dd> <dd>many thanks for your help
Technical SEO | | ClaireH-184886
</dd> </dl>0 -
Canonical tags
How hard is it to put in Canonical tags on a webpage? My web guy didn't do it because he put in redirects in place for all old URLs and all content
Technical SEO | | Boodreaux
(except error pages and advanced searches) should have a unique URL. By not having canonical tags does it lose link juice? Not sure if that question makes sense. 🙂 Poo1 -
Tags causing Duplicate page content?
I was looking through the 'Duplicate Page Content' and Too Many On-Page Link' errors and they all seem to be linked to the 'Tags' on my blog pages. Is this really a problem and if so how should I be using tags properly to get the best SEO rewards?
Technical SEO | | zapprabbit1 -
Title Tag Wordpress
I need to know how can I personalize the title tag individually in my categories?
Technical SEO | | nafera20 -
Using a canonical tag to eliminate ID variables?
My research on seomoz has resulted in conflicting ideas regarding the canonical tag. One article says avoid it, the other says embrace it. We have fixed a majority of our architecture problems using redirects for duplicate content, however, when we send out newsletters we still have these pesky tracking ids. I figured out how to remove them from analytics, but am unsure of how this affects our SEO. An example of one of our links is: https://www.quicklearn.com/transcript/?utm_source=news101011&utm_medium=e&utm_campaign=newclass&nlid=news101011&UID=2287 The original url being www.quicklearn.com/transcript/ the custom (non-Google) variables being nlid and uid. Is this a problem? Do I need rel cononical tags on each and every page?
Technical SEO | | QuickLearnTraining0