CSS Syntax & Layout

What is CSS?

To understand exactly what is CSS and why it was made; one would need to understand a bit of the history regarding the internet. The internet was created initially for researchers to pass around their papers. The look was mainly to have structured text; nothing more. Over time, industry became interested in the internet and its possibilities; consumers demanded for pictures and a more appealing way of presenting information. Thus, different browser companies started making their own proprietary tags. What this did, was essentially create pages that would be rendered completely different in different browsers. So the W3C, in its never ending wisdom, decided to separate a structured document (html) from its style (CSS); its main goal is to create universally accepted tags so that no matter browser, you'll be able to see the webmaster's original intent. This will also enable those with screen readers to be able to read the site without having the style get in the way of the site's content.

Note - CSS stands for Cascading StyleSheets. External CSS is first used then the internal will override anything external and the inline CSS overrides all CSS style previously used.

Advantages

Disadvantages

Understanding CSS Syntax

Adding CSS to an HTML Page

Inline

Internal

External