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.📋 What number does the browser show next to “Banana”?
<ol>
<li>Papaya</li>
<li>Guava</li>
<li>Litchi</li>
<li>Banana</li>
<li>Mango</li>
<li>Grapes</li>
</ol> -
2.🔠 How many headings are in this code?
<h1>The red kite</h1>
<h3>Our school trip</h3>
<h4>Fun facts</h4> -
3.📝 On how many lines does the browser show this paragraph?
<p>Rivers flow<br>Roses are red<br>Sky is blue<br>Kites fly high</p> - 4.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
- 5.📋 Which list shows the steps of a recipe best? (a) <br> (b) <hr> (c) <ul> (d) <ol>
- 6.🔢 In a basic web page file, which comes first: “<html>” or “</body>”? (a) </body> (b) <html>
- 7.📄 Which part holds everything you see on the page? (a) the head (b) the title (c) the doctype (d) the body
-
8.🔗 Which words do you click on?
<a href="games.html">Play games</a> (a) games.html (b) About us (c) href (d) Play games -
9.🔗 Where does this link open?
<a href="art.html">Play games</a> (a) in a new tab (b) in the same tab -
10.🔗 Which address opens when you click this link?
<a href="maths.html">About us</a> (a) maths.html (b) art.html (c) About us (d) news.html -
11.🔗 Which address opens when you click this link?
<a href="quiz.html">Art corner</a> (a) games.html (b) quiz.html (c) about.html (d) Art corner - 12.📄 Where does <table> go: in the head or in the body? (a) in the head (b) in the body
- 13.True or false: <ul> lists steps in order. (a) True (b) False
- 14.🔠 Are headings shown in bold by default? (a) No (b) Yes
-
15.🔍 Which line is missing its closing tag?
line 1: <strong>The red kite</strong>
line 2: <u>Our school trip</u>
line 3: <h3>Rain today (a) line 3 (b) line 1 (c) line 2 - 16.🔠 Which heading shows the BIGGEST text: <h6>, <h4>, <h3> or <h5>? (a) <h3> (b) <h6> (c) <h4> (d) <h5>
-
17.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Class 7 Blog</title>
</head>
<body>
<h1>Welcome!</h1>
<p>Try this poha.</p>
</body>
</html> (a) index.html (b) Welcome! (c) Class 7 Blog (d) Try this poha. - 18.Which of these has a closing tag? (a) <input> (b) <br> (c) <img> (d) <title>
- 19.🏷️ Which is the closing tag for <small>? (a) <small/> (b) </small> (c) <small> (d) <\small>
- 20.True or false: HTML on its own can make a form. (a) True (b) False
- 21.🔢 In a basic web page file, which comes LAST? (a) </head> (b) <body> (c) <!DOCTYPE html> (d) </html>
- 22.True or false: <ul> is one item of a list. (a) True (b) False
-
23.💬 Which text will NOT show on the page?
<p>Fun facts</p>
<!-- <p>Cricket is fun.</p> -->
<p>My best friend</p> (a) Fun facts (b) My best friend (c) Cricket is fun. -
24.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>My Hobbies</title>
</head>
<body>
<h1>Easy snacks</h1>
<p>We won by 5 runs.</p>
</body>
</html> (a) My Hobbies (b) Easy snacks (c) We won by 5 runs. (d) index.html -
25.🔗 Which words do you click on?
<a href="about.html">Visit the site</a> (a) about.html (b) href (c) Maths fun (d) Visit the site -
26.🔍 Which line is missing its closing tag?
line 1: <em>I love mangoes.</em>
line 2: <h2>Cricket is fun.
line 3: <i>Hello, world!</i> (a) line 1 (b) line 3 (c) line 2 - 27.🔠 Which heading shows the SMALLEST text: <h3>, <h6>, <h4> or <h5>? (a) <h4> (b) <h5> (c) <h6> (d) <h3>
-
28.🔗 Where does this link open?
<a href="quiz.html">Art corner</a> (a) in a new tab (b) in the same tab - 29.💬 Why do coders write comments? (a) to leave notes (b) to make links (c) to show pictures (d) to add colour
- 30.🔠 Which heading shows the SMALLEST text: <h2>, <h1>, <h3> or <h4>? (a) <h1> (b) <h4> (c) <h3> (d) <h2>
- 31.True or false: HTML on its own can make bullet lists. (a) False (b) True
- 32.🔍 Which is the odd one out? (a) hosts websites online (b) answers page requests (c) shows pages from the web (d) stores a website’s files
-
33.💬 How many paragraphs show on the page?
<!-- <p>My pets</p> -->
<!-- <p>Good morning!</p> -->
<!-- <p>My best friend</p> -->
<p>Cricket is fun.</p>
<!-- <p>The red kite</p> --> -
34.🔗 Which words do you click on?
<a href="about.html">About us</a> (a) about.html (b) Contact us (c) href (d) About us -
35.🔠 How many headings are in this code?
<h1>My pets</h1>
<p>My best friend</p>
<p>I love mangoes.</p> - 36.🔠 Which heading shows the SMALLEST text: <h3>, <h5>, <h1> or <h4>? (a) <h1> (b) <h5> (c) <h4> (d) <h3>
- 37.Which of these is an empty tag? (a) <title> (b) <b> (c) <h1> (d) <hr>
-
38.🖼️ How many pixels wide is the picture drawn?
<img src="map.png" alt="Map of India" width="250"> - 39.🔠 Which heading shows the BIGGEST text: <h5>, <h4>, <h2> or <h6>? (a) <h6> (b) <h4> (c) <h5> (d) <h2>
- 40.🔤 In “HTML”, what does the M stand for? (a) Modern (b) Machine (c) Markup (d) Mouse
Answer key
- 4
- 3
- 4
- Yes
- <ol>
- <html>
- the body
- Play games
- in the same tab
- maths.html
- quiz.html
- in the body
- False
- Yes
- line 3
- <h3>
- Class 7 Blog
- <title>
- </small>
- True
- </html>
- False
- Cricket is fun.
- My Hobbies
- Visit the site
- line 2
- <h6>
- in the same tab
- to leave notes
- <h4>
- True
- shows pages from the web
- 1
- About us
- 1
- <h5>
- <hr>
- 250
- <h2>
- Markup
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids