By adding its name, braces, and the style changes in a style sheetBy using document.getElementById() in a style sheetBy setting rules in the body element
We can apply a style by adding an element's name, braces, and the style changes in a style sheet.