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 does HyperText mean? (a) text in colour (b) secret text (c) very big text (d) text with links
- 2.🔠 Which heading shows the BIGGEST text: <h4>, <h2>, <h1> or <h6>? (a) <h4> (b) <h6> (c) <h2> (d) <h1>
-
3.🔗 Where does this link open?
<a href="games.html" target="_blank">Play games</a> (a) in the same tab (b) in a new tab - 4.🔠 Which heading shows the SMALLEST text: <h2>, <h4>, <h3> or <h6>? (a) <h3> (b) <h6> (c) <h2> (d) <h4>
- 5.🏷️ Is <p> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 6.📄 Where does <link rel="stylesheet"> go: in the head or in the body? (a) in the head (b) in the body
- 7.🔠 How many heading levels does HTML have? (a) 6 (b) 3 (c) 4 (d) 10
- 8.True or false: a web browser has an address bar. (a) True (b) False
-
9.🖼️ Which picture file does the browser load?
<img src="kite.png" alt="A red kite" width="100"> (a) cake.jpg (b) A red kite (c) map.png (d) kite.png - 10.🧩 An opening tag + content + a closing tag together make an ___. (a) attribute (b) address (c) element (d) editor
- 11.🔡 Are HTML tag names usually written in small letters? (a) No (b) Yes
- 12.True or false: HTML on its own can add pictures to a page. (a) False (b) True
- 13.📋 Which list shows the steps of a recipe best? (a) <hr> (b) <br> (c) <ol> (d) <ul>
-
14.🔍 One closing tag is missing. Which one?
<h2>Hello, world!
<u>Cricket is fun.</u>
<h1>My pets</h1> (a) </h2> (b) </strong> (c) </h1> (d) </u> - 15.🔢 In a basic web page file, which comes first: “<html>” or “</head>”? (a) </head> (b) <html>
-
16.📝 On how many lines does the browser show this paragraph?
<p>Rivers flow<br>Sky is blue<br>Roses are red<br>Kites fly high<br>Stars shine</p> - 17.🔗 What does target="_blank" do to a link? (a) opens it in a new tab (b) makes it blank (c) hides the link (d) makes it bold
- 18.📝 What does <br> do? (a) makes text bold (b) makes a list (c) adds a picture (d) starts a new line
- 19.🔠 Which heading shows the BIGGEST text: <h6>, <h2>, <h3> or <h5>? (a) <h3> (b) <h5> (c) <h6> (d) <h2>
- 20.🏷️ Is </li> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 21.🔠 Which heading shows the BIGGEST text: <h1>, <h3>, <h4> or <h2>? (a) <h3> (b) <h1> (c) <h4> (d) <h2>
-
22.🔍 Which line is missing its closing tag?
line 1: <strong>Hello, world!</strong>
line 2: <p>Rain today</p>
line 3: <em>I love mangoes. (a) line 1 (b) line 2 (c) line 3 - 23.🔠 Which heading shows the BIGGEST text: <h4>, <h1>, <h3> or <h2>? (a) <h3> (b) <h1> (c) <h4> (d) <h2>
- 24.🔗 Which tag makes a clickable link? (a) <p> (b) <link> (c) <a> (d) <img>
-
25.🔗 Where does this link open?
<a href="contact.html">About us</a> (a) in a new tab (b) in the same tab - 26.🔠 Which heading shows the SMALLEST text: <h6>, <h4>, <h1> or <h3>? (a) <h3> (b) <h1> (c) <h4> (d) <h6>
- 27.🔢 In a basic web page file, which comes LAST? (a) <body> (b) <html> (c) </html> (d) </body>
- 28.🏷️ Which is the closing tag for <h3>? (a) <\h3> (b) </h3> (c) <h3/> (d) <h3>
- 29.True or false: in <img>, width sets how wide it is. (a) True (b) False
-
30.💬 Which text will NOT show on the page?
<p>My pets</p>
<p>I love mangoes.</p>
<!-- <p>Fun facts</p> --> (a) Fun facts (b) My pets (c) I love mangoes. -
31.🔗 Which address opens when you click this link?
<a href="news.html">Art corner</a> (a) Art corner (b) quiz.html (c) games.html (d) news.html - 32.📝 Does <h1> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
- 33.🌐 Which one answers page requests? (a) a web browser (b) a code editor (c) a web server
-
34.📝 On how many lines does the browser show this paragraph?
<p>Sky is blue<br>Roses are red<br>Kites fly high</p> -
35.💬 Which text will NOT show on the page?
<p>Rain today</p>
<p>Hello, world!</p>
<p>I love mangoes.</p>
<!-- <p>The red kite</p> --> (a) Rain today (b) Hello, world! (c) I love mangoes. (d) The red kite - 36.🔠 Which heading shows the BIGGEST text: <h6>, <h3>, <h5> or <h2>? (a) <h3> (b) <h5> (c) <h6> (d) <h2>
-
37.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Riya’s Recipes</title>
</head>
<body>
<h1>Match report</h1>
<p>Mars is red.</p>
</body>
</html> (a) Mars is red. (b) Riya’s Recipes (c) Match report (d) body -
38.💬 How many paragraphs show on the page?
<p>My best friend</p>
<!-- <p>Rain today</p> -->
<p>The red kite</p>
<p>I love mangoes.</p>
<!-- <p>Our school trip</p> --> -
39.🖼️ Which picture file does the browser load?
<img src="cake.jpg" alt="Birthday cake" width="300"> (a) cake.jpg (b) dog.jpg (c) Birthday cake (d) moon.png - 40.🔠 Which heading shows the SMALLEST text: <h6>, <h2>, <h3> or <h5>? (a) <h6> (b) <h2> (c) <h5> (d) <h3>
Answer key
- text with links
- <h1>
- in a new tab
- <h6>
- an opening tag
- in the head
- 6
- True
- kite.png
- element
- Yes
- True
- <ol>
- </h2>
- <html>
- 5
- opens it in a new tab
- starts a new line
- <h2>
- a closing tag
- <h1>
- line 3
- <h1>
- <a>
- in the same tab
- <h6>
- </html>
- </h3>
- True
- Fun facts
- news.html
- has a closing tag
- a web server
- 3
- The red kite
- <h2>
- Match report
- 3
- cake.jpg
- <h6>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids