Learn about different methods for building a website and how to get started hand-coding a simple site with HTML5, the latest version of the HTML standard.
Explore the use of Cascading Style Sheets (CSS) for your website. We will discuss templates, page layouts, easy ways to create and adapt styles.
What is CSS? What is the difference between CSS and HTML?
A rule has:
Selector: targets which element to change. Can be HTML tag (p, h1, h2, etc.), ID or Class, or more complex based on position of element in the document
Declaration: made up of properties (what to change) and values (how to change it),
e.g. color: red
(Image courtesy of Creative Commons - see full site)
Style sheets are composed of a series of rules.
Pay attention to the punctuation - Spaces don’t matter, but colons, semicolons, braces do!