frankx - Linksetzer: semantisch sinvoller Tag für Fehlermeldungen

Beitrag lesen

Hellihello

http://www.w3.org/TR/html401/struct/global.html#h-7.5.2:
"In the following example, the SPAN element is used in conjunction with the id and class attributes to markup document messages. Messages appear in both English and French versions.

<!-- 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>

<!-- French messages -->
<P><SPAN id="msg1" class="info" lang="fr">Variable d&eacute;clar&eacute;e deux fois</SPAN>
<P><SPAN id="msg2" class="warning" lang="fr">Variable ind&eacute;finie</SPAN>
<P><SPAN id="msg3" class="error" lang="fr">Erreur de syntaxe pour variable</SPAN>"

http://blogs.sun.com/greimer/entry/html_class_attributes_aren_t:
"HTML's class attribute was meant to be used in several ways, not just as a CSS tie-in. According to the HTML spec, class attributes are a general-purpose semantic hint. Here's an example of such a usage:

<div class="calendar">"

http://www.w3.org/WAI/PF/adaptable/HTML4/embedding-20061212.html#terms:
"A state is a key-value pair, separated by a hyphen. For example, to represent that a checkbox control is currently checked, you could use class="axs checkbox checked-true". Since they are so common, a true boolean state may be represented simply by the state name. So instead of class="axs checkbox checked-true", you can simply say class="axs checkbox checked"."

Gruß,

frankx