Predefined HTML Attribute Values


What Are Predefined Attribute Values for an HTML attribute?



Some HTML 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".


HTML Tag and Attribute Syntax

⇒⇒HTML Tutorials

2017-02-20, 158👍, 0💬