Prev | Current Page 1104 | Next

L. McColl-Sylvester and F. Ponticelli

"Professional haXe and Neko"


Value type: Length
Appendix A: Semantic HTML
600
Attribute Value Types
The attribute value can be composed of fixed keywords or arbitrary text; the following table defines the
acceptable value types used in many common attributes.
Attribute Value Type Description
Boolean Some attributes may exist without any value at all; the element gains
information by the presence or absence of the attribute itself. In HTML, an
attribute without a value is legal but in XHTML it is not (XML has a stricter
syntax over HTML). To be XHTML compatible the attribute value will be
the same as the attribute name (for example: selected= ??? selected ??? ).
To express the false condition of a Boolean attribute just remove the
attribute and its value.
CData It is a sequence of arbitrary characters. Some characters can create
ambiguous situations (such as using double - quotes in a double - quoted
attribute value) and must be replaced by their entity equivalent.
The more frequent and problem prone characters/entities are:
& lt; representing the < sign.


Pages:
1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116