wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

ELEWEB 323 - Midterm Exam

Total questions: 70

Worksheet time: 35mins

Name
Class
Date
1.
What does HTML stand for?
a)
HyperText Markup Language
b)
HighText Machine Language
c)
Hyper Transfer Markup Language
d)
Home Tool Markup Language
e)
Hyperlinks and Text Markup Language
2.
Which tag defines the root of an HTML document?
a)
<html>
b)
<head>
c)
<body>
d)
<root>
e)
<main>
3.
Which tag contains metadata like the page title?
a)
<meta>
b)
<head>
c)
<body>
d)
<title>
e)
<info>
4.
Which HTML tag displays the largest heading?
a)
<h6>
b)
<p>
c)
<h1>
d)
<h3>
e)
<title>
5.
What is the correct declaration for HTML5?
a)
<!DOCTYPE HTML PUBLIC>
b)
<!DOCTYPE HTML SYSTEM>
c)
<!DOCTYPE html>
d)
<DOCTYPE HTML5>
e)
<!html>
6.
Which tag contains all visible content of a webpage?
a)
<html>
b)
<meta>
c)
<body>
d)
<div>
e)
<section>
7.
Who invented the World Wide Web?
a)
Bill Gates
b)
Tim Berners-Lee
c)
Larry Page
d)
Steve Jobs
e)
Mark Zuckerberg
8.
What does the <p> tag define?
a)
Heading
b)
Paragraph
c)
Link
d)
Table
e)
Image
9.
Which HTML tag creates a hyperlink?
a)
<link>
b)
<a>
c)
<href>
d)
<url>
e)
<hyper>
10.

Which attribute specifies the link's destination?

a)
src
b)
alt
c)
href
d)
target
e)
link
11.
Which HTML tag defines an image?
a)
<picture>
b)
<src>
c)
<image>
d)
<img>
e)
<graphic>
12.
Which attribute is important for accessibility in images?
a)
src
b)
alt
c)
title
d)
href
e)
size
13.
Which tag sets the title of a webpage shown in the browser tab?
a)
<meta>
b)
<head>
c)
<title>
d)
<h1>
e)
<caption>
14.
Which HTML element makes text bold and large as a heading?
a)
<p>
b)
<h1>
c)
<strong>
d)
<title>
e)
<div>
15.
Which tag is used to add a line break in HTML?
a)
<break>
b)
<lb>
c)
<br>
d)
<line>
e)
<enter>
16.
What is the purpose of the DOCTYPE declaration?
a)
Defines language
b)
Defines HTML version
c)
Defines stylesheet
d)
Defines paragraph
e)
Defines script type
17.
Which HTML version introduced semantic elements like <header> and <article>?
a)
HTML 2.0
b)
HTML 3.2
c)
HTML 4.01
d)
XHTML 1.0
e)
HTML5
18.
Which tag is used for creating lists with bullet points?
a)
<ol>
b)
<li>
c)
<ul>
d)
<list>
e)
<bullet>
19.
Which tag is used for creating ordered lists with numbers?
a)
<ul>
b)
<ol>
c)
<li>
d)
<list>
e)
<number>
20.

Which HTML tag is used to display text in italics?

a)

<i>

b)

<italic>

c)

<it>

d)

<emphasize>

e)

<style>

21.
Which software can you use to create HTML files on Windows?
a)
Notepad
b)
Word
c)
Excel
d)
PowerPoint
e)
Paint
22.
What file extension is typically used for HTML files?
a)
.doc
b)
.exe
c)
.html
d)
.txt
e)
.css
23.

Which HTML tag is used to make text bold?

a)

<b>

b)

<bold>

c)

<strong>

d)

<bb>

e)

<weight>

24.
Which online editor allows testing HTML code instantly?
a)
VS Code
b)
Sublime
c)
W3Schools Tryit Editor
d)
Notepad++
e)
Atom
25.
What does the <a> tag stand for?
a)
anchor
b)
append
c)
attribute
d)
apply
e)
address
26.
Which HTML element contains all visible page content?
a)
<body>
b)
<head>
c)
<html>
d)
<meta>
e)
<section>
27.
Which tag creates a smaller heading than <h1>?
a)
<h2>
b)
<h6>
c)
<p>
d)
<title>
e)
<small>
28.
Which tag is used to insert an image source?
a)
href
b)
src
c)
alt
d)
link
e)
data
29.
Which tool can be used to inspect HTML elements in the browser?
a)
View Source
b)
Inspect
c)
Debugger
d)
Network Monitor
e)
Console
30.
Which HTML attribute specifies the image height?
a)
size
b)
length
c)
alt
d)
height
e)
width
31.
What does an HTML element consist of?
a)
Start tag, content, end tag
b)
Only start tag
c)
Only content
d)
Only end tag
e)
None
32.
Which is an example of an empty element?
a)
<br>
b)
<p>
c)
<h1>
d)
<div>
e)
<em>
33.
Which tag defines the largest heading?
a)
<h1>
b)
<h6>
c)
<p>
d)
<div>
e)
<title>
34.
What is the main purpose of headings in HTML?
a)
Provide structure and hierarchy
b)
Make text bold only
c)
Add colors
d)
Create tables
e)
Add images
35.
Which tag is used for a paragraph?
a)
<p>
b)
<para>
c)
<pr>
d)
<text>
e)
<pg>
36.
Which tag inserts a line break?
a)
<br>
b)
<lb>
c)
<break>
d)
<p>
e)
<nl>
37.
Which tag preserves whitespace and line breaks?
a)
<pre>
b)
<code>
c)
<text>
d)
<p>
e)
<strong>
38.
Which attribute is used to apply inline CSS?
a)
style
b)
css
c)
class
d)
id
e)
design
39.
Which is best practice for CSS usage?
a)
External CSS
b)
Inline CSS only
c)
Mix HTML with inline
d)
Use <font> tags
e)
None
40.
Which is the correct example of internal CSS?
a)
<style> h1{color:blue;} </style>
b)
<css> h1 {}</css>
c)
<script> h1 {}</script>
d)
<design> {}</design>
e)
<meta> {}</meta>
41.
Which CSS property changes background color?
a)
background-color
b)
bg-color
c)
bgcolor
d)
back-color
e)
color-bg
42.
Which tag emphasizes text semantically?
a)
<em>
b)
<i>
c)
<b>
d)
<mark>
e)
<sub>
43.
Which tag shows strong importance?
a)
<strong>
b)
<b>
c)
<i>
d)
<u>
e)
<big>
44.
Which tag makes text highlighted?
a)
<mark>
b)
<highlight>
c)
<strong>
d)
<b>
e)
<em>
45.
What tag is used for subscript text?
a)
<sub>
b)
<sup>
c)
<small>
d)
<down>
e)
<low>
46.
Which tag is used for block quotations?
a)
<blockquote>
b)
<q>
c)
<cite>
d)
<abbr>
e)
<pre>
47.
Which tag is used for inline quotes?
a)
<q>
b)
<blockquote>
c)
<cite>
d)
<em>
e)
<span>
48.
Which tag is used for citations of books/articles?
a)
<cite>
b)
<q>
c)
<blockquote>
d)
<ref>
e)
<title>
49.
Which tag represents contact information?
a)
<address>
b)
<contact>
c)
<info>
d)
<cite>
e)
<p>
50.
Which tag reverses text direction?
a)
<bdo>
b)
<reverse>
c)
<dir>
d)
<rtl>
e)
<text>
51.
Which is the correct syntax for a comment?
a)
<!-- comment -->
b)
// comment
c)
/* comment */
d)
# comment
e)
** comment **
52.
What is the main purpose of comments?
a)
Add notes for developers
b)
Display on page
c)
Make text bold
d)
Add SEO tags
e)
Add images
53.
Which color format uses hex values?
a)
#RRGGBB
b)
rgb(…)
c)
hsl(…)
d)
name-based
e)
cmyk()
54.
Which color format allows transparency with alpha?
a)
RGBA or HSLA
b)
HEX only
c)
Named colors
d)
HSL only
e)
RGB only
55.
Which CSS property sets text color?
a)
color
b)
text-color
c)
font-color
d)
text-style
e)
color-text
56.
Which heading should be used once per page?
a)
<h1>
b)
<h2>
c)
<h3>
d)
<h4>
e)
<h5>
57.
Which element is inline?
a)
<span>
b)
<div>
c)
<p>
d)
<h1>
e)
<section>
58.
Which element is block-level?
a)
<div>
b)
<span>
c)
<a>
d)
<em>
e)
<img>
59.
Which practice improves accessibility?
a)
Using semantic elements
b)
Using only <div>
c)
Using <b> only
d)
Skipping headings
e)
Not using alt text
60.
Which tag is best for inserting a visible note (highlight)?
a)
<mark>
b)
<comment>
c)
<highlight>
d)
<bdo>
e)
<note>
61.

These are label pieces of content such as "heading", "paragraph", "table", and so on

a)

HTML (Hyper Text Markup Language)

b)

Web Browsers

c)

HTML elements

d)

HTML tags

62.

HTML tags are element names surrounded by __________.

a)

<angle brackets>

b)

(round brackets)

c)

[square brackets]

d)

(round brackets) and [square brackets]

63.

The first tag in a pair is the start tag, the second tag is the __________.

a)

new tag

b)

end tag

c)

last tag

d)

old tag

64.

The start tag is also called the ____________, and the end tag the closing tag.

a)

start tag

b)

beginning tag

c)

new tag

d)

opening tag

65.

The end tag is written like the start tag, but with a forward slash inserted before the tag name. Which is the following is an example of a correct end tag?

a)

<p>

b)

<p/>

c)

</p>

d)

</p/>

66.

HTML tags normally come _________ like <p> and </p>

a)

in pairs

b)

in groups

c)

in one

d)

in single

67.
the tag <IMG> would insert what into a web page?
a)
Insert a title
b)
Insert a link
c)
Insert an image
68.
Which format usually works best for photos?
a)

JPEG

b)

DOC

c)

GIF

d)

WAV

69.
Which word is not used in HTML structure?
a)
footer
b)
body
c)
head
d)
arm
70.

More than 90 percent of websites on the Internet are coded using HTML.

a)

True

b)

False