Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

1st quarter long test 2

Total questions: 50

Worksheet time: 1hrs 23mins

Name
Class
Date
1.
Which HTML tag is used to create a paragraph of text?
a)
<h1>
b)
<p>
c)
<br>
d)
<hr>
2.
Which of the following is the largest heading tag in HTML?
a)
<h3>
b)
<h6>
c)
<h1>
d)
<h4>
3.
What is the purpose of the <hr> tag in HTML?
a)
To create a new paragraph.
b)
To insert a horizontal line as a thematic division.
c)
To create a line break.
d)
To define a heading.
4.
How do you create a line break in HTML without starting a new paragraph?
a)
<h2>
b)
<p>
c)
<br>
d)
<hr>
5.
Which of the following tags is used to define headings in decreasing order of importance?
a)
<p>, <h1>, <hr>
b)
<h1>, <h2>, <h3>, <h4>, <h5>, <h6>
c)
<br>, <h1>, <p>
d)
<h6>, <h5>, <h4>, <h3>, <h2>, <h1>
6.
What is an HTML attribute?
a)
A tag that defines a heading.
b)
A property that provides additional information about an element.
c)
A tool for defining the structure of a web page.
d)
A type of file used for web development.
7.
Which of the following attributes is used to specify the URL for an anchor (<a>) element?
a)
src
b)
link
c)
href
d)
url
8.

What does the "Visit Example.com" represent in thi line of code?
<a href="https://www.example.com">Visit Example.com</a>

a)
The URL of the link.
b)
The name of the attribute.
c)
The visible text of the link that users click on.
d)
The value of an attribute.
9.
Which tag is used to create an unordered list in HTML?
a)
<ol>
b)
<ul>
c)
<li>
d)
<list>
10.
What is the purpose of the <li> tag in an HTML list?
a)
To define a heading.
b)
To provide additional attributes for a link.
c)
To specify an individual item within a list.
d)
To create a paragraph.
11.
Which attribute should you use to specify where the link will go?
a)
Use the src attribute to specify the URL.
b)
Use the href attribute to specify the URL.
c)
Use the link attribute to specify the URL.
d)
Use the target attribute to specify the URL.
12.

Which HTML tags would you use to best represent a menu that uses bullets?

a)
<ul> and <li>
b)
<ol> and <li>
c)
<table> and <tr>
d)
<p> and <br>
13.

How would you achieve this?
a hyperlink that says " Go to example.com"

a)
Use <a> with href="https://www.example.com" and add the text between the tags.
b)
Use <link> with src="https://www.example.com" and place the text inside.
c)
Use <button> to create a clickable link.
d)
Use <p> and add the URL.
14.
Which attribute should you use to specify where the link will go?
a)
Use the src attribute to specify the URL.
b)
Use the href attribute to specify the URL.
c)
Use the link attribute to specify the URL.
d)
Use the target attribute to specify the URL.
15.

Which tags should you use to create this list?
A menu that uses numbers

a)
<ul> and <li>
b)
<ol> and <li>
c)
<dl> and <dt>
d)
<div> and <p>
16.

Which HTML tag should you use?
inserting pictures to a webpage

a)
<picture>
b)
<img>
c)
<image>
d)
<photo>
17.

Which HTML element will you use?
inserting video files in webpages

a)
<img>
b)
<video>
c)
<media>
d)

<audio>

18.

What does the controls attribute do to this tag <audio>?

a)
It specifies the type of audio format.
b)
It sets the volume of the audio file.
c)
It allows users to control the playback of the audio, such as play or pause.
d)
It defines the duration of the audio file.
19.
Which attributes would you use to set the video size?
a)
width and height
b)
src and size
c)
controls and dimensions
d)
alt and format
20.
Which attributes would you use to set the video size?
a)
width and height
b)
src and size
c)
controls and dimensions
d)
alt and format
21.
Which tag should you use inside the <video> element to specify the video sources?
a)
<media>
b)
<source>
c)
<track>
d)
<embed>
22.
How can you ensure users have a way to control playback?
a)
Add the autoplay attribute.
b)
Add the controls attribute.
c)
Add the loop attribute.
d)
Add the muted attribute.
23.
How can you ensure users have a way to control playback?
a)
Add the autoplay attribute.
b)
Add the controls attribute.
c)
Add the loop attribute.
d)
Add the muted attribute.
24.

<img src= "/pictures/cat.jpg" alt="A cute cat" /> but the image isn't displaying. What might be the reason?

a)
The alt attribute is missing.
b)
The src path might be incorrect.
c)
The img tag must be closed with </img>.
d)
Images cannot be used in HTML.
25.
Which HTML element should you use for the main title?
a)
<h1>
b)
<h4>
c)
<p>
d)
<hr />
26.

Which HTML element would you use for this?
Smallest header

a)
<h1>
b)
<h3>
c)
<h6>
d)
<p>
27.

Which HTML tag should you use?
inserting a horizontal line

a)
<h2>
b)
<hr />
c)
<p>
d)
<br />
28.

Which HTML element should you use?
inserting a paragraph

a)
<br />
b)
<hr />
c)
<p>
d)
<h4>
29.

Which HTML tag would be appropriate to use?
Breaking the line of text

a)
<p>
b)
<h3>
c)
<br />
d)
<hr />
30.

Select all the HTML Elements that contain attributes.

a)

<h4>Business Ethics</h4>

b)

<div class="text-button-pay">

c)

<img src="assets/images/courses-01.jpg" alt="">

d)

<h1>Already a Member?</h1>

<h3>Username:</h3>

31.

Select all the attribute names that you see on the given code.

<form>

<input type="text" name="user">

<h3>Password:</h3>

<input type="password" name="password">

<br><br>

a)

type

b)

name

c)

br

d)

form

e)

h3

32.

Select all the attribute names that you see on the given code.

<a href="#menu" class="menu-link">

<i class="fa fa-bars"></i></a>

<nav id="menu" class="main-nav" role="navigation">

<ul class="main-menu">

<li><a href="#section1">Home</a></li>

<li class="has-submenu">

<a href="#section2">Be a JPIAN</a>

a)

href

b)

class

c)

id

d)

role

e)

li

33.

Select all the HTML Elements that contain attributes.

a)

<div class="logo">

b)

<input type="submit" value="Submit">

c)

<br><br><br><br>

d)

<h3>Username:</h3>

<form>

e)

<input type="password" name="password">

34.

Select all the HTML Elements that contain attributes.

a)

<a href="form2.html">Take our Survey</a>

b)

<input type="radio" name="male" value="gender">

c)

<select>

<option>GAS</option>

<option>ABM</option>

d)

<option>TVL</option>

</select>

e)

<h2>Lastname</h2>

35.

Select all the HTML Elements that contain attributes.

a)

<meta charset="utf-8">

b)

<div class="logo">

c)

<h2>Gender</h2>

d)

<h2>Select your strand</h2>

<select>

e)

</form>

</body>

</html>

36.

Select all the HTML Elements that contain attributes.

a)

<input type="datetime-local" value="bday">

b)

<ol type="A">

<li>Coffee</li>

<li>Tea</li>

<li>Milk</li>

</ol>

c)

<ul>

<li>Coffee</li>

<li>Tea</li>

</ul>

d)

<dl>

<dt>JPI</dt>

e)

<dt>Milk</dt>

<dd>-white cold drink</dd>

37.

Select all the attribute names that you see on the given code.

<h2>Gender</h2>

<h3>

Male <input type="radio" name="male" value="gender">

Female <input type="radio" name="female" value="gender">

Others <input type="radio" name="other" value="gender">

</h3>

a)

type

b)

name

c)

value

d)

role

e)

li

38.

Select all the attribute names that you see on the given code.

<meta charset="utf-8">

<title>JPI Sample Webpage</title>

<a href="#menu" class="menu-link">

<nav id="menu" class="main-nav" role="navigation">

a)

charset

b)

href

c)

class

d)

id

e)

role

39.

Select all the attribute names that you see on the given code.

<video autoplay muted loop id="bg-video">

a)

autoplay

b)

muted

c)

loop

d)

id

e)

video

40.
Which tag is used to create the largest heading in HTML?
a)
<h1>
b)
<h2>
c)
<h3>
d)
<h4>
41.
What is the purpose of the <p> tag in HTML?
a)
To create a new paragraph
b)
To add a hyperlink
c)
To insert an image
d)
To create a list
42.
Which tag is used to insert a horizontal line in HTML?
a)
<hr />
b)
<br />
c)
<h6>
d)
<p>
43.
Which tag is used for line break in HTML?
a)
<h1>
b)
<br />
c)
<p>
d)
<hr />
44.
Which of the following tags is used for the second largest heading in HTML?
a)
<h2>
b)
<h3>
c)
<h1
d)
<h4>
45.
Which tag is used for the smallest heading in HTML?
a)
<h6>
b)
<h5>
c)
<h4>
d)
<h3>
46.
What is the purpose of the <h2> tag in HTML?
a)
To create the largest heading
b)
To create a new paragraph
c)
To insert a horizontal line
d)
To create the second largest heading
47.
Which of the following is not a heading tag in HTML?
a)
<h7>
b)
<h3>
c)
<h5>
d)
<h1>
48.
What is the purpose of the <h4> tag in HTML?
a)
To create a list
b)
To create the largest heading
c)
To create the fourth largest heading
d)
To insert a horizontal line
49.
Which tag is used to create a smaller heading than <h4> in HTML?
a)
<h5>
b)
<h1>
c)
<h3>
d)
<h2>
50.
In HTML, where are attributes typically specified?
a)
Ending tag
b)
opening tag
c)
Within the content
d)
After the ending tag