Mobile app version of vmapp.org
Login or Join
XinRu657

: 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

@XinRu657

Posted in: #Html #MetaDescription

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?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @XinRu657

1 Comments

Sorted by latest first Latest Oldest Best

 

@Kristi941

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?">

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme