wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

HTML Quiz

Total questions: 70

Worksheet time: 38mins

Name
Class
Date
1.

What is HTML?

a)

A programming language for creating software

b)

A markup language for creating web pages

c)

A database management system

d)

A graphic design tool

2.

What is the first step in creating a new HTML file?

a)

Write the CSS code

b)

Design the layout in Photoshop

c)

Enter the basic HTML structure

d)

Install a web server

3.

What does HTML stand for?

a)

Hypertext Markup Language

b)

Hightext Machine Language

c)

Hyperlink and Text Markup Language

d)

Hypertext Machine Language

4.

Which of the following is a part of an HTML document?

a)

Header

b)

Footer

c)

Body

d)

All of the above

5.

What is the primary purpose of HTML tags?

a)

To style the webpage

b)

To structure the content

c)

To store data

d)

To create animations

6.

What is the World Wide Web (WWW)?

a)

A collection of books in a library

b)

A huge collection of websites accessible via the Internet

c)

A type of computer software

d)

A programming language

7.

How do we navigate between web pages on a website?

a)

By using bookmarks

b)

By using hyperlinks

c)

By using search engines

d)

By using email links

8.

What types of information can web pages contain?

a)

Only text

b)

Only images

c)

Images, text, and multimedia

d)

Only multimedia

9.

Where are websites stored?

a)

On a single central server

b)

On web servers all over the world

c)

On personal computers

d)

In a central database

10.

Is there a central storage for websites?

a)

Yes, all websites are stored centrally

b)

No, there is no central storage of websites

c)

Yes, but only for large websites

d)

No, they are stored on personal devices

11.

What is the first step when you view a web page?

a)

Your Computer sends a request to the Website Host/Server

b)

Your Computer sends a request to Your ISP

c)

Your ISP sends a request to the Internet

d)

The Internet sends a request to Your Computer

12.

What role does the Internet play in viewing a web page?

a)

It stores the web page content

b)

It connects Your ISP to the Website Host/Server

c)

It sends the web page directly to Your Computer

d)

It acts as a backup for Your ISP

13.

What does HTML stand for?

a)

HyperText Markup Language

b)

Hyperlink Text Markup Language

c)

HighText Machine Language

d)

HyperText Machine Language

14.

What is the primary purpose of HTML?

a)

To style web pages

b)

To describe the content in web pages

c)

To program web applications

d)

To store data in databases

15.

What is the main purpose of the Yahoo! website as shown in the image?

a)

To provide email services

b)

To offer online shopping

c)

To serve as a search engine and news portal

d)

To host social media interactions

16.

Which menu option is visible in the browser settings in the image?

a)

Privacy settings

b)

Bookmarks and lists

c)

Language preferences

d)

Security settings

17.

What keyboard shortcut can you use to view the HTML code behind a web page?

a)

Ctrl + S

b)

Ctrl + U

c)

Ctrl + P

d)

Ctrl + C

18.

What is the purpose of the declaration in an HTML document?

a)

It links to a CSS file

b)

It specifies the document type and version of HTML

c)

It adds a comment to the code

d)

It creates a new HTML element

19.

What is HTML primarily used for?

a)

Creating mobile apps

b)

Writing and creating websites

c)

Designing video games

d)

Developing operating systems

20.

What do internet browsers do with HTML?

a)

Delete the code

b)

Print the code

c)

Translate the code into web pages

d)

Encrypt the code

21.

What is HTML made up of?

a)

Numbers and equations

b)

Images and videos

c)

Text and tags

d)

Music and sounds

22.

What are tags used for in a web browser?

a)

To create images

b)

To show content on a web page

c)

To store data

d)

To design graphics

23.

How are tags written?

a)

With square brackets

b)

With curly braces

c)

With special characters

d)

With quotation marks

24.

What do tags start and end with?

a)

Square brackets

b)

Curly braces

c)

Triangle brackets

d)

Quotation marks

25.

What does the extra '/' in a tag indicate?

a)

The start of a new section

b)

The end of the title

c)

The beginning of a paragraph

d)

The start of a list

26.

How is HTML similar to a human skeleton?

a)

It provides energy to the web page.

b)

It supports and makes up the structure of a web page.

c)

It adds style and design to the web page.

d)

It is responsible for the web page's content.

27.

Why is HTML considered the starting point for all web pages?

a)

It is the most colorful part of a web page.

b)

It is the final step in web development.

c)

It provides the basic structure needed for further development.

d)

It is used for creating databases.

28.

What are the two main parts of the HTML structure?

a)

A) Header and Footer

b)

B) Head and Body

c)

C) Title and Content

d)

D) Top and Bottom

29.

Which HTML tag is used to define the head section?

a)

A) <header>

b)

B) <head>

c)

C) <body>

d)

D) <html>

30.

Which HTML tag is used to define the body section?

a)

A) <ol>

b)

B) <head>

c)

C) <body>

d)

D) <html>

31.

What is the purpose of the <title> tag?

a)

To create a paragraph

b)

To add a comment

c)

To specify the title of the webpage

d)

To define the main content

32.

What is the function of the <h1> tag in HTML?

a)

To create the smallest heading

b)

To add a comment

c)

To create the biggest heading

d)

To split paragraphs

33.

What is the purpose of the <!-- --> tag in HTML?

a)

To create a heading

b)

To add a comment that is not visible on the website

c)

To define the title

d)

To split paragraphs

34.

What tool do you need to use to write code and try making a website?

a)

Text editor

b)

HTML editor

c)

Spreadsheet

d)

Presentation software

35.

Which website is recommended for writing HTML code and seeing a live version of your website?

a)

www.example.com

b)

www.learnhtml.com

c)

www.programiz.com/html/online-compiler/

d)

www.codeeditor.com

36.

What is the purpose of the <title>?

a)

To display the main heading on the webpage

b)

To set the title of the webpage in the browser tab

c)

To create a paragraph on the webpage

d)

To add a hyperlink to the webpage

37.

Which HTML tag is used to define the main heading of a webpage?

a)

<h2>

b)

<h3>

c)

<h1>

d)

<header>

38.

What does the <p> tag represent in an HTML document?

a)

A paragraph

b)

A heading

c)

A title

d)

A hyperlink

39.

Which HTML tag is used to define the title of a webpage?

a)

<h1>

b)

<title>

c)

<head>

d)

<body>

40.

What is the purpose of the <strong> tag in HTML?

a)

To create a hyperlink

b)

To italicize text

c)

To make text bold

d)

To underline text

41.

Which tag is used to create a paragraph in HTML?

a)

<br>

b)

<paragraph>

c)

<p>

d)

<tab>

42.

What does the <h1> tag represent in HTML?

a)

A hyperlink

b)

A heading

c)

A paragraph

d)

A list

43.

How many lines of code were used in a quick play example?

a)

12

b)

50

c)

100

d)

698

44.

Approximately how many lines of code were needed to build the Google homepage?

a)

50

b)

100

c)

698

d)

12

45.

What is one characteristic of HTML webpages mentioned in the text?

a)

They use only a few tags.

b)

They have thousands of tags available.

c)

They are built with 698 lines of code.

d)

They require no coding.

46.

All content that will be visible in a web page must be added between these tags:

a)

<html> </html>

b)

<head> </head>

c)

<p> </p>

d)

<body> </body>

47.

The largest size heading tag - often used to create the main heading of a web page - is ____ .

a)

<h1> </h1>

b)

<h2> </h2>

c)

<h5> </h5>

d)

<h6> </h6>

48.

Which of these is the correct way to start a tag?

a)

<H1>

b)

</H1>

c)

<H!>

d)

</H/>

49.

Which is the correct way to end a tag?

a)

<body>

b)

</body/>

c)

<'body'>

d)

</body>

50.

Type the character that is in the closing tag of a tag pair, but not in the starting tag.

a)

/

b)

\

c)

@

d)

|

51.

Which of the following creates the smallest header?

a)

<h1></h1>

b)

<h2></h2>

c)

<h5></h5>

d)

<h6></h6>

52.

Which is the correct HTML tag for creating an unordered list?

a)

<ul>

b)

<ol>

c)

<li>

d)

<ulist>

53.

This coding is used to create a paragraph:

a)

<pr></pr>

b)

<paragraph></paragraph>

c)

<p><p>

d)

<p></p>

54.

What tag adds an image to the page?

a)

<image>

b)

<pic>

c)

<img>

55.

Where does the content of the <title> element show up in the browser?

a)

At the top of the page.

b)

In the browser tab.

c)

It's metadata, so it doesn't show up.

d)

At the bottom of the page.

56.

How can you make a list that has no particular order?

a)

<ol> </ol>

b)

<ul> </ul>

c)

<ol> <li>

d)

<li> </ul

57.

What is the correct syntax for defining a hyperlink in HTML?

a)

<a href=”url”> Link text </a>

b)

<a href=”url”> Link text <a>

c)

<a=”url”> Link text <a>

d)

<ref=”url”> Link text <a>

58.

What is the function of the tag in an HTML document?

a)

To create a footer section

b)

To define the navigation menu

c)

To contain metadata and links to scripts and stylesheets

d)

To display the main content of the webpage

59.

Which tag is used to create a hyperlink in HTML?

a)

<url>

b)

<href>

c)

<a>

d)

<link>

60.

What is the purpose of the tag in HTML?

a)

To display an image on the webpage

b)

To define a section of the webpage

c)

To add a comment in the code

d)

To create a link to another webpage

61.

What is the purpose of the <img> tag in HTML?

a)

To make text bold

b)

To display images

c)

To create a hyperlink

d)

To create a list

62.

Which tag is used to create an unordered list in HTML?

a)

<ul>

b)

<ol>

c)

<list>

d)

<li>

63.

What does the <footer> tag represent in an HTML document?

a)

The navigation links

b)

The header of the page

c)

The bottom section of the page

d)

The main content of the page

64.

What is the function of the <meta> tag in an HTML document?

a)

To link external stylesheets

b)

To embed images

c)

To provide metadata about the HTML document

d)

To create a navigation menu

65.

Which of the following tags is used to create a list in HTML?

a)

<item>

b)

<ul>

c)

<ol>

d)

<list>

66.

What does the <img> tag require to display an image?

a)

Both src and alt attributes

b)

Only the title attribute

c)

The src attribute

d)

Only the alt attribute

67.

Which HTML tag is used to create a hyperlink?

a)

<href>

b)

<a>

c)

<link>

d)

<url>

68.

What does the <img> tag do in an HTML document?

a)

It adds a comment

b)

It creates a link to another page

c)

It displays an image on the webpage

d)

It defines a table

69.

Which of the following is NOT a valid HTML element?

a)

<span>

b)

<div>

c)

<text>

d)

<section>

70.

What is the function of the <img> tag in HTML?

a)

To define a list

b)

To display images on a webpage

c)

To add comments

d)

To create a hyperlink