The Basics
selector{
property: value;
}
Hello
button {
color: #92dce5;
/*Change the text color, not the button color*/
background-color: rgb(89, 151, 0);
}
h2 {
color: teal;
background-color: plum;
font-family: 'Open Sans', sans-serif;
}
This is a <h2> header, all the background-color changed using RGB, and text-color changed using the hexadecimal number!
www.coolors.co is one nice way of selecting color codes, either in RGB or hexadecimal
Using common text properties
h1 {
text-align: center;
font-weight: 400;
text-decoration: red underline wavy;
letter-spacing: 15px;
font-family: 'PT Sans', sans-serif;
}
font-family: Georgia, Times New Roman, serif
<h1 style="color:purple">Hello</h1>
<button style="background-color:palegreen>I am button</button>
Next in this section, try CSS Selectors