NEW
Font size
Worksheets.NET Written Work 3
Total questions: 10
Worksheet time: 5mins
Which of the following is the correct syntax for CSS?
selector: value = property;
selector { property: value; }
property { selector: value; }
value { property: selector; }
Which CSS type is most appropriate for styling a single-page website?
Inline CSS
Internal CSS
External CSS
Browser default
Which CSS type has the lowest priority in the cascading order?
Inline CSS
Internal CSS
External CSS
Browser default
What is the main advantage of external CSS?
It can only be applied to one page.
It requires no additional files.
It can be reused across multiple pages.
It automatically overrides inline styles.
Which is NOT an advantage of using CSS?
Easier maintenance.
Consistency across pages.
Ability to separate content from design.
Ability to store user data.
What is the correct way to add an external CSS file in HTML?
<css src="style.css">
<stylesheet link="style.css">
<style href="style.css">
<link rel="stylesheet" href="style.css">
Which of the following is a valid CSS declaration?
font color = blue;
color: blue;
text-color = blue;
color; blue:
Why is CSS called "Cascading"?
Because styles flow from top to bottom.
Because styles apply in alphabetical order.
Because styles are applied based on priority rules.
Because CSS is always written in waterfalls.
Which of the following is an example of a CSS property?
div
color
p
#header
Which of the following is an example of a CSS value?
16px
font-size
color
margin
