Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

HTML

Total questions: 25

Worksheet time: 25mins

Name
Class
Date
1.

Use the correct HTML attribute, and CSS, to set the color of the paragraph to "blue".

a)

<p =";">This is a paragraph.</p>

b)

<p style="color:blue;">This is a paragraph.</p>

2.

Use CSS to center align the paragraph.

a)

<p style=":text-align;">This is a paragraph.</p>

b)

<p style="text-align:center;">This is a paragraph.</p>

3.

Use CSS to center align the document.

a)

<html>

<body ----="--------;">


<h1>This is a heading</h1>


<p>This is a paragraph.</p>


</body>

</html>

b)

<html>

<body style="text-align:center;">


<h1>This is a heading</h1>


<p>This is a paragraph.</p>


</body>

</html>

4.

Use CSS to set the text size to 50 pixels.

a)

<p style=":50px;">This is a paragraph.</p>

b)

<p style="font-size:50px;">This is a paragraph.</p>

5.

Use CSS to set the background-color of the document to yellow.

a)

<html>

<body style="------:yellow;">


<h1>This is a heading</h1>


<p>This is a paragraph.</p>


</body>

</html>

b)

<html>

<body style="background-color:yellow;">


<h1>This is a heading</h1>


<p>This is a paragraph.</p>


</body>

</html>

6.

The HTML tag <b> does what to text?

a)

Makes it bold

b)

Breaks the text into pieces

c)

Creates a border

d)

Blinks the text

7.

The HTML tag <p> does what to text?

a)

Creates a paragraph

b)

Runs a procedure of code

c)

Prepares a line with bigger fonts and a border

d)

Runs a poll with four multiple choice questions

8.

Which is the correct spelling?

a)

hypolink

b)

hyprelink

c)

hippolink

d)

hyperlink 

9.

Which of the following is a correct HTML tag for a paragraph?

a)

b)

c)

d)

10.

What does HTML stand for?

a)

Hyper Text Markup Language

b)

High Text Markup Language

c)

Hyperlink and Text Markup Language

d)

Hyper Tool Markup Language

11.

Which HTML attribute is used to define inline styles?

a)

style

b)

class

c)

styles

d)

font

12.

Which HTML element is used for the largest heading?

a)

b)

c)

d)

13.

Which of the following is the correct HTML for creating a hyperlink?

b)
c)

d)

c)

d)

19.

Which HTML element is used to define a list item?

a)

  • b)

    c)

    d)

    20.

    Which HTML element is used to define a section in a document?

    a)

    b)

    c)

    d)

    21.

    Which HTML element is used to define a navigation link?

    a)

    b)

    c)

    d)

    d)