wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

HTML Quiz

Total questions: 40

Worksheet time: 20mins

Name
Class
Date
1.

What does HTML stand for?

a)

Hyper Text Markup Language

b)

Home Tool Markup Language

c)

Hyperlinks and Text Markup Language

2.

Who is making the Web standards?

a)

The World Wide Web Consortium

b)

Mozilla

c)

Microsoft

d)

Google

3.

Choose the correct HTML element for the largest heading:

a)

<h1>

b)

<head>

c)

<heading>

d)

<h6>

4.

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

a)

<lb>

b)

<br>

c)

<break>

5.

What is the correct HTML for adding a background color?

a)

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

b)

<body bg="yellow">

c)

<background>yellow</background>

6.

Choose the correct HTML element to define important text

a)

<i>

b)

<important>

c)

<strong>

d)

<b>

7.

Choose the correct HTML element to define emphasized text

a)

<i>

b)

<italic>

c)

<em>

8.

What is the correct HTML for creating a hyperlink?

a)

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

b)

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

c)

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

d)

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

9.

Which character is used to indicate an end tag?

a)

<

b)

^

c)

/

d)

*

10.

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>

11.

Which of these elements are all <table> elements?

a)

<thead><body><tr>

b)

<table><head><tfoot>

c)

<table><tr><td>

d)

<table><tr><tt>

12.

Inline elements are normally displayed without starting a new line.

a)

True

b)

False

13.

How can you make a numbered list?

a)

<list>

b)

<ol>

c)

<dl>

d)

<ul>

14.

How can you make a bulleted list?

a)

<ul>

b)

<ol>

c)

<list>

d)

<dl>

15.

What is the correct HTML for making a checkbox?

a)

<input type="checkbox">

b)

<input type="check">

c)

<check>

d)

<checkbox>

16.

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

a)

<input type="text">

b)

<input type="textfield">

c)

<textinput type="text">

d)

<textfield>

17.

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

a)

<select>

b)

<input type="list">

c)

<list>

d)

<input type="dropdown">

18.

What is the correct HTML for making a text area?

a)

<textarea>

b)

<input type="textarea">

c)

<input type="textbox">

19.

What is the correct HTML for inserting an image?

a)

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

b)

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

c)

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

d)

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

20.

What is the correct HTML for inserting a background image?

a)

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

b)

<background img="background.gif">

c)

<body bg="background.gif">

21.

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

a)

True

b)

False

c)

There is no such thing as an <iframe>

22.

HTML comments start with <!-- and end with -->

a)

True

b)

False

23.

Block elements are normally displayed without starting a new line.

a)

True

b)

False

24.

Which HTML element defines the title of a document?

a)

<title>

b)

<meta>

c)

<head>

25.

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

a)

alt

b)

title

c)

src

d)

longdesc

26.

Which doctype is correct for HTML5?

a)

<!DOCTYPE html>

b)

<!DOCTYPE HTML5>

c)

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

27.

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

a)

<section>

b)

<bottom>

c)

<footer>

28.

In HTML, you can embed SVG elements directly into an HTML page.

a)

True

b)

False

29.

What is the correct HTML element for playing video files?

a)

<video>

b)

<movie>

c)

<media>

30.

What is the correct HTML element for playing audio files?

a)

<audio>

b)

<mp3>

c)

<sound>

31.

The HTML global attribute, "contenteditable" is used to:

a)

Specifies a context menu for an element. The menu appears when a user right-clicks on the element

b)

Update content from the server

c)

Specify whether the content of an element should be editable or not

d)

Return the position of the first found occurrence of content inside a string

32.

In HTML, onblur and onfocus are:

a)

Event attributes

b)

Style attributes

c)

HTML elements

33.

Graphics defined by SVG is in which format?

a)

HTML

b)

XML

c)

CSS

34.

The HTML <canvas> element is used to:

a)

draw graphics

b)

create draggable elements

c)

display database records

d)

manipulate data in MySQL

35.

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

a)

required

b)

placeholder

c)

formvalidate

d)

validate

36.

Which input type defines a slider control?

a)

slider

b)

search

c)

range

d)

controls

37.

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

a)

<range>

b)

<measure>

c)

<gauge>

d)

<meter>

38.

Which HTML element defines navigation links?

a)

<nav>

b)

<navigation>

c)

<navigate>

39.

In HTML, what does the <aside> element define?

a)

Content aside from the page content

b)

A navigation list to be shown at the left side of the page

c)

The ASCII character-set; to send information between computers on the Internet

40.

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

a)

<section>

b)

<top>

c)

<head>

d)

<header>