Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are enumerated attributes in HTML?

Tags:

html

Some HTML documentation I've read refers to 'enumerated attributes'. What are they?

like image 716
HELP Avatar asked Nov 05 '10 07:11

HELP


People also ask

How many types of attributes are there in HTML?

HTML attributes are generally classified as required attributes, optional attributes, standard attributes, and event attributes: Usually the required and optional attributes modify specific HTML elements.

What are properties and attributes in HTML?

Attributes are additional information which we can put in the HTML to initialize certain DOM properties. Properties are formed when the browser parses the HTML and generates the DOM. Each of the elements in the DOM have their own set of properties which are all set by the browser.

What are element attributes?

The Element. attributes property returns a live collection of all attribute nodes registered to the specified node. It is a NamedNodeMap , not an Array , so it has no Array methods and the Attr nodes' indexes may differ among browsers.


1 Answers

An enumerated attribute is an attribute that has a fixed set of possible values. For example the tag ul has the attribute type which could have the values: disc, square and circle.

Source: enumerated attribute types

like image 183
Toon Krijthe Avatar answered Nov 15 '22 13:11

Toon Krijthe