Re: About charset setting and replacing



gmclee@xxxxxxxx writes:
I am not quite familiar with HTML,

See http://www.w3.org/TR/HTML4/ for the official specifications.

As you mention above, for both HTML
and XHTML, if the following valid ?

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

No - this is valid in HTML, but not in XHTML. Internet Explorer does
not support XHTML and treats it as if it were HTML. You may find in
XHTML source documents something like this:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
which is valid in XHTML but not valid in HTML.

--
Chris
.



Relevant Pages

  • Re: Anyone else noticed this issue?
    ... The "self-closing tag" idea, often advertized as fundamental to XHTML, is generally misunderstood and it wasn't a great idea from the beginning. ... By HTML _specifications_ up to and including HTML 4.01, the slash has a special meaning, but completely different from XHTML rules. ... HTML is best learned from books on HTML. ...
    (alt.html)
  • Re: XHTML vs HTML
    ... If you can't raionally argue why XHTML should or should not be persued and ... we're talking about XML here. ... the information that HTML doesn't cut it anymore is nuts. ... into virtually *any* other data format. ...
    (microsoft.public.frontpage.programming)
  • Re: Anyone else noticed this issue?
    ... and never has been XHTML. ... The mark-up you are using is tag-soup HTML ... But like any assertion that assertion can be a false ...
    (comp.lang.javascript)
  • Re: XHTML or HTML 4 ?
    ... I personally moved from XHTML 1.0 strict to HTML 4.01 strict about a year ago after reading ... Say NO to XHTML ... Both lists above are valid HTML 4.01 strict but there is one which will be parsed faster in all modern browsers. ...
    (alt.html)
  • Re: XHTML vs HTML
    ... XHTML pages correctly) what are the benefits to coding now with XHTML ... we're talking about XML here. ... the information that HTML doesn't cut it anymore is nuts. ... into virtually *any* other data format. ...
    (microsoft.public.frontpage.programming)