HTML Worksheet: Practice Test
Code tip (Read the code like a browser): Find the topic of the question: tags, headings, lists, links, images, structure or comments. Read the code line by line, the way a browser would. Count carefully: tags opened and closed, items, lines, paragraphs.
NameDateTime takenScore ___ / 40
-
1.🔗 Which words do you click on?
<a href="contact.html">Take the quiz</a> (a) contact.html (b) Take the quiz (c) Play games (d) href -
2.📝 On how many lines does the browser show this paragraph?
<p>Sky is blue<br>Kites fly high<br>Birds sing</p> - 3.🔤 In “HTML”, what does the L stand for? (a) Language (b) Laptop (c) Line (d) Link
- 4.🔗 Which attribute holds the address of a link? (a) src (b) id (c) href (d) alt
-
5.🔗 Where does this link open?
<a href="games.html">Art corner</a> (a) in a new tab (b) in the same tab - 6.🔠 Which heading shows the BIGGEST text: <h1>, <h4>, <h6> or <h5>? (a) <h1> (b) <h4> (c) <h5> (d) <h6>
- 7.📋 Which tag goes around each item of a list? (a) <ul> (b) <ol> (c) <p> (d) <li>
- 8.🏷️ Which is the closing tag for <b>? (a) </b> (b) <\b> (c) <b> (d) <b/>
-
9.📝 How many paragraphs does this code make?
<p>Cricket is fun.</p>
<p>Good morning!</p>
<h2>My pets</h2> - 10.📋 Which list tag goes inside ul or ol? (a) <ol> (b) <li> (c) <ul>
-
11.📋 What number does the browser show next to “Litchi”?
<ol>
<li>Orange</li>
<li>Mango</li>
<li>Litchi</li>
</ol> - 12.📋 Which list tag shows bullet points? (a) <ol> (b) <li> (c) <ul>
-
13.🔗 Which address opens when you click this link?
<a href="about.html">Play games</a> (a) https://example.com (b) about.html (c) contact.html (d) Play games - 14.🖼️ Does <img> need a closing tag? (a) Yes (b) No
-
15.📋 What number does the browser show next to “Banana”?
<ol start="2">
<li>Mango</li>
<li>Litchi</li>
<li>Banana</li>
<li>Papaya</li>
</ol> - 16.True or false: <ul> has a closing tag. (a) False (b) True
-
17.📋 Does this list show bullets or numbers?
<ol>
<li>Orange</li>
<li>Papaya</li>
</ol> (a) numbers (b) bullets - 18.📄 Where does the text of <title> appear? (a) nowhere (b) in a big heading (c) at the bottom (d) on the browser tab
- 19.🔍 Which is the odd one out? (a) stores a website’s files (b) shows pages from the web (c) opens web pages for us (d) turns HTML into a page
- 20.🖼️ Which tag puts a picture on a page? (a) <a> (b) <pic> (c) <img> (d) <p>
-
21.🔠 How many headings are in this code?
<h1>The red kite</h1>
<p>Good morning!</p>
<p>My pets</p>
<p>My best friend</p> - 22.🔠 Which heading shows the SMALLEST text: <h4>, <h2>, <h3> or <h5>? (a) <h3> (b) <h4> (c) <h2> (d) <h5>
-
23.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Class 7 Blog</title>
</head>
<body>
<h1>All about me</h1>
<p>Here is my best one.</p>
</body>
</html> (a) Here is my best one. (b) Class 7 Blog (c) index.html (d) All about me -
24.🔗 Which address opens when you click this link?
<a href="games.html">Play games</a> (a) Play games (b) games.html (c) contact.html (d) about.html -
25.🔍 One closing tag is missing. Which one?
<h1>Good morning!</h1>
<p>My best friend
<small>Cricket is fun.</small> (a) </p> (b) </i> (c) </small> (d) </h1> -
26.🔗 Which address opens when you click this link?
<a href="about.html">School news</a> (a) contact.html (b) https://example.com (c) about.html (d) School news -
27.🔗 Which words do you click on?
<a href="art.html">Play games</a> (a) Play games (b) art.html (c) href (d) About us - 28.🏷️ Which is the closing tag for <em>? (a) <\em> (b) </em> (c) <em/> (d) <em>
-
29.💬 How many paragraphs show on the page?
<!-- <p>My best friend</p> -->
<!-- <p>The red kite</p> -->
<!-- <p>Cricket is fun.</p> -->
<p>Hello, world!</p>
<p>My pets</p> - 30.🔗 Which code links to about.html? (a) <link about.html> (b) <a href="about.html"> (c) <a alt="about.html"> (d) <a src="about.html">
- 31.📋 Which list tag lists things in any order? (a) <li> (b) <ol> (c) <ul>
- 32.🌐 Which one turns HTML into a page? (a) a web server (b) a web browser (c) a code editor
- 33.📄 Which part holds everything you see on the page? (a) the title (b) the body (c) the doctype (d) the head
-
34.📝 On how many lines does the browser show this paragraph?
<p>Sky is blue<br>Kites fly high<br>Stars shine<br>Birds sing</p> -
35.💬 How many paragraphs show on the page?
<!-- <p>Fun facts</p> -->
<!-- <p>My best friend</p> -->
<p>I love mangoes.</p>
<!-- <p>Cricket is fun.</p> -->
<p>Our school trip</p> -
36.🔗 Which address opens when you click this link?
<a href="art.html">Contact us</a> (a) art.html (b) news.html (c) quiz.html (d) Contact us -
37.🔗 Where does this link open?
<a href="about.html" target="_blank">About us</a> (a) in the same tab (b) in a new tab - 38.Which of these is true of a code editor? (a) saves our .html files (b) hosts websites online (c) opens web pages for us (d) turns HTML into a page
- 39.🔡 Are HTML tag names usually written in small letters? (a) Yes (b) No
- 40.💬 How does an HTML comment end? (a) */ (b) // (c) >> (d) -->
Answer key
- Take the quiz
- 3
- Language
- href
- in the same tab
- <h1>
- <li>
- </b>
- 2
- <li>
- 3
- <ul>
- about.html
- No
- 4
- True
- numbers
- on the browser tab
- stores a website’s files
- <img>
- 1
- <h5>
- Class 7 Blog
- games.html
- </p>
- about.html
- Play games
- </em>
- 2
- <a href="about.html">
- <ul>
- a web browser
- the body
- 4
- 2
- art.html
- in a new tab
- saves our .html files
- Yes
- -->
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids