wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

HTML Quiz

Total questions: 10

Worksheet time: 3mins

Name
Class
Date
1.

what is margin

a)

difference between tags

b)

difference between border and text

c)

both a & B

d)

none

2.

Choose the correct HTML element for the largest heading:

a)

<h1>

b)

<h6>

c)

<heading>

d)

<head>

3.

What is the correct HTML element for inserting a line break?

a)

<break>

b)

<br>

c)

<lb>

d)

none

4.

What is the correct HTML for adding a background color?


Next ❯

a)

<body bg="yellow">

b)

<background>yellow</background>

c)

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

d)

none

5.

What is the correct HTML for creating a hyperlink?

a)

<a url="http://www.w3schools.com">W3Schools.com</a>

b)

<a>http://www.w3schools.com</a>

c)

<a name="http://www.w3schools.com">W3Schools.com</a>

d)

<a href="http://www.w3schools.com">W3Schools</a>

6.

How can you open a link in a new tab/browser window?

a)

<a href="url" target="_blank">

b)

<a href="url" new>

c)

<a href="url" target="new">

d)

Next ❯

7.

Inline elements are normally displayed without starting a new line.

a)

True

b)

False

8.

What is the correct HTML for inserting an image?


Next ❯

a)

<image src="image.gif" alt="MyImage">

b)

<img src="image.gif" alt="MyImage">

c)

<img href="image.gif" alt="MyImage">

d)

<img alt="MyImage">image.gif</img>

9.

Block elements are normally displayed without starting a new line.

a)

False

b)

True

10.

In HTML, which attribute is used to specify that an input field must be filled out?

a)

validate

b)

placeholder

c)

required

d)

formvalidate