CSS Rules Flashcard-unit 4 CodeHS

CSS Rules Flashcard-unit 4 CodeHS

Assessment

Flashcard

Computers

7th Grade

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

7 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Which of the following is a valid CSS rule? h1 { color: blue; } ,

<h1> { color: blue; }

, h1 { color="blue"; } , h1 { color=blue; }

Back

h1 { color: blue; }

2.

FLASHCARD QUESTION

Front

CSS rules have a selector that defines which HTML elements the rule applies to. Which of the following ranks the selectors from highest precedence to lowest precedence?(most important to least important) Select by tag name, select by class name, select by id name, Select by id name, select by tag name, select by class name, Select by class name, select by id name, select by tag name, Select by id name, select by class name, select by tag name

Back

Select by id name, select by class name, select by tag name

3.

FLASHCARD QUESTION

Front

Which of the following statements are true about styling your web pages with CSS? I. Styling with CSS is more scalable than using style= on each HTML tag that you want to style II. You can change HTML tag style attributes with CSS files that are also possible using inline style= on an HTML tag

Back

I and II

4.

FLASHCARD QUESTION

Front

Which code snippet will select all tags on a page and give them a height of 200 pixels? Options: , tag="img" { height: 200px; }, { height: 200px; }, img { height: 200px; }

Back

img { height: 200px; }

5.

FLASHCARD QUESTION

Front

What font color will the following HTML element have after being styled by the given CSS:

Welcome!

?

Back

Red

6.

FLASHCARD QUESTION

Front

What font color will the following HTML element have after being styled by the given CSS:

My First Paragraph?

Back

green

7.

FLASHCARD QUESTION

Front

What font color will the following HTML element have after being styled by the given CSS:

Hello World!?

Back

blue