May 06, 2021 JavaScript
HTML DOM allows JavaScript to change the style of HTML elements.
To change the style of HTML elements, use this syntax:
The following example changes the style of the element:
This example changes the style of the HTML element of id"id1" when the user clicks the button:
Visibility
How to make elements invisible.
Do you want elements to appear or disappear?
JavaScript and HTML Reference Manual: Style Objects