wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

HTML & CSS Review

Total questions: 20

Worksheet time: 25mins

Name
Class
Date
1.

Which tags go around the entire HTML document?

a)

<body></body>

b)

<html></html>

c)

<head></head>

d)

<h1></h1>

2.

What file extension do you need for HTML files?

a)

.css

b)

.js

c)

.txt

d)

.html

3.

Which attribute do you use to specify a URL for an anchor tag?

a)

src

b)

href

c)

dog.jpg

d)

http://google.com/

4.

In CSS, which selector would you use to select a paragraph with a class of "bright"?

a)

.bright

b)

#bright

c)

bright.p

d)

p bright

5.

Which tag should be a direct child of an unordered list?

a)

<ul>

b)

<li>

c)

<p>

d)

<body>

6.

Which Bootstrap class would you use to make a div appear as a large banner header?

a)

jumbotron

b)

dirigible

c)

banner

d)

large

7.

In CSS, which selector would you use to style ALL table data elements?

a)

td

b)

.th

c)

tr

d)

#td

8.

Which CSS property changes text color?

a)

text-color

b)

textcolor

c)

color

d)

background-color

9.

Which Bootstrap class would you use on two columns that will each take up equal space in a row?

a)

col-md-4

b)

col-md-3

c)

col-md-2

d)

col-md-6

10.

Which of the following is a proper image element?

a)

<img src="dog.jpg" />

b)

<imag src="google.com">Google</imag>

c)

<a src="http://dog.jpg" />

d)

<img href="dog.jpg" />

11.

In CSS, which selector would you use to select an image with an id of "footer"?

a)

img

b)

footer.img

c)

#footer

d)

.footer

12.

What file extension do you need for CSS files?

a)

.css

b)

.js

c)

.txt

d)

.html

13.

Which of the following is a properly formed HTML element?

a)

<h1>Hello<h1>

b)

<h1 Hello /h1>

c)

<h1>Hello</h1>

d)

<h1>Hello</h>

14.

What is Responsive Web Design?

a)

Using CSS on different parts of a web page

b)

Making HTML elements appear in a grid

c)

Controlling the font size of text on a page

d)

Making web pages look good on all devices

15.

Which HTML element creates hyperlinks?

(a)  

16.

Create an HTML paragraph element with text that says "Welcome"

(a)  

17.

How could you select an HTML element with an id attribute of "error" in CSS?

(a)  

18.

For a text box input element, what should the type attribute be?

a)

text

b)

box

c)

enter

d)

submit

19.

What is an HTML element?

4 lines
20.

What is an HTML attribute?

4 lines