You are here: Re: What's wrong with this HTML (fails validation) ? « HTML « IT news, forums, messages
Re: What's wrong with this HTML (fails validation) ?

Posted by Dan on 02/16/07 22:57

On Feb 16, 12:41 pm, rem6...@yahoo.com (robert maas, see http://
tinyurl.com/uh3t) wrote:
> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> > "http://www.w3.org/TR/html4/strict.dtd">
>
> What should the corresponding meta be? Is it OK if I keep it
> as-is:
> <meta http-equiv="Content-Type" content="text/html;charset=us-ascii">

You're better off getting rid of the meta altogether, as it's merely a
cheap-plastic way of imitating a real HTTP header, which your server
ought to be sending in the first place as part of the information sent
via the HTTP protocol prior to the actual document contents.

But if you were to use meta elements, the only difference in them
between the HTML and XHTML versions would be that the XHTML one should
end with "/ >" while the HTML one ends with ">" alone.

--
Dan

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация