You are here: Re: Opera Bug: need help « HTML « IT news, forums, messages
Re: Opera Bug: need help

Posted by Spartanicus on 08/09/05 22:10

Animesh Kumar <animesh1978@gmail.com> wrote:

>> Your doctype triggers quirks mode in most browsers. You should use
>> strict coding with a matching doctype, dump the mixup between XHTML and
>> HTML and the <center> and <font> crap.
>
>I see, so your reply suggests me that <center> is not suitable in HTML.

Nor any other type of presentational markup. HTML should be used to
structure and semantically mark up content. Styling such as alignment
should be done via CSS.

>I am looking at the w3.org site to find out which tags are allowed in
>HTML. Btw, does this mean XHTML supports <center> tag? The font tag was
>introduced in a jiffy. I will look again at it.

Use a strict doctype in your documents, you can then run your documents
through the w3c HTML validator and it'll throw errors when you use
presentational elements.

>> A document should be structured with at least one header, they should
>> not be used to select a font size, but in an hierarchical and successive
>> manner.
>
>Sorry, I didn't get your point here.

The first header in a document should be an h1, subsections below that
should be preceded by h2, subsections of the h2 section should be
preceded by an h3 etc.

>PS: any good tutorial on positioning?

Positioning is tricky to get right, budding CSS authors often make the
mistake of using positioning before they have the skills to do it right.
An example: http://homepage.ntlworld.com/spartanicus/temp.png

I'd advice to stay clear of positioning until you are skilled with CSS.

--
Spartanicus

 

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

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