Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

GRADE 6 CODING ELECTIVE 2 TERM 3 2023

Total questions: 32

Worksheet time: 16mins

Name
Class
Date
1.
What does HTML stand for?
a)
Home Tool Markup Language
b)
Hyper Text Markup Language
c)
Hyperlinks and Text Markup Language
2.
Choose the correct HTML element for the largest heading:
a)
<h6>
b)
<heading>
c)
<h1>
d)
<head>
3.
What is the correct HTML element for inserting a line break?
a)
<br/>
b)
<break>
c)
<lb>
d)
<st>
4.
What is the correct HTML for adding a background color?
a)
<background>yellow</background>
b)
<body style="background-color:yellow;">
c)
<body bg="yellow">
5.
What is the correct HTML for creating a hyperlink?
a)
<a>http://www.w3schools.com</a>
b)
<a name="http://www.w3schools.com">W3Schools.com</a>
c)
<a href="http://www.w3schools.com">W3Schools</a>
d)
<a url="http://www.w3schools.com">W3Schools.com</a>
6.
Which character is used to indicate an end tag?
a)
/
b)
*
c)
^
d)
<
7.
How can you open a link in a new tab/browser window?
a)
<a href="url" target="_blank">
b)
<a href="url" target="new">
c)
<a href="url" new>
8.
Which of these elements are all <table> elements?
a)
<table><tr><td>
b)
<thead><body><tr>
c)
<table><head><tfoot>
d)
<table><tr><tt>
9.
How can you make a numbered list?
a)
<list>
b)
<ol>
c)
<dl>
d)
<ul>
10.
How can you make a bulleted list?
a)
<ol>
b)
<ul>
c)
<list>
d)
<dl>
11.
What is the correct HTML for making a checkbox?
a)
<check>
b)
<input type="checkbox">
c)
<checkbox>
d)
<input type="check">
12.
What is the correct HTML for inserting a background image?
a)
<background img="background.gif">
b)
<body style="background-image:url(background.gif)">
c)
<body background=”background.gif”>
d)
<background.gif">
13.
HTML comments start with <!-- and end with -->
a)
False
b)
True
14.
Which HTML element defines the title of a document?
a)
<title>
b)
<meta>
c)
<head>
15.

Which is the latest version of HTML?

a)

HTML4

b)

HTML8

c)

HTML5

d)

HTML6

16.

Which heading level shows the most important heading?

a)

<h1>

b)

<h3>

c)

<h5>

d)

<h6>

17.

How do you insert a single line break in HTML?

a)

<br>

b)

<br />

c)

<line>

d)

<break>

18.

Which tag is used for subscript (xy) ?

a)

<sub>

b)

<subscript>

19.

What does <td> tag define?

a)

Table cell

b)

Table head

c)

Table body

d)

Table data

20.

Can a table contain an image or a link or another table?

a)

Yes

b)

No

21.

Which of these is the official logo of HTML?

a)
b)
c)
d)
22.

What does &#8364; display?

a)

¢

b)

£

c)

¥

d)

€

23.

Which tag is used for representing italicized text?

a)

<i>

b)

<em>

c)

<italic>

24.

Which tag is used for bold text?

a)

<b>

b)

<strong>

c)

<bold>

25.

In a table, which tag is used for inserting table headings?

a)

<table>

b)

<td>

c)

<th>

d)

<caption>

26.
What is the function of the <p> tag?
a)
Defines a paragraph.
b)
Makes the text purple.
c)
It pushes the text to the right.
d)
Prints the webpage.
27.
What is the purpose of HTML
a)
To make a formatted document
b)
To make a webpage
c)
To edit photos
d)
To make a creative slide
28.

Which tag defines the visible content of a web document?

a)

<head>

b)

<meta>

c)

<title>

d)

<body>

29.

A properly coded HTML tag will always be found between which two symbols?

a)

< >

b)

{ }

c)

[ ]

d)

( )

30.

You should save HTML files with which file extension(s)?

a)

.hm

b)

.index

c)

.webpage

d)

.html

31.

The correct sequence of HTML tags for starting a webpage is -

a)

Head, Title, HTML, body

b)

HTML, Body, Title, Head

c)

HTML, Head, Title, Body

d)

none of these

32.

What is the value in this CSS?

p {color: red;}

a)

p

b)

color

c)

red