What is CSS?

  • CSS refers to Cascading Style Sheets
  • How do style definitions display HTML elements
  • Styles are usually stored in style sheets
  • Styles were added to HTML 4.0 to address the separation of content and presentation
  • External stylesheets can greatly improve productivity
  • External style sheets are usually stored in CSS files
  • Multiple style definitions can be layered on top of one another

Styles solve a big problem

HTML tags were originally designed to define document content;

<h1>This is a headline</h1>
<p>This is a paragraph.</p>
Copy the code

Stylesheets define how HTML elements are displayed, just as font labels and color attributes in HTML do.

Styles are usually stored in external.css files.

You can change the layout and appearance of all your pages by editing a simple CSS document.