Number Attribute Type


 

The Number Attribute Type is a data type defined by XHTML Modularisation 1.1, declared in the DTD as XML 1.0 type CDATA.
Reference: *W3C - XHTML Modularisation 1.1 - Attribute Types

Specific Attributes with Type Number

  1. cols - #REQUIRED:
    This is declared on the element: textarea
  2. colspan - default="1":
    This is declared on the elements: th, td
  3. maxlength:
    This is declared on the elements: input type="text", input type="password"
  4. rbspan - default="1":
    This is declared on the element: rt
  5. rows - #REQUIRED:
    This is declared on the element: textarea
  6. rowspan - default="1":
    This is declared on the elements: th, td
  7. size:
    This is declared on the elements: input type="text", input type="password", input type="file", select
  8. span - default="1":
    This is declared on the elements: col, colgroup
  9. tabindex:
    This is declared on the elements: a, object, area, input, textarea, select, button

Common Attributes with Type Number

There are no Common Attributes with type Number.


Attribute Value for Type Number

One or more digits, making up a single positive number (or zero) e.g. "34", "2"

For some attributes, a value of "0" makes sense (e.g. tabindex), or is a special case (e.g. colspan, rowspan, although "0" values for these attributes are not well supported); for others, only positive numbers are suitable (e.g. span, size, maxlength, cols, rows, rbspan).


Page Footer & Copyright

Copyright © Sally Maughan 2005-2009 (Page last updated on 01 Oct 2009)

*Valid XHTML 1.1 - hosted by *Openstrike

Content based on the W3C Working Draft: *XHTML 1.1 and Recommendation: *XHTML Modularisation 1.1.

W3C, XHTML, XML, HTML, CSS and MathML are *Trademarks of the W3C (*MIT, *ERCIM, *Keio) with which the site's author has no connection.


Up, Next & Previous Links

Your Location

Home > XHTML 1.1 Home > Data Types in XHTML 1.1 > Attribute Types (XHTML 1.1) > Number Attribute Type