For each selector there are ' properties ' inside curly brackets , which simply take the form of words such as color , font-weight or background-color . A value is given to the property following a colon (NOT an 'equals' sign) and semi-colons separate the properties. This will apply the given values to the font-size and color properties to the body selector. So basically, when this is applied to an HTML document, text between the body tags (which is the content of the whole window) will be 0.8 ems in size and navy in colour. There are many property-specific units for values used in CSS, but there are some general units that are used in a number of properties and it is worth familiarising yourself with these before continuing. em (such as font-size: 2em ) is the unit for the calculated size of a font .
1h 31m 9171 9,171 views 1h 33m 4991 4,991 views
Note: If you know anything at all about HTML and CSS, don’t bother reading this, it’s a guide for the uninitiated, technophobes, luddites, computer-illiterates, anyone who is more comfortable with a pen and paper than a keyboard and mouse. If making a web page seems like brain surgery to you, then this is the article for you. What you need to know The only prior knowledge I will assume is that you’ve used a computer before, you’re familiar with using a keyboard and a word processor, and you’ve at least seen a website. Other than that, I assume you are completely ignorant! The Basics