1var elem = document.querySelector('#some-element');
2
3// Set color to purple
4elem.style.color = 'purple';
5
6// Set the background color to a light gray
7elem.style.backgroundColor = '#e5e5e5';
8
9// Set the height to 150px
10elem.style.height = '150px';
11
1// background-color
2<element>.style.backgroundColor = '#000';
3// background
4<element>.style.background = '#000';
5// color
6<element>.style.color = '#fff';
7// box-sizing
8<element>.style.boxSizing = 'border-box';
9// font-family
10<element>.style.fontFamily = '\'Times New Roman\', Times, serif';
11// font-size
12<element>.style.fontSize = '16px';
13// margin
14<element>.style.margin = 0;
15// padding
16<element>.style.padding = '20px';
17// width
18<element>.style.width = '100%';
19// height
20<element>.style.height = '100%';
21// margin-left
22<element>.style.marginLeft = 0;
23// font-weight
24<element>.style.fontWeight = 400;