W3C home > Mailing lists > Public > www-html@w3.org > June 2006

Re: Re: [XHTML 2.0] emphesis

From: Dustin <gohankid77@gmail.com>
Date: Fri, 23 Jun 2006 16:55:50 -0500
Message-ID: <72ab364a0606231455p1df8ef52vdd668b2ff9c9bbaf@mail.gmail.com>
To: "W3C Mailing Archives" <www-html@w3.org>
Classes and IDs with good semantic meaning are generally considered good
coding. Something as generic as "header1" is definitely bad, especially when
it becomes header 2 while continuing to display "header1" in the code
itself. Something descriptive about it should be there. How about something
like "header_title" for a Web page title, or perhaps the "header" is more of
a page banner, so "site_banner" might work.

CSS doesn't have to be semantic at all, but it is better to be semantic in
case you decide to allow your site to have multiple themes or something,
which use the same style sheets but different colors. The markup is the
backbone though, so that should be as semantic as possible without requiring
a lot of typing (e.g. the ev:listener element in the current XHTML
2.0draft[0] could be named "xmlevents:listener").
Received on Friday, 23 June 2006 21:55:56 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:13 UTC