How can we apply a style to an element?

By adding its name, braces, and the style changes in a style sheetBy using document.getElementById() in a style sheet

We can apply a style by adding an element's name, braces and the style changes in a style sheet.