|  | Posted by Luigi Donatello Asero on 05/07/06 00:53 
"Jonathan N. Little" <lws4art@centralva.net> skrev i meddelandetnews:445ce21a$0$3681$cb0e7fc6@news.centralva.net...
 > Luigi Donatello Asero wrote:
 > > "Jonathan N. Little" <lws4art@centralva.net> skrev i meddelandet
 > <snip>
 > >> Personally I like to name CCS class that describe the function of
 styled
 > >> element, e.g., class="pictureGallery", class="itemDesc", or
 > > class="currency"
 > >> "section" seems to generic, "articleBody" or "travelPicture"... but to
 > >> each his own...
 > >
 > >
 > > http://www.w3.org/TR/html401/struct/global.html#h-7.5.2
 > >
 > >
 >
 > Okay any your point being? Seems to parallel what I wrote.
 >
 > W3C:
 > The id attribute has several roles in HTML:
 >
 >      * As a style sheet selector.
 >      * As a target anchor for hypertext links.
 >      * As a means to reference a particular element from a script.
 >      * As the name of a declared OBJECT element.
 >      * For general purpose processing by user agents (e.g. for
 > identifying fields when extracting data from HTML pages into a database,
 > translating HTML documents into other formats, etc.).
 >
 > The class attribute, on the other hand, assigns one or more class names
 > to an element; the element may be said to belong to these classes. A
 > class name may be shared by several element instances. The class
 > attribute has several roles in HTML:
 >      * As a style sheet selector (when an author wishes to assign style
 > information to a set of elements).
 >      * For general purpose processing by user agents.
 > <!-- English messages -->
 > <P><SPAN id="msg1" class="info" lang="en">Variable declared twice</SPAN>
 > <P><SPAN id="msg2" class="warning" lang="en">Undeclared variable</SPAN>
 > <P><SPAN id="msg3" class="error" lang="en">Bad syntax for variable
 > name</SPAN>
 >
 >
 > msg1, msg2, & msg3 act as anchors on the page. Class names like "error"
 > describe the purpose of the styling not as what some folks do and have
 > class names like "redBold" nor so generic as "section".
 
 
 So, you did not notice which class names they used themselves......
 --
 Luigi Donatello Asero
 https://www.scaiecat-spa-gigi.com/it/svezia.html
 今天二零零六年五月六日
 星期六
 [Back to original message] |