NEW
Font size
WorksheetsWeb Design: Pop Quiz
Total questions: 10
Worksheet time: 8mins
Which of the following is a valid CSS rule?
h1 {
color: blue;
}
<h1> {
color: blue;
}
h1 {
color="blue";
}
h1 {
color=blue;
}
CSS rules have a selector that defines which HTML elements the rule applies to.
We’ve learned about the following CSS Selectors:
--> Select by tag name
--> Select by class name
--> Select by id name
Which of the following ranks the selectors from highest precedence to lowest precedence?
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 id name, select by class name, select by tag name
Select by class name, select by id name, select by tag name
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 create styles with CSS that are not possible using style= on an HTML tag
I only
II only
I and II
Neither I nor II
Which of the following code snippets will select all <img> tags on a page and give them a height of 200 pixels?
<img style="height:200px;">
tag="img" {
height: 200px;
}
<img> {
height: 200px;
}
img {
height: 200px;
}
red
green
blue
black
red
blue
green
black
Which of the following is the proper format for an HTML tag?
>h1<Content Affected by Tag >/h1<
<h1>Content Affected by Tag<h1>
<h1 Content Affected by Tag />
<h1>Content Affected by Tag</h1>
Which of the following classifies as metadata about a webpage?
The tags that make up the body of the webpage
A table on a webpage
A list on a webpage
The title of the webpage
All of the colors you see on a computer screen are the result of a mixture of the same three colors. What are those colors?
red, yellow, blue
green, orange, purple
red, green, blue
red, green, yellow
Which of the following is a valid color in HTML?
“blue”
“rgb(255, 0, 0)”
“#00FF00”
All of the above
