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="art.html">School news</a> (a) href (b) Take the quiz (c) School news (d) art.html -
2.💬 Which text will NOT show on the page?
<!-- <p>My best friend</p> -->
<p>I love mangoes.</p>
<p>The red kite</p>
<p>Cricket is fun.</p> (a) I love mangoes. (b) Cricket is fun. (c) The red kite (d) My best friend - 3.💬 Does the browser show comments on the page? (a) Yes (b) No
-
4.📋 How many items does this list show?
<ul>
<li>Papaya</li>
<li>Guava</li>
</ul> -
5.🔗 Which words do you click on?
<a href="games.html">Take the quiz</a> (a) Play games (b) href (c) Take the quiz (d) games.html -
6.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Cricket Club</title>
</head>
<body>
<h1>Welcome!</h1>
<p>Try this poha.</p>
</body>
</html> (a) Try this poha. (b) body (c) Welcome! (d) Cricket Club - 7.🔠 How many heading levels does HTML have? (a) 10 (b) 3 (c) 6 (d) 4
- 8.🔠 Which tag is the least important heading? (a) <p> (b) <h3> (c) <h1> (d) <h6>
- 9.Which of these goes in the body? (a) <meta charset="utf-8"> (b) <style> (c) <a> (d) <title>
- 10.True or false: in <img>, alt describes the picture. (a) True (b) False
- 11.🔠 Which tag is used for the main title on a page? (a) <p> (b) <br> (c) <h6> (d) <h1>
- 12.💾 A web page file usually ends with which extension? (a) .mp3 (b) .txt (c) .html (d) .png
- 13.📄 What is the first line of an HTML5 page? (a) <html> (b) <head> (c) <!DOCTYPE html> (d) <body>
- 14.🏷️ Which is the closing tag for <h1>? (a) <h1> (b) </h1> (c) <\h1> (d) <h1/>
-
15.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Riya’s Recipes</title>
</head>
<body>
<h1>All about me</h1>
<p>Thanks for visiting.</p>
</body>
</html> (a) Riya’s Recipes (b) index.html (c) Thanks for visiting. (d) All about me -
16.💬 How many paragraphs show on the page?
<p>Cricket is fun.</p>
<!-- <p>My best friend</p> -->
<p>Hello, world!</p> - 17.Which of these goes in the head? (a) <h1> (b) <title> (c) <ul> (d) <table>
-
18.📋 What number does the browser show next to “Mango”?
<ol start="6">
<li>Guava</li>
<li>Mango</li>
<li>Orange</li>
<li>Jamun</li>
<li>Litchi</li>
</ol> - 19.🔠 Which heading shows the BIGGEST text: <h4>, <h6>, <h2> or <h1>? (a) <h6> (b) <h2> (c) <h1> (d) <h4>
-
20.📋 How many items does this list show?
<ol>
<li>Banana</li>
<li>Litchi</li>
<li>Papaya</li>
<li>Guava</li>
<li>Orange</li>
</ol> - 21.🔤 In “HTML”, what does the M stand for? (a) Mouse (b) Machine (c) Markup (d) Modern
- 22.True or false: HTML on its own cannot make headings. (a) True (b) False
-
23.💬 How many paragraphs show on the page?
<!-- <p>Cricket is fun.</p> -->
<p>Our school trip</p>
<p>Rain today</p>
<p>Good morning!</p>
<p>I love mangoes.</p> - 24.True or false: <ul> lists things in any order. (a) True (b) False
-
25.📋 What number does the browser show next to “Grapes”?
<ol>
<li>Papaya</li>
<li>Orange</li>
<li>Grapes</li>
<li>Litchi</li>
<li>Guava</li>
<li>Banana</li>
</ol> - 26.💬 How does an HTML comment start? (a) <!-- (b) /* (c) // (d) #
-
27.💬 Which text will NOT show on the page?
<p>Our school trip</p>
<!-- <p>My best friend</p> -->
<p>I love mangoes.</p>
<p>The red kite</p> (a) My best friend (b) Our school trip (c) I love mangoes. (d) The red kite - 28.📋 Which list tag shows bullet points? (a) <ol> (b) <li> (c) <ul>
- 29.📋 Which list tag lists steps in order? (a) <ul> (b) <ol> (c) <li>
- 30.🖼️ Does <img> need a closing tag? (a) No (b) Yes
- 31.📋 Which tag goes around each item of a list? (a) <ol> (b) <li> (c) <ul> (d) <p>
- 32.🏷️ Which is the closing tag for <b>? (a) </b> (b) <b/> (c) <\b> (d) <b>
- 33.🔗 What does HyperText mean? (a) very big text (b) text in colour (c) text with links (d) secret text
-
34.🔍 One closing tag is missing. Which one?
<h3>Fun facts</h3>
<strong>Cricket is fun.
<i>Hello, world!</i> (a) </i> (b) </h3> (c) </h1> (d) </strong> - 35.🔗 Which code links to about.html? (a) <link about.html> (b) <a alt="about.html"> (c) <a href="about.html"> (d) <a src="about.html">
-
36.🖼️ Which picture file does the browser load?
<img src="tiger.jpg" alt="A tiger asleep" width="350"> (a) kite.png (b) A tiger asleep (c) map.png (d) tiger.jpg - 37.True or false: <title> goes in the head. (a) False (b) True
-
38.💬 How many paragraphs show on the page?
<!-- <p>Hello, world!</p> -->
<p>My pets</p>
<p>Our school trip</p>
<p>My best friend</p>
<!-- <p>Good morning!</p> --> - 39.🖼️ Which attribute of <img> sets how wide it is? (a) width (b) height (c) alt (d) src
-
40.📝 On how many lines does the browser show this paragraph?
<p>Rivers flow<br>Sky is blue<br>Kites fly high<br>Roses are red</p>
Answer key
- School news
- My best friend
- No
- 2
- Take the quiz
- Welcome!
- 6
- <h6>
- <a>
- True
- <h1>
- .html
- <!DOCTYPE html>
- </h1>
- Riya’s Recipes
- 2
- <title>
- 7
- <h1>
- 5
- Markup
- False
- 4
- True
- 3
- <!--
- My best friend
- <ul>
- <ol>
- No
- <li>
- </b>
- text with links
- </strong>
- <a href="about.html">
- tiger.jpg
- True
- 3
- width
- 4
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids