You are here: Re: Help with DOCTYPE « HTML « IT news, forums, messages
Re: Help with DOCTYPE

Posted by WD10 on 10/20/22 11:25

On Wed, 31 Aug 2005 11:29:35 -0700, Saggy wrote:

> I have designed a webpage that starts with <html> and looks OK....
> however I think I want to put a DOCTYPE tag in front of it (a spider
> simulator told me to).... and when the DOCTYPE tag includes the
> following ..
>
> "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd"
>
> my website is messed up, in particular, a table I positioned using
>
> style="position:absolute; left: 10; top:65"
>
> now is not positioned correctly. What is going on? Do I need that
> line in the DOCTYPE tag, if so, how to get the table in the right
> place??????

Are you using Internet Explorer? If you use something like

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

it switches on "standards compliant mode".

If you just use something like

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

you will be in "quirks mode".

A list of DOCTYPES is here:
http://www.w3.org/QA/2002/04/valid-dtd-list.html

This page is about XHTML, but explains standards compliant and quirks
modes:
http://www.w3.org/International/articles/serving-xhtml/#quirks

 

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

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