![]() |
VOOZH | about |
The cssText property is used to set or return the value of an inline style declaration of an element.
Syntax:
element.style.cssText
element.style.cssText = style
Property value:
Return Value: It returns the inline style of the element in the form of string.
Example 1: To get the cssText property:
Output:
Example 2: To set the cssText property:
Output:
Supported Browsers: The browsers supported by CSS StyleDeclaration cssText Property are listed below: