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 of these is true of a code editor? (a) has an address bar (b) saves our .html files (c) opens web pages for us (d) hosts websites online
-
2.📋 How many items does this list show?
<ol>
<li>Jamun</li>
<li>Orange</li>
<li>Mango</li>
<li>Grapes</li>
<li>Guava</li>
<li>Litchi</li>
</ol> - 3.🏷️ Every HTML tag starts with which sign? (a) [ (b) < (c) ( (d) {
- 4.🔠 Which tag is the least important heading? (a) <h1> (b) <h3> (c) <p> (d) <h6>
-
5.💬 Which text will NOT show on the page?
<p>The red kite</p>
<!-- <p>Cricket is fun.</p> -->
<p>My best friend</p> (a) The red kite (b) My best friend (c) Cricket is fun. -
6.🔠 How many headings are in this code?
<h1>Good morning!</h1>
<p>My best friend</p>
<h3>Fun facts</h3> - 7.🖼️ Does <img> need a closing tag? (a) Yes (b) No
- 8.🏷️ Is <b> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 9.📄 Where does <p> go: in the head or in the body? (a) in the head (b) in the body
-
10.💬 How many paragraphs show on the page?
<!-- <p>I love mangoes.</p> -->
<p>The red kite</p>
<!-- <p>Hello, world!</p> -->
<!-- <p>My pets</p> -->
<!-- <p>Good morning!</p> --> -
11.💬 How many paragraphs show on the page?
<p>Good morning!</p>
<p>Hello, world!</p>
<!-- <p>Cricket is fun.</p> -->
<p>My pets</p>
<p>My best friend</p> - 12.🔗 Which tag makes a clickable link? (a) <a> (b) <img> (c) <p> (d) <link>
- 13.📋 Which list tag is one item of a list? (a) <ul> (b) <ol> (c) <li>
- 14.True or false: <a> goes in the head. (a) False (b) True
-
15.🔠 How many headings are in this code?
<h1>Fun facts</h1>
<h2>My pets</h2>
<h4>I love mangoes.</h4>
<p>Hello, world!</p> - 16.🔠 How many heading levels does HTML have? (a) 3 (b) 4 (c) 10 (d) 6
-
17.🔍 One closing tag is missing. Which one?
<u>Our school trip</u>
<b>My best friend</b>
<h1>My pets (a) </b> (b) </h3> (c) </h1> (d) </u> -
18.🖼️ Which picture file does the browser load?
<img src="moon.png" alt="The full moon" width="200"> (a) fort.jpg (b) bus.jpg (c) The full moon (d) moon.png - 19.🔠 Which heading shows the BIGGEST text: <h1>, <h6>, <h5> or <h4>? (a) <h5> (b) <h6> (c) <h1> (d) <h4>
- 20.Which of these is an opening tag? (a) </h1> (b) </title> (c) </li> (d) <h1>
-
21.🔠 How many headings are in this code?
<h1>Good morning!</h1>
<p>I love mangoes.</p>
<h4>My pets</h4>
<h3>Cricket is fun.</h3> -
22.🔗 Which address opens when you click this link?
<a href="maths.html">Art corner</a> (a) news.html (b) Art corner (c) maths.html (d) art.html - 23.🔠 Which heading shows the BIGGEST text: <h6>, <h1>, <h2> or <h4>? (a) <h2> (b) <h1> (c) <h4> (d) <h6>
- 24.📝 What does <p> make? (a) a table (b) a link (c) a picture (d) a paragraph
- 25.📄 What is the first line of an HTML5 page? (a) <body> (b) <!DOCTYPE html> (c) <html> (d) <head>
- 26.Which of these is true of a web browser? (a) hosts websites online (b) saves our .html files (c) opens web pages for us (d) shows line numbers
- 27.True or false: <style> goes in the body. (a) False (b) True
-
28.📝 How many paragraphs does this code make?
<p>Rain today</p>
<p>Fun facts</p>
<p>Good morning!</p> - 29.📋 Which list tag shows 1, 2, 3 numbers? (a) <ul> (b) <ol> (c) <li>
-
30.📋 How many items does this list show?
<ol>
<li>Papaya</li>
<li>Jamun</li>
<li>Orange</li>
<li>Litchi</li>
<li>Mango</li>
<li>Guava</li>
</ol> - 31.🔠 How many <h1> headings should a page usually have? (a) 1 (b) 6 (c) 3 (d) 10
-
32.🔗 Which address opens when you click this link?
<a href="games.html">School news</a> (a) about.html (b) games.html (c) contact.html (d) School news - 33.🖼️ Which attribute of <img> shows if the image fails? (a) src (b) height (c) width (d) alt
- 34.🔠 Which heading shows the BIGGEST text: <h2>, <h1>, <h5> or <h3>? (a) <h2> (b) <h5> (c) <h1> (d) <h3>
-
35.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Riya’s Recipes</title>
</head>
<body>
<h1>Match report</h1>
<p>I like to read.</p>
</body>
</html> (a) Match report (b) index.html (c) Riya’s Recipes (d) I like to read. - 36.True or false: <li> has a closing tag. (a) True (b) False
- 37.True or false: in <img>, height describes the picture. (a) True (b) False
- 38.📄 Where does the text of <title> appear? (a) at the bottom (b) in a big heading (c) nowhere (d) on the browser tab
-
39.🖼️ How many pixels wide is the picture drawn?
<img src="moon.png" alt="The full moon" width="250"> - 40.🔠 Which heading shows the SMALLEST text: <h3>, <h5>, <h4> or <h6>? (a) <h6> (b) <h5> (c) <h3> (d) <h4>
Answer key
- saves our .html files
- 6
- <
- <h6>
- Cricket is fun.
- 2
- No
- an opening tag
- in the body
- 1
- 4
- <a>
- <li>
- False
- 3
- 6
- </h1>
- moon.png
- <h1>
- <h1>
- 3
- maths.html
- <h1>
- a paragraph
- <!DOCTYPE html>
- opens web pages for us
- False
- 3
- <ol>
- 6
- 1
- games.html
- alt
- <h1>
- Riya’s Recipes
- True
- False
- on the browser tab
- 250
- <h6>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids