01-02 Cascading Style Sheets

01-02 Cascading Style Sheets

memorize.aimemorize.ai (lvl 286)
Section 1

Preview this deck

What is the "Cascading" order of CSS3?

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (10)

Section 1

(10 cards)

What is the "Cascading" order of CSS3?

Front

-browser default -external style sheets -internal style sheets (in the head section) -inline style (inside an HTML element..avoid using this)

Back

What do the 3 most common CSS rules look like in code?

Front

selector { property: value; } h1{ color:blue; }

Back

Can you override rule precedence? If so, how?

Front

Yes -add !important; at the end of wheatever rule you want to be most important inside the curly brackets h1{ color:blue; font-family: Arial !important; }

Back

When are internal styling sheets good to use and what do you use codewise and where??

Front

When you're just trying to style one page. use <style></style> tags in the <head>

Back

What is the rule precedence?

Front

the rules from the most recent file have precedence (the most recently added one, regardless or order)

Back

When you have more than 1 page to style, which style sheet is best to use? How do you use it?

Front

external style sheet -put your rules in a different file with a .css extension -don't use style tag, but put a <link> in head section to .css file <link rel="stylesheet" href="filename.css">

Back

How do you write/code comments in CSS?

Front

/This is how comments are done/ make sure it's a backslash with a star, then a star with a backslash at the end

Back

True or False: Every browser has its own different default style.

Front

True

Back

You can have as many property value combos as you want, but what do you need to remember to do?

Front

separate them with semicolons; h1{ color:blue; background-color: yellow; }

Back

Why is it NOT best practice to add style directly into text?

Front

It's best to use CSS for style and keep HTML for content. ex. of adding style directly into text w/ HTML <h1 style = "color:blue">Styled Heading</h1>

Back