Forum Moderators: open

Message Too Old, No Replies

Two different Meta Tags

         

yanov

7:32 pm on Oct 18, 2004 (gmt 0)

10+ Year Member



Is there a difference between these two meta tags? And is there is what is it?:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<META http-equiv=content-type content=text/html;charset=iso-8859-1>
Thank you,
Asen Yanov

pageoneresults

7:50 pm on Oct 18, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Yes. The second one is invalid markup. From an HTML/XHMTL standpoint, this would be the preferred format...

<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">

All lower case and all attributes quoted.

This example will not validate due to missing quotes and improper formatting.

<META http-equiv=content-type content=text/html;charset=iso-8859-1>

When in doubt, always validate your pages to confirm your suspicions.

yanov

9:46 pm on Oct 18, 2004 (gmt 0)

10+ Year Member



and what is its funcion? :)
I know what these do:
<META content="bla bla" name=Description>
<META content="bla bla" name=keywords>
but don't know the other's function.
Thank you.

Dreamquick

11:11 pm on Oct 18, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The clues in the first part "content-type" ... it's giving details of the MIME type for the page (text/html) as well as the character set it was designed for (iso-8859-1).

- Tony