Changing HTML Style. To change the style of an HTML element, use this syntax: document.getElementById ( id ).style. property = new style. The following example changes the style of a
element: For More Information Please Refer: You May Also Like to Read: