Webkiller Posted September 20, 2010 Report Posted September 20, 2010 W3C is telling me to close the meta tags like this /> and not like this >. Even websites all over the web say close like this > including major search engines like google and bing and yahoo. I mean would it throw off your meta tag in SEO to close it like />. I bet it wouldn't but you never know with all the little stuff these days???
Wickham Posted September 20, 2010 Report Posted September 20, 2010 (edited) It depends whether your doctype is HTML or XHTML. HTML strict and transitional and framesets should have only > to close meta tags and several other tags like img br hr input etc. XHTML doctypes must have the above tags closed with /> and must have lower case for code markup (tag names). Using the wrong closing tag will raise errors in a validator, but the page may still display OK as browsers often disregard errors. I doubt if it affects SEO. Edited September 20, 2010 by Wickham
Webkiller Posted September 21, 2010 Author Report Posted September 21, 2010 It depends whether your doctype is HTML or XHTML. HTML strict and transitional and framesets should have only > to close meta tags and several other tags like img br hr input etc. XHTML doctypes must have the above tags closed with /> and must have lower case for code markup (tag names). Using the wrong closing tag will raise errors in a validator, but the page may still display OK as browsers often disregard errors. I doubt if it affects SEO. Just gave your rep for a great comment.
Kyle Undefined Posted September 25, 2010 Report Posted September 25, 2010 I know it's an old post (kinda), but wanted to clarify that how you close a tag doesn't affect SEO.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now