wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

HTML

Total questions: 27

Worksheet time: 14mins

Name
Class
Date
1.

What does HTML stand for?

a)

Home Tool markup language

b)

Hyper text markup language

c)

Hyperlinks markup language

2.

Choose the correct HTML element for the largest heading:

a)

<h6>

b)

<head>

c)

<b>

d)

<h1>

3.

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

a)

<break>

b)

<br>

c)

<lb>

4.

What is the correct HTML for adding a background color?

a)

< body background:"yellow">

b)

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

c)

< body style="background:yellow">

5.

Choose the correct HTML element to define important text?

a)

<i>

b)

<b>

c)

<important>

d)

<strong>

6.

Choose the correct HTML element to define emphasized text

a)

<b>

b)

<i>

c)

<em>

d)

<italic>

7.

HTML QuizQuestion 8 of 40:What is the correct HTML for creating a hyperlink?

a)

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

b)

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

c)

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

d)

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

8.

Which character is used to indicate an end tag?

a)

/

b)

<

c)

^

d)

*

9.

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

a)

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

b)

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

c)

<a href="url" new>

10.

Inline elements are normally displayed without starting a new line.

a)

True

b)

False

11.

How can you make a numbered list?

a)

<dl>

b)

<list>

c)

<ol>

d)

<ul>

12.

How can you make a bulleted list?

a)

<dl>

b)

<list>

c)

<ul>

d)

<ol>

13.

What is the correct HTML for making a checkbox?

a)

<input type="check">

b)

<check>

c)

<checkbox>

d)

<input type="checkbox">

14.

What is the correct HTML for making a text input field?

a)

<input type="text">

b)

<textinput type="text">

c)

<textfield>

d)

<input type="textfield">

15.

What is the correct HTML for making a drop-down list?

a)

<input type="list">

b)

<list>

c)

<input type="dropdown">

d)

<select>

16.

What is the correct HTML for making a text area?

a)

<textarea>

b)

<input type="textarea">

c)

<input type="textbox">

17.

What is the correct HTML for inserting an image?

a)

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

b)

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

c)

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

d)

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

18.

What is the correct HTML for inserting a background image?

a)

<body style="background-image:url(background.gif)">

b)

<body bg="background.gif">

c)

<background img="background.gif">

19.

An <iframe> is used to display a web page within a web page.

a)

There is no such thing as an <iframe>

b)

True

c)

False

20.

Block elements are normally displayed without starting a new line.

a)

True

b)

False

21.

Which HTML element defines the title of a document?

a)

<title>

b)

<head>

c)

<meta>

d)

<html>

22.

Which HTML attribute specifies an alternate text for an image, if the image cannot be displayed?

a)

title

b)

src

c)

alt

d)

href

23.

Which doctype is correct for HTML5?

a)

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 5.0//EN" "http://www.w3.org/TR/html5/strict.dtd">

b)

<!DOCTYPE HTML5>

c)

<!DOCTYPE html>

d)

<!DOCTYPE HTML>

24.

Which HTML element is used to specify a footer for a document or section?

a)

<footer>

b)

<bottom>

c)

<section>

25.

Which HTML element is used to display a scalar measurement within a range?

a)

<measure>

b)

<meter>

c)

<range>

d)

<gauge>

26.

Which HTML element is used to specify a header for a document or section?

a)

<top>

b)

<head>

c)

<header>

d)

<section>

27.

Which input type defines a slider control?

a)

range

b)

meter

c)

control

d)

slider