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 heading shows the BIGGEST text: <h1>, <h6>, <h4> or <h5>? (a) <h1> (b) <h6> (c) <h4> (d) <h5>
- 2.🏷️ What does a closing tag have that an opening tag does not? (a) a slash / (b) a dollar $ (c) a dot . (d) a hash #
- 3.🏷️ Is </b> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 4.Which of these is a closing tag? (a) </p> (b) <p> (c) <li> (d) <b>
- 5.🔗 Which tag makes a clickable link? (a) <img> (b) <a> (c) <link> (d) <p>
- 6.True or false: <li> is an unordered list. (a) True (b) False
- 7.True or false: a web server has an address bar. (a) True (b) False
- 8.🔍 Which is the odd one out? (a) turns HTML into a page (b) saves our .html files (c) opens web pages for us (d) shows pages from the web
- 9.💬 Why do coders write comments? (a) to show pictures (b) to add colour (c) to make links (d) to leave notes
-
10.📋 What number does the browser show next to “Orange”?
<ol start="6">
<li>Grapes</li>
<li>Banana</li>
<li>Orange</li>
</ol> - 11.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
-
12.🔗 Which address opens when you click this link?
<a href="games.html">Art corner</a> (a) games.html (b) Art corner (c) about.html (d) contact.html - 13.🏷️ Is <h1> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 14.🔍 Which is the odd one out? (a) sends pages over the net (b) shows line numbers (c) saves our .html files (d) is where we type code
-
15.📋 What number does the browser show next to “Grapes”?
<ol>
<li>Guava</li>
<li>Papaya</li>
<li>Grapes</li>
<li>Litchi</li>
</ol> - 16.🔍 Which is the odd one out? (a) hosts websites online (b) turns HTML into a page (c) stores a website’s files (d) sends pages over the net
- 17.🔠 Which heading shows the SMALLEST text: <h3>, <h4>, <h5> or <h1>? (a) <h3> (b) <h1> (c) <h5> (d) <h4>
- 18.🔠 Which heading shows the BIGGEST text: <h6>, <h2>, <h4> or <h1>? (a) <h2> (b) <h6> (c) <h4> (d) <h1>
-
19.🔍 Which line is missing its closing tag?
line 1: <strong>Fun facts</strong>
line 2: <p>My best friend</p>
line 3: <em>My pets (a) line 2 (b) line 3 (c) line 1 -
20.🔗 Where does this link open?
<a href="https://example.com">Maths fun</a> (a) in a new tab (b) in the same tab - 21.True or false: HTML on its own can make links to pages. (a) True (b) False
- 22.True or false: <title> has a closing tag. (a) True (b) False
- 23.True or false: HTML on its own cannot add pictures to a page. (a) True (b) False
- 24.🖼️ Which attribute of <img> sets how wide it is? (a) height (b) width (c) alt (d) src
- 25.🌐 Which one stores a website’s files? (a) a code editor (b) a web server (c) a web browser
- 26.Which of these goes in the head? (a) <ul> (b) <table> (c) <p> (d) <meta charset="utf-8">
- 27.🌐 Which one turns HTML into a page? (a) a web server (b) a code editor (c) a web browser
- 28.🖼️ Which attribute of <img> tells which image to load? (a) alt (b) height (c) width (d) src
- 29.🔗 What does target="_blank" do to a link? (a) makes it blank (b) hides the link (c) opens it in a new tab (d) makes it bold
- 30.🔠 Are headings shown in bold by default? (a) No (b) Yes
- 31.📋 Which list shows the steps of a recipe best? (a) <ul> (b) <hr> (c) <br> (d) <ol>
-
32.📋 Does this list show bullets or numbers?
<ol>
<li>Litchi</li>
<li>Orange</li>
<li>Papaya</li>
</ol> (a) bullets (b) numbers - 33.🔍 Which is the odd one out? (a) has an address bar (b) opens web pages for us (c) hosts websites online (d) turns HTML into a page
- 34.Which of these is an empty tag? (a) <title> (b) <p> (c) <h1> (d) <meta>
-
35.🔗 Where does this link open?
<a href="about.html" target="_blank">Contact us</a> (a) in the same tab (b) in a new tab -
36.📋 How many items does this list show?
<ol>
<li>Guava</li>
<li>Papaya</li>
</ol> -
37.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Class 7 Blog</title>
</head>
<body>
<h1>Easy snacks</h1>
<p>We won by 5 runs.</p>
</body>
</html> (a) Class 7 Blog (b) body (c) We won by 5 runs. (d) Easy snacks - 38.📋 Which list tag goes inside ul or ol? (a) <ol> (b) <li> (c) <ul>
- 39.📄 Where does <h1> go: in the head or in the body? (a) in the head (b) in the body
- 40.Which of these is a closing tag? (a) <p> (b) <title> (c) <li> (d) </body>
Answer key
- <h1>
- a slash /
- a closing tag
- </p>
- <a>
- False
- False
- saves our .html files
- to leave notes
- 8
- Yes
- games.html
- an opening tag
- sends pages over the net
- 3
- turns HTML into a page
- <h5>
- <h1>
- line 3
- in the same tab
- True
- True
- False
- width
- a web server
- <meta charset="utf-8">
- a web browser
- src
- opens it in a new tab
- Yes
- <ol>
- numbers
- hosts websites online
- <meta>
- in a new tab
- 2
- Easy snacks
- <li>
- in the body
- </body>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids