NEW
Font size
WorksheetsHTML Quiz Week 1-2
Total questions: 20
Worksheet time: 10mins
Which tag encloses the entire HTML document?
<head>
<html>
<Body>
<div>
What is the primary purpose of the <head> element?
To display content in the browser window
To contain metadata and references to scripts or styles
To define the site’s footer
To wrap all visible text
Where should all visible page content appear?
Inside <html> but outside <body>
Inside
<head>
Inside
<body>
Inside
<title>
Which tag defines a paragraph block?
<div>
<p>
<span>
<section>
What is the function of the <br>
tag?
Inserts a blank paragraph
Creates a line break within text
Begins a new line
pushes down the next line of text
What type of list does <ul>
create?
Ordered list
Definition list
Unordered list
Nested list
How will items in an <ol>
element be displayed by default?
1. First
2. Second
As 1. First 2. Second
As numbers
With checkboxes
What does this code produce?
A numbered bullet list with fruits only
A numbered list inside a single bullet list item
Two separate lists side by side
Invalid HTML
Identify the mistake in this snippet.
<ul> should be <ol>
Missing closing </li> for “Two”
Should use <p>
instead of <li>
Lists cannot nest
What does type="a" do in the <ol>
tag?
Starts numbering at “a” lowercase letters
Applies Arial font
Adds anchors to each item
Creates an alphabetical bullet list
Which attribute in <img> specifies the path to the image file
alt
src
href
link
What important attribute is missing from this image tag?
title
alt
width
caption
Which of these is not required for an accessible <img> tag?
src
alt
width
all are required
How many block-level paragraphs will appear?
One
Two
Zero
Depends on CSS
What will this render?
Line1Line2 on same line
Line1, two blank lines, then Line2
A numbered list
An error
Which tag correctly ends the list?
</li>
</ul>
</ol>
</list>
What is wrong with this structure?
You can’t nest <ul>
inside <p>
Missing <head> tag
<ul> requires type attribute
<p> must contain only text
Which element is self-closing in this snippet?
<head>
<meta>
<body>
<html>
Identify the error in the <ul>
segment.
Missing closing
</ul>
<li> tag not closed for “Water”
Cannot have two lists in one body
<ul> must be inside
<head>
Which two tags are mandatory for a valid HTML5 document?
<html> and <body>
<head> and <title>
<html> and <!DOCTYPE html>
<body> and <p>
