wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

.NET Written Work 3

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Which of the following is the correct syntax for CSS?

a)

selector: value = property;

b)

selector { property: value; }

c)

property { selector: value; }

d)

value { property: selector; }

2.

Which CSS type is most appropriate for styling a single-page website?

a)

Inline CSS

b)

Internal CSS

c)

External CSS

d)

Browser default

3.

Which CSS type has the lowest priority in the cascading order?

a)

Inline CSS

b)

Internal CSS

c)

External CSS

d)

Browser default

4.

What is the main advantage of external CSS?

a)

It can only be applied to one page.

b)

It requires no additional files.

c)

It can be reused across multiple pages.

d)

It automatically overrides inline styles.

5.

Which is NOT an advantage of using CSS?

a)

Easier maintenance.

b)

Consistency across pages.

c)

Ability to separate content from design.

d)

Ability to store user data.

6.

What is the correct way to add an external CSS file in HTML?

a)

<css src="style.css">

b)

<stylesheet link="style.css">

c)

<style href="style.css">

d)

<link rel="stylesheet" href="style.css">

7.

Which of the following is a valid CSS declaration?

a)

font color = blue;

b)

color: blue;

c)

text-color = blue;

d)

color; blue:

8.

Why is CSS called "Cascading"?

a)

Because styles flow from top to bottom.

b)

Because styles apply in alphabetical order.

c)

Because styles are applied based on priority rules.

d)

Because CSS is always written in waterfalls.

9.

Which of the following is an example of a CSS property?

a)

div

b)

color

c)

p

d)

#header

10.

Which of the following is an example of a CSS value?

a)

16px

b)

font-size

c)

color

d)

margin