1. What is CSS?
⁃ CSS stands for Cascading Style Sheets and it is used to style web pages that are written in HTML
2. How is CSS different than HTML?
⁃ CSS is different HTML because it does not "create anything" like HTML but it just sets rules on how to display HTML.
3. Why use them?
⁃ It is useful to use CSS because before, HTML was just used to create a document and when extra tags made to format a document were added on to HTML, it became a major problem when all this extra information was needed to be written on every page. CSS was created so formatting a document could be done separately.
4. What are the 4 parts of the CSS syntax?
⁃ The four parts of CSS syntax are selector, declaration, property, and value.
5. Why would you use comments?
⁃ Comments can be used to help explain code that is written.
6. What is the difference between "id" and "class"
⁃ The difference between "id" and "class" is that id is used to make a style for just one element while class is used to make a style for a bunch of elements.
7. What are the 3 ways to insert CSS?
⁃ The three ways to insert CSS are through an external style sheet, an internal style sheet, and an inline style.
8. Can you have multiple styles for one HTML element?
⁃ Yes, there can be multiple styles for one HTML element.
9. What is "cascading order?"
⁃ Cascading order is when styles are put into a certain order where the highest number in that order will be able to override a style in other styles in that order.
No comments:
Post a Comment