Length Attribute Type


 

The Length 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 Length

  1. cellpadding:
    This is declared on the element: table
  2. cellspacing:
    This is declared on the element: table
  3. charoff:
    This is declared on the elements: col, colgroup, thead, tfoot, tbody, tr, th, td
  4. height:
    This is declared on the elements: object, img
  5. width:
    This is declared on the elements: object, img, table

Common Attributes with Type Length

There are no Common Attributes with type Length.


Attribute Value for Type Length

Length specified as a percentage or in pixels, e.g. "20%" or "10"

When heights (or widths) are specified as a percentage, this is a percentage of the vertical (or horizontal) space available to the element. This available space is usually given by the height (or width) of the element's parent.

Note: Percentage values are not well supported for either cellpadding or cellspacing attributes and the charoff attribute currently does not seem to be supported at all by any browser.


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) > Length Attribute Type