1.myclass {
2 border:1px solid black;
3 background-color: #d2d2d2;
4 height:20px;
5 width:60px;
6}
7/*If you give this class to a div in html, it will get the styles you gave
8to that class. You can add multiple classes to a div, and multiple divs
9can get that class. */
10/* I hope I helped! */
1<!-- in the head element -->
2<style> h1 { color:blue; } </style>
3
4<!-- in the body element -->
5<h1> text in blue because all "h1" element is in blue </h1>