What is the purpose of CSS?
CSS (Cascading Style Sheets) allows you to create great-looking web pages by letting you control exactly how HTML elements look in the browser and presenting your documents to your users with whatever design and layout you like.
This may include:
Text styling, including changing the color and size of headings and links.
Creating layouts, such as grid layouts or multiple-column layouts.
Special effects such as animation.
What are the three ways to insert CSS into your project?
Three ways that CSS can be inserted into your project to modify the look and feel are:
External CSS - Can be written in any text editor, and must be saved with a .css extension; should not contain any HTML tags.
Internal CSS - Is defined inside the
Inline CSS - May be used to apply a unique style for a single element; add the style attribute to the relevant element. The style attribute can contain any CSS property.
Write an example of a CSS rule that would give all < p > elements red text.
p { color: red; }