On 7/14/05, victor NOAGBODJI <[EMAIL PROTECTED]> wrote: > AFAIK, DIVs are to section a page (maybe I'm wrong, as i'm still a > beginner). When learning CSS I use to write things like this: > <div id="title">My Title</div>
A div is a generic block element. It is used when you have a need to mark up some content without mentioning any semantics (but you do want to add style, scripting, or whatnot). > One day, I has been told that this is bad, according to web standard > accessibility (or something like that) so I was told to do this: > <h1 id="title">My Title</h1> In this case, you have a heading, so the semantics you give to it should say that it is a heading. Failing to do so introduces problems for non-CSS browsers, search engine indexers, non-visual browsers, etc, etc. > Now I realise that using the later give me more problems. Because when it's > a Div you have to set many attributes. Whereas h1,h2,h3....predifined tags > have different preset attributes, that varies even with browsers. > What's do you think of this? CSS gives presentational hints. It does not absolutely control the way content is rendered. This is perfectly fine. Welcome to the way the web works - it isn't the same as print media. -- David Dorward <http://dorward.me.uk><http://blog.dorward.me.uk> ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/