NEW
Font size
S
M
L
XL
WorksheetsHTML Test
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)
Mozilla
b)
Google
c)
Micorsoft
d)
The World Wide Web Consortium
3.
Choose the correct HTML element for the largest heading:
a)
<h6>
b)
<head>
c)
<heading>
d)
<h1>
4.
What is the correct HTML element for inserting a line break?
a)
<lb>
b)
<break>
c)
<br>
5.
What is the correct HTML for adding a background color?
a)
<body bg="yellow">
b)
<body style="background-color:yellow;">
c)
<background>yellow</background>
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)
<i>
b)
<italic>
c)
<em>
8.
What is the correct HTML for creating a hyperlink?
a)
<a name="http://www.w3schools.com">W3Schools.com</a>
b)
<a href="http://www.w3schools.com">W3Schools</a>
c)
<a>http://www.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" new>
c)
<a href="url" target="_blank">
11.
Which of these elements are all <table> elements?
a)
<table><tr><tt>
b)
<thead><body><tr>
c)
<table><head><tfoot>
d)
<table><tr><td>
12.
Inline elements are normally displayed without starting a new line.
a)
true
b)
false
13.
How can you make a numbered list?
a)
<ul>
b)
<ol>
c)
<list>
d)
<dl>
14.
How can you make a bulleted list?
a)
<dl>
b)
<ul>
c)
<ol>
d)
<list>
15.
What is the correct HTML for making a checkbox?
a)
<checkbox>
b)
<input type="check">
c)
<input type="checkbox">
d)
<check>
16.
What is the correct HTML for making a text input field?
a)
<input type="text">
b)
<textinput type="text">
c)
<input type="textfield">
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)
<input type="textbox">
b)
<textarea>
c)
<input type="textarea">
19.
What is the correct HTML for inserting an image?
a)
<img alt="MyImage">image.gif</img>
b)
<img href="image.gif" alt="MyImage">
c)
<image src="image.gif" alt="MyImage">
d)
<img src="image.gif" alt="MyImage">
20.
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">
21.
An <iframe> is used to display a web page within a web page.
a)
true
b)
false
c)
There is no iframe tag.
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)
<head>
b)
<meta>
c)
<title>
25.
Which HTML attribute specifies an alternate text for an image, if the image cannot be displayed?
a)
alt
b)
scr
c)
longdesc
d)
title
26.
Which doctype is correct for HTML5?
a)
<!DOCTYPE HTML5>
b)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 5.0//EN" "http://www.w3.org/TR/html5/strict.dtd">
c)
<!DOCTYPE html>
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)
<media>
c)
<movie>
30.
What is the correct HTML element for playing audio files?
a)
<sound>
b)
<mp3>
c)
<audio
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)
Specify whether the content of an element should be editable or not
c)
Return the position of the first found occurrence of content inside a string
d)
Update content from the server
32.
In HTML, onblur and onfocus are:
a)
Event attributes
b)
HTML attributes
c)
Style attributes
33.
Graphics defined by SVG is in which format?
a)
HTML
b)
CSS
c)
XML
34.
The HTML <canvas> element is used to:
a)
display database records
b)
create draggable elements
c)
draw graphics
d)
manipulate data in MySQL
35.
In HTML, which attribute is used to specify that an input field must be filled out?
a)
validate
b)
placeholder
c)
required
d)
formvalidate
36.
Which input type defines a slider control?
a)
slider
b)
range
c)
search
d)
control
37.
Which HTML element is used to display a scalar measurement within a range?
a)
<range>
b)
<measure>
c)
<meter>
d)
<gauge>
38.
Which HTML element defines navigation links?
a)
<nav>
b)
<navigate>
c)
<navigation>
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)
<top>
b)
<head>
c)
<section>
d)
<header>
Reset
