Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

HTML Basics

Total questions: 40

Worksheet time: 20mins

Name
Class
Date
1.

If there is an error in this code, where is it?

a)

No error in this code.

b)

Line 5

c)

Line 9

d)

Line 11

2.

If there is an error in this code, where is it?

a)

No error in this code.

b)

Line 5

c)

Line 9

d)

Line 11

3.

If there is an error in this code, where is it?

a)

No error in this code.

b)

Line 5

c)

Line 9

d)

Line 11

4.

If there is an error in this code, where is it?

a)

No error in this code.

b)

Line 5

c)

Line 9

d)

Line 12

5.

You want to change the tab from "Go Tigers" to "Tiger Website". Which selection will accomplish this?

a)

<title>Tiger Website</title>

b)

<tab>Tiger Website</tab>

c)

<page>Tiger Website</page>

d)

<h1>Tiger Website</h1>

6.

Which tag was used to place the purple tiger paw on this page?

a)

<a>

b)

<img>

c)

<pic>

d)

<p?

7.

You would like to add a comment to document some of your HTML code. Which selection would do this?

a)

<!-- This section lists sports at LBMS. -->

b)

!-- This section lists sports at LBMS.

c)

// This section lists sports at LBMS.

d)

COMMENT - This section lists sports at LBMS.

8.

The standard programming language for creating web-based files which are accessed on the internet.

a)

Hypertext markup language

b)

Cascading style sheets

c)

Worldwide web

d)

Internet programming

9.

Files that HTML pages reference containing layout styles, colors, alignment, backgrounds etc.

a)

Hypertext markup language

b)

Cascading style sheets

c)

Worldwide web

d)

Internet programming

10.

Network of online content on the internet that connects files & documents by hypertext links.

a)

Hypertext markup language

b)

Cascading style sheets

c)

Worldwide web

d)

Internet programming

11.

Words or characters in angle brackets that identify the structure & meaning of text in a document.

a)

Tags

b)

Keyword

c)

Case Sensitive

d)

Comment line

12.

Reserved word in JavaScript for built-in functions or actions that may NOT be assigned to user variables or functions.

a)

Tags

b)

Keyword

c)

Case Sensitive

d)

Comment line

13.

What is the HTML tag "href" for?

a)

An html attribute that specifies the destination of a hyperlink in an HTML document.

b)

It is an HTML attribute, usually in the header, that precedes the CSS information.

c)

It is required in order to introduce JavaScript on a html document.

d)

Indicates that the document is a hypertext markup language document.

14.

What is the HTML tag "style" for?

a)

An html attribute that specifies the destination of a hyperlink in an HTML document.

b)

It is an HTML attribute, usually in the header, that precedes the CSS information.

c)

It is required in order to introduce JavaScript on a html document.

d)

Indicates that the document is a hypertext markup language document.

15.

What is the HTML tag "script" for?

a)

An html attribute that specifies the destination of a hyperlink in an HTML document.

b)

It is an HTML attribute, usually in the header, that precedes the CSS information.

c)

It is required in order to introduce JavaScript on a html document.

d)

Indicates that the document is a hypertext markup language document.

16.

What is the HTML tag "html" for?

a)

An html attribute that specifies the destination of a hyperlink in an HTML document.

b)

It is an HTML attribute, usually in the header, that precedes the CSS information.

c)

It is required in order to introduce JavaScript on a html document.

d)

Indicates that the document is a hypertext markup language document.

17.

What is the HTML tag "head" for?

a)

Designates an area of the document as the page header or top portion of the document.

b)

Give the web browser page a name or title.

c)

Largest heading size in an HTML page.

d)

Smallest heading size in an HTML page.

18.

What is the HTML tag "title" for?

a)

Designates an area of the document as the page header or top portion of the document.

b)

Give the web browser page a name or title.

c)

Largest heading size in an HTML page.

d)

Smallest heading size in an HTML page.

19.

What is the HTML tag "h1" for?

a)

Designates an area of the document as the page header or top portion of the document.

b)

Give the web browser page a name or title.

c)

Largest heading size in an HTML page.

d)

Smallest heading size in an HTML page.

20.

What is the HTML tag "h6" for?

a)

Designates an area of the document as the page header or top portion of the document.

b)

Give the web browser page a name or title.

c)

Largest heading size in an HTML page.

d)

Smallest heading size in an HTML page.

21.

What is the HTML tag "a" for?

a)

Creates a hyperlink to another web page.

b)

Used to break or insert a line on a webpage.

c)

Indicates that a paragraph will follow.

d)

Designates an area of the document as the main body.

22.

What is the HTML tag "br" for?

a)

Creates a hyperlink to another web page.

b)

Used to break or insert a line on a webpage.

c)

Indicates that a paragraph will follow.

d)

Designates an area of the document as the main body.

23.

What is the HTML tag "p" for?

a)

Creates a hyperlink to another web page.

b)

Used to break or insert a line on a webpage.

c)

Indicates that a paragraph will follow.

d)

Designates an area of the document as the main body.

24.

What is the HTML tag "body" for?

a)

Creates a hyperlink to another web page.

b)

Used to break or insert a line on a webpage.

c)

Indicates that a paragraph will follow.

d)

Designates an area of the document as the main body.

25.

You would like your very stylish web page interact with users instead of just showing words and pictures. What should you add to it?

a)

some HTML tags

b)

some CSS tags

c)

some JavaScript

d)

some Scratch code

26.
You should save HTML files with which file extension?
a)
.htm
b)
.index
c)
.webpage
d)
.html
27.
Which of the following is the largest heading? 
a)
h2
b)
h3
c)
h4
d)
h6
28.
HTML uses
a)
Tabs
b)
Tags
c)
Labels
d)
Quotes
29.
Which is the correct way of defining an HTML5 document?
a)
<!DOCTYPE html>
b)
<!DOCTYPE HTML5>
c)
<!DOCTYPE html "PUBLIC">
d)
<DOCTYPE html>
30.
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>
31.
Which character is used to indicate an end tag?
a)
*
b)
<
c)
/
d)
^
32.
HTML tags are always surrounded by
a)
( )
b)
{ }
c)
< >   
d)
"  "
33.
What does HTML stand for?
a)
Hypertext Medium Language
b)
Hippo Tries Making Licorice
c)
Hypertext Markup Lingo
d)
Hypertext Markup Language
34.
What is the difference between HTML and CSS?
a)
CSS is one type of HTML
b)
HTML gives a webpage structure. CSS provides styling.
c)
CSS structures a webpage. HTML strictly provides styling.
d)
There is no difference.
35.
What is another name for a webpage when you click on it?
a)
image
b)
hyper markup
c)
hyperlink
d)
website
36.

Which of the following characters indicates an end or closing tag in an HTML tag?

a)

/

b)

>

c)

#

d)

<end>

37.

Which of the following tags are formatted correctly to add an image to an HTML document?

a)

<img href="puppy.gif" alt="puppy">

b)

<img src="puppy.gif" alt="puppy">

c)

<image src="puppy.gif" alt="Puppy">

d)

<img alt="puppy">puppy.gif</img>

38.
Is this an opening tag or a closing tag? </p>
a)
Opening
b)
Closing
39.

Which is the proper way to write an h1 tag?

a)

<h1>Hello</h1>

b)

<h1>"Hello"

c)

{h1}Hello{/h1}

d)

<h1>Hello<h1>

40.

Which of the following has a correct website structure?

a)

<!DOCTYPE html>

<html>


<head>

</head>


<body>

</body>


</html>

b)

<!DOCTYPE html>

</html>


<head>

</head>


</body>

</body>

c)

</html>


<head>

</head>


<body>

</body>


</html>

<!DOCTYPE html>

d)

<!DOCTYPE html>

</html>

<body>

<head>

</head>


</html>