HTML DOM Element attributes
HTML DOM Element attributes Property
The attributes property is used to return a collection of attributes in an element in the form of NamedNodeMap. It is an array-like unordered collection of element attributes. It has a length property that specifies the number of nodes.
Syntax:-
Its syntax is:- node.attributes
Return:-
Its return is:- a collection of attribute objects