wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

HTML Quiz for Beginners

Total questions: 98

Worksheet time: 1hrs 1mins

Name
Class
Date
1.

What is the purpose of HTML tags?

a)

To create animations and special effects

b)

To play audio and video files on a web page

c)

To define the structure and content of a web page.

d)

To send and receive emails from a web page

2.

Give an example of an opening and closing HTML tag.

a)

<html> >klisf>

b)

<html

</html

c)

<html?

<html/>

d)

<html>

</html>

3.

What is the purpose of the tag in a web page?

a)

To define the header of a web page

b)

To style the web page

c)

To define the main content of a web page

d)

To create a hyperlink in the web page

4.

Explain the use of the

tag in HTML.

a)

To insert a description in a website

b)

To create a table in HTML

c)

To define a paragraph of text

d)

To define a heading in HTML

5.

During a web development class, Aarush was asked to create a line break in HTML. Which of the following options should he use?

a)

<sr>

b)

<lr>

c)


<br>

d)

<hr>

6.

How do you insert an image in an HTML document?

a)

img tag

b)

image tag

c)

image source

d)

img source

7.

What is the default alignment of an image in HTML?

a)

Top-aligned

b)

Center-aligned

c)

Left-aligned

d)

Right-aligned

8.

Which HTML tag is used to define a paragraph?

a)

<p>

b)

<h>

c)

<l>

d)

<t>

9.

which tag do we use instead of bgcolor to change the colour of background

(a)  

10.

which tag will give you the biggest heading

a)

<h-1>

b)

<h1>

c)

<h10>

d)

none of the above

11.

if Ainesh is designing a webpage and asks you which tag is used to put background color, what will you tell him?

a)

<head>

b)

<body>

c)

<knees>

d)

<title>

12.

Justify why we should enhance our webpage (atleast 6 lines)

4 lines
13.

HTML coding involves using ____________ to create webpages.

a)

Tabs

b)

Tags

c)

Labels

d)

Quotes

14.

HTML stands for...

a)

Hyper Text Markup Language

b)

High Tech MachineLanguage

c)

High Tech Modem Language

d)

Hyper Tech Markup Lexicon

15.
HTML tags are always surrounded by
a)
( )
b)
{ }
c)
< >   
d)
"  "
16.

Which tag would you use to make a heading?

a)

<heading></heading>

b)

<bigger></bigger>

c)

<h></h1>

d)

<h1></h1>

17.

Which of the listed heading tags creates the largest heading?

a)

h1

b)

h2

c)

h3

d)

h6

18.

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

a)

<ul>

b)

<uline>

c)

<u>

d)

<under>

19.

What is the correct HTML for creating a hyperlink?

a)

<a href="https://www.fireninjaa.org">Fireninjaa</a>

b)

<a url="https://www.fireninjaa.org">Fireninjaa</a>

c)

<a>https://www.fireninjaa.org</a>

20.
Google, Bing and Yahoo are all examples of what?
a)
Web browsers
b)
Search engines
c)
Web engines
d)
Text editors
21.
Google Chrome, Mozilla Firefox and Microsoft Edge are all examples of what?
a)
Search engines
b)
Websites
c)
Web Browsers
d)
Text editors
22.

Which of the following is the correct HTML syntax for inserting an image

a)

<img>apple.jpg</img>

b)

<img src="apple.jpg">

c)

<image src="apple.jpg">

d)

<img ="apple.jpg">

23.

What symbol should you use to target a class name in css?

a)

#

b)

()

c)

.

d)

class

24.

What is the correct syntax to change the background color with css?

a)

background-color: purple;

b)

background-color = "purple";

c)

backgroundcolor=orange

d)

change-background-color: purple

25.

What is missing from this HTML skeleton?


<!DOCTYPE html>

<html>

<body>

</body>

</html>

a)

<head></head>

b)

<div></div>

c)

<img></img>

d)

<head>

26.

How do you change the font color with CSS?

a)

font-color: green;

b)

color: green;

c)

change-font-color: green;

d)

fontcolor=green;

27.

TRUE OR FALSE: All tags require a closing tag.

a)

True

b)

False

28.

Which of the following is the correct CSS link tag?

a)

<link rel="styles" href="stylesheet.css">

b)

<link href="stylesheet">

c)

<link rel="stylesheet" src="styles.css">

d)

<link rel="stylesheet" href="styles.css">

29.
What does CSS stand for? 
a)
Creative Style Sheets
b)
Cascading Style Sheets
c)
Colorful Style Spread
d)
Computer Style Spread
30.
What symbols go around the properties for each CSS selector?
a)
< >
b)
[ ]
c)
{ }
d)
( )
31.
Which is the selector for a link?
a)
a { }
b)
link { }
c)
href { }
d)
a href { }
32.
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.
33.
You should save HTML files with which file extension?
a)
.htm
b)
.index
c)
.webpage
d)
.html
34.
Which of the following is the largest heading? 
a)
h2
b)
h3
c)
h4
d)
h6
35.
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
36.
HTML uses
a)
Tabs
b)
Tags
c)
Labels
d)
Quotes
37.
HTML stands for...
a)
Hyper Text Markup Language
b)
High Tech Marking Language
c)
High Tech Modem Language
d)
Hyper Tech Markup Lexicon
38.
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>
39.
Defines a paragraph
a)
<pr>
b)
<p>
c)
<para>
d)
<par>
40.
Google, Bing and Yahoo are all examples of what?
a)
Web browsers
b)
Search engines
c)
Web engines
d)
Text editors
41.
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
42.
HTML attributes always appear where?
a)
In the opening tag
b)
In the closing tag
c)
Between the tags
d)
After the closing tag
43.
Google Chrome, Mozilla Firefox and Microsoft Edge are all examples of what?
a)
Search engines
b)
Websites
c)
Web Browsers
d)
Text editors
44.
Web Standards are decided on by who?
a)
Microsoft
b)
Apple
c)
W3C
d)
Google
45.
Which is the correct HTML element for inserting a line break?
a)
<b>
b)
<lb>
c)
<br>
d)
<break>
46.
Which is the correct HTML element for underlining text?
a)
<ul>
b)
<uline>
c)
<u>
d)
<under>
47.
Name an element which doesn't have a closing tag.
a)
<img>
b)
<head>
c)
<body>
d)
<p>
48.

HTML stands for...

a)

Hyper Time Multiple Language

b)

Hyper Text Mark-up Language

c)

Hippo T-Rex Mascot Lemur

d)

Hipper Text Make Language

49.

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>

50.

<p> tag is for...

a)

Page of Text

b)

Picture

c)

Paragraph of text

d)

Pineapples

51.

Which of the following codes would create a horizontal line

a)

<br>

b)

<h1></h1>

c)

<hr>

d)

<p>

52.

Which code below is correct for a hyperlink

a)

<a>

"https://google.com"

Click Me

</a>

b)

<a>Click Me>

"https://google.com"

</a>

c)

<a herf="https://google.com">

Click Me

</a>

d)

<a href="https://google.com">

Click Me

</a>

53.

You need a closing tag for an image without text

a)

True

b)

False

54.

src attribute in an image tag means what?

a)

Source of the image

b)

Name of the image

c)

Description of the image

d)

Not used with image tag

55.

Which list tag would you use for an ordered list

a)

<h1></h1>

b)

<ol></ol>

c)

<ul></ul>

d)

<a></a>

56.

Which of the following contains a nested list

a)

<ul>

<li>Apples</li>

<li>Cookies</li>

<li>Milk</li>

</ul>

b)

<ul>

<li>Apples</li>

<li>

Cookies

<ul>

<li>Chocolate Chip</li>

<li>Peanut Butter</li>

</ul>

</li>

<li>Milk</li>

</ul>

57.

<th></th> is the code for .....

a)

a table row

b)

a table column

c)

a table header

d)

Thanos

58.

Which of the following is the code for a paragraph to be blue?

a)

<td style=“background-color:blue;”>

b)

<h1 style=“font-size:60px;”>

c)

<p style=“color:blue;”>

d)

<tagname style=“property:value;”>

59.

Which heading/subheading is the biggest font size?

a)

<h1>

b)

<h2>

c)

<h3>

d)

<h6>

60.

Some tags you have to close with a /

Example: <h1> My Project </h1>

a)

True

b)

False

61.

Which is not a heading/subheading?

a)

<h6>

b)

<h7>

c)

<h1>

d)

<h2>

62.

<a href="https://www.picturelocation"> Click me </a>

Is this coded correctly?

a)

Yes

b)

No

63.

<a herf="https://www.picturelocation"> Click me </a>

Is this coded correctly?

a)

Yes

b)

No, they wrote herf

64.

<a href+"https://www.picturelocation"> Click me </a>

What is wrong with this code?

a)

It should be

<a href=

b)

It should be

<a href-

c)

It should be

<a href/

65.

<a href="https://www.picturelocation"> Click me <a>

What is missing?

a)

Nothing, it is coded correctly.

b)

The / in the closing tag

</a>

c)

They wrote

herf

66.

What color are links or hyperlinks?

a)

red

b)

blue

c)

yellow

d)

green

67.

When a link or hyperlink is purple and not blue, it means...

a)

That you have never ever clicked on it

b)

You have already clicked on it

c)

It is a virus

68.

<br>

what is this called?

a)

a line break

b)

an anchor element

c)

hyperlink

69.

which code lets you enter or return to the next line and helps you stack text on top of other text?

a)

<br>

b)

<a href=

c)

<img src

70.

In this code <img src

What does img stand for?

a)

iMac

b)

image

c)

amazing

d)

emma

71.

In this code <img src

What does src stand for?

a)

sauce

b)

source

c)

saucey-sauce

d)

saucer

72.

<img src="https://www.imagelocation.com">

Is this coded correctly?

a)

Yes

b)

No

73.

<img scr="https://www.picturelocation.com">

Is this coded correctly

a)

Yes

b)

No, src is written wrong

74.

width="600" height="200"

This code can help resize an image when using

<img src

a)

True

b)

False

75.

<img scr="https://www.picturelocation.com">

Is a self closing tag, it does not need a /

a)

True

b)

False

76.

How can you find an image's address?

a)

Right click and choose - open image in new tab

b)

Right click and choose - copy image address

c)

Right click and choose - save link as

77.

What does HTML stand for?

a)

Hyperlink Markup Language

b)

Hypertext Markup Language

c)

Hyperbolic Mark-it

Language

78.

What does CSS handle?

a)

The style and looks of a webpage

b)

The text of a webpage

79.
You should save HTML files with which file extension?
a)
.htm
b)
.index
c)
.webpage
d)
.html
80.
Which of the following is the largest heading? 
a)
h2
b)
h3
c)
h4
d)
h6
81.
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
82.
HTML uses
a)
Tabs
b)
Tags
c)
Labels
d)
Quotes
83.
<!DOCTYPE> 
a)
Defines the document type
b)
Defines a comment
c)
Defines the document's body
d)
Defines information about the document
84.
HTML stands for...
a)
Hyper Text Markup Language
b)
High Tech Marking Language
c)
High Tech Modem Language
d)
Hyper Tech Markup Lexicon
85.
Which is the correct way of defining an HTML5 document?
a)
<!DOCTYPE html>
b)
<!DOCTYPE HTML5>
c)
<!DOCTYPE html "PUBLIC">
d)
<DOCTYPE html>
86.
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>
87.
Defines a paragraph
a)
<pr>
b)
<p>
c)
<para>
d)
<par>
88.
<a>
a)
Defines an article tag
b)
Defines an HTML link
c)
Defines the link destination 
d)
Defines the area
89.
In HTML, a color can be specified by using what?
a)
Colour name
b)
RGB value
c)
HEX value
d)
All of these
90.
Google, Bing and Yahoo are all examples of what?
a)
Web browsers
b)
Search engines
c)
Web engines
d)
Text editors
91.
HTML5 incorporates three kinds of code: HTML, CSS and Javascript. Which of these provides the structure to a webpage?
a)
Javascript
b)
HTML
c)
CSS
d)
None
92.
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
93.
HTML attributes always appear where?
a)
In the opening tag
b)
In the closing tag
c)
Between the tags
d)
After the closing tag
94.
Google Chrome, Mozilla Firefox and Microsoft Edge are all examples of what?
a)
Search engines
b)
Websites
c)
Web Browsers
d)
Text editors
95.
Web Standards are decided on by who?
a)
Microsoft
b)
Apple
c)
W3C
d)
Google
96.
Which is the correct HTML element for inserting a line break?
a)
<b>
b)
<lb>
c)
<br>
d)
<break>
97.
Which is the correct HTML element for underlining text?
a)
<ul>
b)
<uline>
c)
<u>
d)
<under>
98.
Which character is used to indicate an end tag?
a)
*
b)
<
c)
/
d)
^