: Redundant meta attributes I generate my meta tags dynamically, they render like this: <meta id="HeadContent_MetaDescription" name="description" content="Is Adobe Flash going out? And is HTML5 taking
I generate my meta tags dynamically, they render like this:
<meta id="HeadContent_MetaDescription" name="description" content="Is Adobe Flash going out? And is HTML5 taking over the world?"></meta>
The ID isn't needed, and it doesn't close with />. Is this OK? Or going to cause problems?
More posts by @XinRu657
1 Comments
Sorted by latest first Latest Oldest Best
That's not valid HTML as the <meta> tag has no closing element. So remove the </meta> tag and use the trailing /. Also, the ID attribute is not valid for meta tags. So you would need to change your meta tag to look like this to be valid xHTML:
<meta name="description" content="Is Adobe Flash going out? And is HTML5 taking over the world?" />
If you aren't use xHTML then you can omit the trailing slash:
<meta name="description" content="Is Adobe Flash going out? And is HTML5 taking over the world?">
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.