Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Compro long Quiz week 5 and 6

Total questions: 84

Worksheet time: 2hrs 37mins

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.
com" represent? <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 this menu?
a)
<ul> and <li>
b)
<ol> and <li>
c)
<table> and <tr>
d)
<p> and <br>
13.
How would you achieve this?
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)
<ul> and <li>
b)
<ol> and <li>
c)
<dl> and <dt>
d)
<div> and <p>
16.
Which HTML tag should you use?
a)
<picture>
b)
<img>
c)
<image>
d)
<photo>
17.
Which HTML element will you use?
a)
<img>
b)
<video>
c)
<media>
d)
<embed>
18.
mp3" type="audio/mp3"></audio>. What does the controls attribute do?
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.
/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?
a)
<h1>
b)
<h3>
c)
<h6>
d)
<p>
27.
Which HTML tag should you use?
a)
<h2>
b)
<hr />
c)
<p>
d)
<br />
28.
Which HTML element should you use?
a)
<br />
b)
<hr />
c)
<p>
d)
<h4>
29.
Which HTML tag would be appropriate to use?
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
51.
Which HTML element is used to create an unordered list?
a)
<ul>
b)
<ol>
c)
<li>
d)
<a>
52.
What does the "href" attribute do in the anchor element (<a>) in HTML?
a)
Specifies the list type
b)
Creates a link to another webpage
c)
Defines the color of the text
d)
Sets the background image
53.
Where are HTML attributes usually specified?
a)
Ending tag
b)
Within the content
c)
Starting tag
d)
After the ending tag
54.
Which HTML element is used to create an ordered list?
a)
<ul>
b)
<ol>
c)
<li>
d)
<a>
55.
What do HTML attributes provide?
a)
Formatting options for text
b)
Extra information about elements
c)
The structure of the webpage
d)
The design layout of the page
56.
What is the purpose of the <a> element in HTML?
a)
To create an ordered list
b)
To create a paragraph
c)
To create an anchor or hyperlink
d)
To create a line break
57.
Which attribute in the anchor element specifies the URL of the page the link goes to?
a)
Id
b)
class
c)
href
d)
src
58.
What does the <br> tag do in HTML?
a)
Creates a line break
b)
Defines a paragraph
c)
Inserts an image
d)
Sets the background color
59.
Which tag is used to denote list items in HTML?
a)
<ul>
b)
<ol>
c)
<li>
d)
<a>
60.
What does the <hr> tag do in HTML?
a)
Creates a hyperlink
b)
Inserts an image
c)
Defines a line break
d)
Inserts a horizontal line
61.
Which HTML element is used for defining the most important heading?
a)
<h1>
b)
<h4>
c)
<h6>
d)
<h2>
62.
What is the purpose of the <p> tag in HTML?
a)
Defines a hyperlink
b)
Creates a line break
c)
Defines a paragraph
d)
Inserts an image
63.
Which tag is used for the smallest heading in HTML?
a)
<h6>
b)
<h5>
c)
<h4>
d)
<h3>
64.
What is the purpose of the <li> tag in HTML?
a)
Defines a list item
b)
Creates a line break
c)
Inserts an image
d)
Defines a paragraph
65.
What does the <br> tag do in HTML?
a)
Defines a list item
b)
Creates a line break
c)
Inserts an image
d)
Defines a paragraph
66.
Which HTML element is used to create an ordered list?
a)
<ul>
b)
<ol>
c)
<li>
d)
<a>
67.

What is the primary responsibility of the HTML code file in web development?

a)

Styling the website

b)

Enabling offline support

c)

Defining the website's structure

d)

Hosting web pages on a server

68.

Which type of files is responsible for styling a website?

a)

HTML files

b)

JavaScript files

c)

CSS files

d)

Web server files

69.

What does JavaScript code primarily enable a website to do?

a)

Define its structure

b)
  • Enabling offline access to web pages

c)
  • Add styling elements

d)
  • Have interactive behavior

70.

How would you define a website?

a)
  • A computer that hosts web pages

b)
  • A collection of web pages grouped together

c)
  • The code responsible for website styling

d)
  • A file used for offline support

71.

What is the role of a web server?

a)
  • Defining website structure

b)
  • Hosting web pages on the internet

c)
  • Styling web pages

d)
  • Writing JavaScript code

72.
  1. What does HTML stand for in web development?


a)
  • Hyperlink Text Markup Language

b)
  • High-level Text Management Language

c)
  • Hypertext Transfer Markup Language

d)
  • Hypertext Markup Language

73.

Can HTML be used offline without an internet connection?

a)
  • No, HTML always requires an internet connection.

b)
  • Yes, HTML pages can be made available offline.

c)
  • HTML can only be used offline with specific browsers.

d)
  • Offline use of HTML is limited to web servers.

74.

What does offline support in HTML mean?

a)
  • Accessing the internet using HTML

b)
  • Making web servers available offline

c)
  • Allowing HTML pages to be used without an internet connection

d)
  • Hosting HTML files on a web server

75.

Which component of web development focuses on defining the visual style of a website?

a)
  • HTML

b)
  • JavaScript

c)
  • CSS

d)
  • Web server

76.
  1. What is the primary role of a web server in the context of a website?

a)
  • Creating HTML code

b)
  • Designing website structure

c)
  • Hosting web pages on the internet

d)
  • Writing JavaScript code

77.

In web development, which type of file is primarily responsible for enabling a website's interactive behavior?

a)

HTML files

b)

CSS files

c)

JavaScript files

d)

Web server files

78.
  1. What is the primary function of CSS files in web development?

a)
  • Defining website structure

b)
  • Hosting web pages on the internet

c)
  • Styling web pages

d)
  • Adding interactive behavior

79.
  1. What does the abbreviation "CSS" stand for in web development?

a)
  • Cascading Style Sheets

b)
  • Computer Server System

c)
  • Central Scripting Syntax

d)
  • Creative Style Solutions

80.
  1. How does HTML contribute to web development even when offline?

a)
  • It hosts web pages on a local server.

b)
  • It allows web servers to function offline.

c)
  • HTML itself cannot function offline.

d)
  • It enables offline access to web pages.

81.
  1. What is the primary function of a web server in hosting a website?

a)
  • Writing HTML code

b)
  • Styling web pages

c)
  • Defining website structure

d)
  • Hosting web pages on the internet

82.
  1. Which part of a webpage does HTML primarily define?

a)
  • The webpage's style

b)
  • The webpage's structure

c)
  • The webpage's interactive behavior

d)
  • The webpage's hosting server

83.
  1. What is the role of CSS in web development?

a)
  • Enabling offline access to web pages

b)
  • Defining webpage structure

c)
  • Styling web pages for visual presentation

d)
  • Writing interactive JavaScript code

84.
  1. Which component of web development focuses on creating the logical structure of a webpage?

a)
  • JavaScript

b)
  • CSS

c)
  • HTML

d)
  • Web server