HTML: What is this tag?

Date August 2, 2007

Stumble it!

Enter your email address & Get Updates:

When I start a new HTML page, the following tag gets generated after the Doctype. Do you know what it is? Do I really need it or is it excess baggage?

|meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /|
I want to code all my pages using XHTML strict doctypes.

This is Character Encoding (Google it). It is used to tell HTML how to convert bytes into characters and AFAIK it will validate as XHTML. If you insist on using XHTML, the content-type should be set to application/xhtml+xml, and not text/html. Unfortunately, major browsers and search engines do not support application/xhtml+xml, which de facto makes proper use of XHTML impossible. One can of course send XHTML as text/html, but then there’s no point in using XHTML.

Want One of the Cheapest and Affordable Hosting?



What Next?


 Subscribe To GoogleLady

 Digg It

 Save This Page

 Sphinn It

 Stumble it!

 Favorite This Post

 

Get Updates In Your Email

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>