You are here: Re: Font-family « HTML « IT news, forums, messages
Re: Font-family

Posted by Rik on 07/29/06 00:31

Luigi Donatello Asero wrote:
> "David Dorward" <dorward@yahoo.com> skrev i meddelandet
> news:eae8g9$6cv$1$8302bc10@news.demon.co.uk...
>> Luigi Donatello Asero wrote:
>>
>>>> Headings are block level elements and may be child elements of the
>>>> body.
>>
>>> Yes, but why do you not have a look at these examples?
>>> http://www.w3.org/TR/html401/struct/global.html#h-7.5.5
>>
>> Yes? You can mark up sections of a document using div elements. It
>> can be useful to do so under some circumstances. It isn't required,
>> and there is no mention of "SHOULD" there.
>>
>>>> The traditional method of identifying where one paragraph ends and
>>>> another begins on the WWW is through margins.
>>
>>> Every <div> should have an "id" or at least a "class".
>>
>> No. Only add markup if it is going to be useful. Giving an element
>> an id or class just because you are adding an element is wasteful.
>
> So, do you mean that W3 does not recommend to use a <div> for each
> heading ? Headings are useful because they give an overview for the
> readers and can be read by text browsers and robots as well

What's wrong with:
<hx>heading</hx>
<p>some text</p>
<p>some other text</p>
<hx>next heading</hx>
<p>some text</p>
<p>some other text</p>

When the pargraphs are styled indetically, there is no need for a containing
div.

Div's are to be used if no other element makes sense, don't just use them
because most browsers attach very little standard style, so it's more easily
molded to your wishes. Id's and classes can be usefull for effective markup
or scripting (like javascript). Id's and classes are never required.

Grtz,
--
Rik Wasmus

 

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

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