Questions
- What is the purpose of CSS?
- What are the three ways to insert CSS into your project?
- Write an example of a CSS rule that would give all <.p> elements red text.
Answers
- CSS helps us style entire sheet
-
- External: links to an external sheet <.link href="path_to_css_file.css">
- Internal: has a <.style><./style> section at the top
-
Inline: (becomes like an attribute)
e.g.: <.p style="color:red">
- p {color: red;}
Go and check out my Markdown notes