css and selectors

css and selectors

University

9 Qs

quiz-placeholder

Similar activities

Css

Css

University

10 Qs

HTML CSS

HTML CSS

University

8 Qs

Recap CSS

Recap CSS

University

10 Qs

CSS Rules Quiz-unit 4 CodeHS

CSS Rules Quiz-unit 4 CodeHS

7th Grade - University

7 Qs

CSS and HTML Styling

CSS and HTML Styling

University

12 Qs

CSS Quiz | For Professionals

CSS Quiz | For Professionals

1st Grade - University

10 Qs

AWD Quiz #1

AWD Quiz #1

University

10 Qs

Selector UiPath

Selector UiPath

University

10 Qs

css and selectors

css and selectors

Assessment

Quiz

Computers

University

Hard

Created by

Karthika Ravichandran

Used 1+ times

FREE Resource

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Remember: Which is not a type of CSS?
a. Inline CSS
b. External CSS
c. Internal CSS
d. Dynamic CSS

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Media Image
Understand: Which type of selector is used to select elements based on their id?
a. Class selector
b. Attribute selector
c. ID selector
d. Pseudo-class selector

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Media Image
Analyze: What is the difference between a child selector and a descendant selector in CSS?
a. Child selectors select only the first child element
b. Descendant selectors select all descendants of an element
c. Child selectors select all descendants of an element
d. Descendant selectors select only the first child element

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Media Image
Remember: Which type of selector selects all elements of a specific tag?
a. ID selector
b. Class selector
c. Universal selector
d. Type selector

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Understand: Which type of selector selects elements based on their position in a group?
a. Type selector
b. Class selector
c. Pseudo-class selector
d. Adjacent sibling selector

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Analyze: What is the difference between the universal selector and the type selector in CSS?
a. Universal selector selects all elements
b. Type selector selects all elements
c. Universal selector selects only the first element
d. Type selector selects only the first element

7.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Apply: Write a CSS selector that selects all elements with the class name "highlight".
a. .highlight
b. #highlight
c. *highlight
d. :highlight

8.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Evaluate: Which selector would be more specific: ".nav a" or "a:hover"?
a. .nav a
b. a:hover
c. Both selectors have equal specificity
d. None of the above

9.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Create: Write a CSS selector that selects all h2 elements inside a div element.
a. div h2
b. h2 div
c. div + h2
d. h2 > div