What Are Predefined Attribute Values


What Are Predefined Attribute Values? - XHTML Tutorials - Introduction To Tag and Attribute Syntax

✍: FYIcenter.com


Some XHTML attributes have predefined values. If an attribute has predefined values, you must use one of the predefined values.

For example, attribute "valign" of element "td" has 4 predefined values "baseline", "bottom", "middle", and "top". Here are some examples of how to use "valign" attribute:

  • <td valign="top"> - Valid, "top" is one of the predefined values of "valign".
  • <td valign="center"> - Invalid, "center" is not a predefined value of "valign".

2007-05-12, 4715👍, 0💬