CSS - Style a Website
This course covers the basics of styling a website using CSS. Work your way through the videos and we'll teach you everything you need to know to style a basic website!

Ids & Classes

Lesson 11
Author : Mike Dane
Last Updated : October, 2017


Code

site.htmlCopy
<h1 id="my-id">CSS Tutorial</h1> <main class="fancy-border"> <p class="blue-text"> Classes and ID's are awesome!</p> </main>

style.cssCopy
#my-id { color:blue; } .fancy-border { border: 3px dashed red; } .blue-text { color:blue; }