HTML DOM Element style
HTML DOM Element style Property
The style property is used to return the value of an element style attribute. It actually return a CSSStyleDeclaration object. CSSStyleDeclaration object has all inline styles for the given element. However, it excludes properties in head tag or any external stylesheets.
Syntax:-
Its syntax is:- element.style.property OR element.style.property = value
Return:-
Its return is:- element CSSStyleDeclaration object
Further Explanation:-
Type | Description |
value | The value of the specified property. |