You are here: Re: What for does one need doctype? « HTML « IT news, forums, messages
Re: What for does one need doctype?

Posted by Chaddy2222 on 11/25/67 11:48

test@loctopus.com wrote:
> Hi everybody,
>
> What for does one need to use doctype? I did not put this tag into my
> HTML code and everything looks OK (besides that HTML-validator tells me
> that my document is not valid). Can the absence of the doctype lead to
> more significant problems?
Well, in a lot of ways yes.
The document type decleration (DTD) tells the web browser what type the
document is and what set of rules to use when displaying the website.
As an example, when a half doc type is used, that validates, it gives
the browser some clue as to how to read or pass the source code of the
page, if a half doc type is used, the browser will use quirks mode,
even if the page validates, for a site to be in standards compliant
mode, it needs the full W3C identifyer.
While a page may look ok in your web browsers in full quirks mode, you
need to make sure your pages validate so they work on other devices
such as mobile phones.
It should also be noted that my site does validate, however when I do a
re-design soon I will be transfering the DTD to a strict DTD rather
then transitional.
--
Regards Chad. http://freewebdesign.cjb.cc/

 

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

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