reading-notes

Think you might be in the wrong place? Go home!

What is the purpose of CSS?

The purpose of CSS (Cascading Style Sheets) is to control the presentation and formatting of web documents written in HTML and XML.

What are the three ways to insert CSS into your project?

Adding CSS directly to individual HTML elements using the style attribute. Suitable for specific, one-off style changes.

Creating a separate CSS file with a .css extension and linking it to HTML documents using the element. This is the recommended method for larger projects, promoting code organization and reusability.

Write an example of a CSS rule that would give all <p> elements red text.

p{ color: red; }