wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

HTML quiz

Total questions: 39

Worksheet time: 20mins

Name
Class
Date
1.

What does HTML stand for?

a)

Hyper Text Markup Language

b)

Hyperlinks and Text Markup Language

c)

Home Tool Markup Language

2.

Who is making the Web standards?

a)

The World Wide Web Consortium

b)

Google

c)

Microsoft

d)

Mozilla

3.

Choose the correct HTML element for the largest heading:

a)

<h1>

b)

<heading>

c)

<h6>

d)

<head>

4.

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

a)

<br>

b)

<break>

c)

<lb>

5.

What is the correct HTML for adding a background color?

a)

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

b)

<background>yellow</background>

c)

<body bg="yellow">

6.

Choose the correct HTML element to define important text

a)

<strong>

b)

<b>

c)

<i>

d)

<important>

7.

Choose the correct HTML element to define emphasized text

a)

<em>

b)

<italic>

c)

<i>

8.

What is the correct HTML for creating a hyperlink?

a)

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

b)

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

c)

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

d)

<a name="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="_blank">

b)

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

c)

<a href="url" new>

11.

Which of these elements are all <table> elements?

a)

<table><tr><td>

b)

<table><tr><tt>

c)

<thead><body><tr>

d)

<table><head><tfoot>

12.

Inline elements are normally displayed without starting a new line.

a)

True

b)

False

13.

How can you make a numbered list?

a)

<ol>

b)

<list>

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)

<check>

c)

<input type="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)

<input type="dropdown">

d)

<list>

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)

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

c)

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

d)

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

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)

There is no such thing as an <iframe>

c)

False

22.

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

a)

True

b)

False

23.

Block elements are normally displayed without starting a new line.

a)

False

b)

True

24.

Which HTML element defines the title of a document?

a)

<title>

b)

<head>

c)

<meta>

25.

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

a)

alt

b)

longdesc

c)

title

d)

src

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)

<footer>

b)

<bottom>

c)

<section>

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)

<sound>

c)

<mp3>

31.

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

a)

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

b)

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

c)

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

d)

Update content from the server

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)

XML

b)

CSS

c)

HTML

34.

The HTML <canvas> element is used to:

a)

draw graphics

b)

display database records

c)

manipulate data in MySQL

d)

create draggable elements

35.

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

a)

required

b)

formvalidate

c)

placeholder

d)

validate

36.

Which input type defines a slider control?

a)

range

b)

slider

c)

search

d)

controls

37.

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

a)

<meter>

b)

<gauge>

c)

<range>

d)

<measure>

38.

Which HTML element defines navigation links?

a)

<nav>

b)

<navigate>

c)

<navigation>

39.

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

a)

<header>

b)

<top>

c)

<section>

d)

<head>