Predefined HTML Attribute Values

Q

What Are Predefined Attribute Values for an HTML attribute?

✍: FYIcenter.com

A

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

 

The 'checked' Attribute of some HTML Elements

Attributes Required by HTML Elements

HTML Tag and Attribute Syntax

⇑⇑ HTML Tutorials

2023-09-23, 1226🔥, 0💬