wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

HTML and CSS Assessment

Total questions: 30

Worksheet time: 16mins

Name
Class
Date
1.
In this code: h1 { color: red; font-size; 24px } What is font-size and color called in CSS?
a)
Value
b)
Selector
c)
Link
d)
Property
2.
What are the easiest colors we can use in CSS?
a)
most common color names
b)
metallic colors only
c)
new colors like periwinkle
d)
html coded colors
3.
What can we not find in a css file?
a)
a closing tag
b)
a curly brace
c)
a semicolon
d)
a colon
4.
The correct way of placing our html tags like the paragraph and the list is inside the html body <body> </body>
a)
true
b)
false
5.
<p> is
a)
punctuation tag
b)
closing paragraph tag
c)
closing punctuation tag
d)
paragraph tag
6.
</p> is
a)
punctuation tag
b)
closing paragraph tag
c)
closing punctuation tag
d)
paragraph tag
7.

Which is the proper way to write an h1 tag

a)

<h1>Hello</h1>

b)

<h1>"Hello

c)

{h1}Hello{/h1}

d)

<h1>Hello<h1>

8.
Which of the following is the largest heading? 
a)
H2
b)
H3
c)
H4
d)
H6
9.
<body>
a)
Body tag
b)
Paragraph tag
c)
Closing body tag
d)
Header tag
10.
</body>
a)
Body tag
b)
Paragraph tag
c)
Closing body tag
d)
Header tag
11.

Does <ul> tag go on the HTML page or the CSS page?

a)

HTML

b)

CSS

12.

Does the following code go on the HTML page or the CSS page?


body {

background: brown;

}

a)

HTML

b)

CSS

13.

sets the color of words in a paragraph

a)

h1 {

color: pink;

}

b)

img {

color: pink;

}

c)

body {

color: pink;

}

d)

p {

color: pink;

}

14.

Which tag is used for creating an ordered list in HTML?

a)

<ul>

b)

<ol>

c)

<li>

d)

<dl>

15.

Which HTML tag is used to create a hyperlink?

a)

<p>

b)

<a>

c)

<img>

d)

<div>

16.

Which CSS property controls the text size?

a)

font-style

b)

text-size

c)

font-size

d)

text-style

17.

Which HTML attribute is used to provide an alternate text for an image, if the image cannot be displayed?

a)

alt

b)

src

c)

href

d)

title

18.

What is the function of the <ul>

  • tag in HTML?

a)

To create an unordered list

b)

To underline text

c)

To make text uppercase

d)

To insert an image

19.

Which tag is used for creating a table row in HTML?

a)

<tr>

b)

<td>

c)

<th>

d)

<table>

20.

What does HTML stand for?

(a)  

21.

What does CSS stand for?

(a)  

22.

The target attribute tells the computer where to display the link.

a)

true

b)

false

23.

What is this tag <td>?

a)

table data

b)

text data

c)

table dimension

24.

What is this tag <ol>?

a)

ordered list

b)

organized list

c)

ordered line

25.

What is this tag <br/>?

a)

single space

b)

double space

c)

back row

26.

how do you write a paragraph in HTML

a)

<p>

b)

<p></p>

c)

<paragraph>

d)

<paragraph></paragraph>

27.

how do you engage CSS

a)

<CSS>

b)

<CSS></CSS>

c)

<style></style>

d)

<style>

e)

<engage-CSS></engage-CSS>

28.

Which rule set would change the font size to 24?

a)

font-size: 24

b)

size: 24;

c)

font-size: 24;

d)

font size: 24;

29.

Links to a CSS style sheet should be placed in which HTML section

a)

body

b)

footer

c)

head

d)

comment

30.

The <h4> tag defines

a)

A heading

b)

A paragraph

c)

A list

d)

A line break