Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

HTML Basics

Total questions: 55

Worksheet time: 24mins

Name
Class
Date
1.
HTML stands for...
a)
Hyper Text Markup Language
b)
High Tech Marking Language
c)
High Tech Modem Language
d)
Hyper Tech Markup Lexicon
2.

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>

3.
<a>
a)
Defines an article tag
b)
Defines an HTML link
c)
Defines the link destination 
d)
Defines the area
4.
What is an HTML element?
a)
The starting tag
b)
The ending tag
c)
The content between the tags
d)
Everything from start to end tag
5.
HTML attributes always appear where?
a)
In the opening tag
b)
In the closing tag
c)
Between the tags
d)
After the closing tag
6.
Which is the correct HTML element for inserting a line break?
a)
<b>
b)
<lb>
c)
<br>
d)
<break>
7.
Which is the correct HTML element for underlining text?
a)
<ul>
b)
<uline>
c)
<u>
d)
<under>
8.
Which character is used to indicate an end tag?
a)
*
b)
<
c)
/
d)
^
9.

Web Standards are decided on by who?

a)

Microsoft

b)

Apple

c)

The World Wide Web Consortium

d)

Google

10.
Which is the correct way of defining an HTML5 document?
a)
<!DOCTYPE html>
b)
<!DOCTYPE HTML5>
c)
<!DOCTYPE html "PUBLIC">
d)
<DOCTYPE html>
11.
<!DOCTYPE> 
a)
Defines the document type
b)
Defines a comment
c)
Defines the document's body
d)
Defines information about the document
12.
HTML uses
a)
Tabs
b)
Tags
c)
Labels
d)
Quotes
13.
These simple, easy-to-use programs allow you to enter, edit, save, and print text.
a)
text editor
b)
web browser
c)
domain name
d)
search engine
14.

Which of the following is the largest or most important heading?

a)

h2

b)

h3

c)

h1

d)

h6

15.
You should save HTML files with which file extension?
a)
.htm
b)
.index
c)
.webpage
d)
.html
16.

What does a <br> tag do?

a)

Inserts a space between text

b)

Creates a link to a webpage

c)

Inserts a single line break

d)

Inserts multiple line breaks

17.

Where are the <html> and </html> tags used?

a)

<html> at the beginning. </html> at the end

b)

</html> at the beginning. <html> at the end

c)

Both go at the beginning of the document

d)

Both go at the end of the document

18.
HTML tag for Unordered list.
a)
<OL></OL>
b)
<LI></LI>
c)
<UL></UL>
d)
<DL></DL>
19.
Name an element which doesn't have a closing tag.
a)
<img>
b)
<head>
c)
<body>
d)
<p>
20.
Which tag is used to create a hyperlink?
a)
<a>
b)
<href>
c)
<b>
d)
<i>
21.
Where in your HTML document should you include the code <!DOCTYPE html>?
a)
body section
b)
doesn't matter
c)
last line
d)
first line
22.

What is the correct syntax of setting the text color of a <p> element?

a)

<p font="yellow">

b)

<p style="color:yellow";>

c)

<p color="yellow">

23.

Which HTML element should be used to define emphasized text?

a)

i

b)

strong

c)

b

d)

em

24.

Which HTML attribute is used to define inline styles?

a)

class

b)

id

c)

style

d)

font

25.

If an image cannot be displayed, which HTML attribute shows alternate text for the image?

a)

imagedesc

b)

alt

c)

img

d)

title

26.

The title of a document is defined by which HTML element?

a)

<head>

b)

<title>

c)

<meta>

27.

Which HTML attribute will open a page into a new window/tab?

a)

target="_top"

b)

target="_new"

c)

target="_blank"

d)

target="_open"

28.

Which HTML element is used to connect to an external style sheet?

a)

<style>

b)

<title>

c)

<link>

d)

<head>

29.

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

a)

<section>

b)

<div>

c)

<bottom>

d)

<footer>

30.

Which of the following would you use to properly insert an image into an HTML document?

a)

<a href="sadface.gif" alt="SadFace">

b)

<a img=""sadface.gif" alt="SadFace">

c)

<img src="sadface.gif" alt="SadFace">

31.

Which item below would you use to insert a comment into an HTML document?

a)

<!--this is my comment-->

b)

/*this is my comment*/

c)

"this is my comment"

32.

Which elements are used to define a description list?

a)

<dl> and <<dt>

b)

<dl> and <dd>

c)

<dl>, <dfn>, and <dd>

d)

<dl>, <dt>, and <dd>

33.

To set up a group of navigation links, which element below should be used?

a)

<navigation>

b)

<navlink>

c)

<nav>

d)

<navigate>

34.

Block elements usually are not started on a new line.

a)

True

b)

False

35.

Which HTML element will allow you to create an inline frame?

a)

<inline>

b)

<inframe>

c)

<iframe>

d)

<frame>

36.

What does the <aside> element define?

a)

Defines content aside from the page content

b)

Defines a container for navigation links

c)

Defines an independent self-contained article

37.

<h1>, <p> and <ul> are examples of:

a)

Inline Elements

b)

Block Elements

c)

HTML Attributes

d)

HTML Events

38.

To create an image map, you would use __________ and ___________.

a)

<img> and <area>

b)

<map> and <area>

c)

<img> and <region>

d)

<map> and <region>

39.

Looking at an HTML document, where would you type the link that would connect to an external style sheet?

a)

In the <footer> section

b)

Before the <html> element

c)

After the <html> element, before the <head> element

d)

In the <head> section

40.

Which element would you use to create a section break (thematic break) in a page.

a)

<br>

b)

<break>

c)

<hr>

d)

<divide>

41.

What is the correct order for using Hex color values for Red, Green, Blue?

a)

#RRBBGG

b)

#GGBBRR

c)

#RRGGBB

d)

#BBGGRR

42.

Which is NOT true of an empty element?

a)

An element that has an opening tag, no closing tag.

b)

An element that includes opening and closing tag and content between?

c)

An element that includes an opening and closing tag? No content.

d)

An element that includes an opening tag and content.

43.

To create a list where the items are marked with letters, which element would you use below?

a)

<ol type="A">

b)

<ol type="1">

c)

<ol type="L">

44.

Which attribute would you use to add a "tooltip"?

a)

img

b)

p

c)

title

d)

alt

45.

What is the correct syntax for creating a bookmark located inside an HTML document?

a)

<a id="chapter4">Chapter 4</a>

b)

<a class="chapter4">Chapter 4</a>

c)

<a href="chapter4">Chapter 4</a>

d)

<a target="chapter4">Chapter 4</a>

46.

<strong>, <a> and <img> are examples of:

a)

Inline Elements

b)

Block Elements

c)

HTML Attributes

d)

HTML Events

47.

To define text direction, which element would you use?

a)

<dir>

b)

<text>

c)

<td>

d)

<bdo>

48.

Which HTML element should be used to define important text?

a)

<strong>

b)

<em>

c)

<i>

d)

<font>

49.

The DOCTYPE declaration is an instruction that tells the browser which version of HTML is used.

a)

True

b)

False

50.

HTML tags ARE case sensitive?

a)

True

b)

False

51.

Which is the correct syntax to define the background color of an HTML document?

a)

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

b)

<body bg="color:powderblue;">

c)

<body bg-color="powderblue;">

52.

Is this the correct syntax of changing text color of a paragraph to purple?


<p style="color:purple;">This is the color purple</p>

a)

Yes

b)

No

53.

Which element defines marked or highlighted text?

a)

<highlighted>

b)

<yellow>

c)

<mark>

d)

<marked>

54.

What is the correct syntax for adding a bookmark to a section located within the same page?

a)

<a id="#chapter4">Chapter 4</a>

b)

<a class="#chapter4">Chapter 4</a>

c)

<a href="#chapter4">Chapter 4</a>

d)

<a target="#chapter4">Chapter 4</a>

55.

Which tag specifies self-contained content, like illustrations, diagrams, photos, code listings, etc.

a)

<drawing>

b)

<figure>

c)

<caption>

d)

<figcaption>