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.🔠 How many heading levels does HTML have? (a) 4 (b) 10 (c) 6 (d) 3
- 2.🏷️ Is <title> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 3.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
-
4.💬 Which text will NOT show on the page?
<!-- <p>Our school trip</p> -->
<p>Rain today</p>
<p>I love mangoes.</p>
<p>Fun facts</p> (a) Rain today (b) Our school trip (c) Fun facts (d) I love mangoes. - 5.Which of these is true of a web browser? (a) shows line numbers (b) opens web pages for us (c) answers page requests (d) sends pages over the net
-
6.📋 Does this list show bullets or numbers?
<ol>
<li>Orange</li>
<li>Mango</li>
<li>Papaya</li>
</ol> (a) numbers (b) bullets - 7.🔢 In a basic web page file, which comes first: “<body>” or “</body>”? (a) </body> (b) <body>
- 8.🔠 Which heading shows the BIGGEST text: <h2>, <h3>, <h5> or <h4>? (a) <h2> (b) <h5> (c) <h4> (d) <h3>
- 9.🌐 Which one has an address bar? (a) a code editor (b) a web browser (c) a web server
- 10.🔠 Which heading shows the BIGGEST text: <h6>, <h1>, <h4> or <h2>? (a) <h2> (b) <h1> (c) <h4> (d) <h6>
- 11.📄 Where does <style> go: in the head or in the body? (a) in the body (b) in the head
- 12.📄 Where does <table> go: in the head or in the body? (a) in the head (b) in the body
- 13.🔠 Which heading shows the BIGGEST text: <h6>, <h4>, <h1> or <h2>? (a) <h4> (b) <h2> (c) <h6> (d) <h1>
- 14.📄 Where does <img> go: in the head or in the body? (a) in the head (b) in the body
-
15.💬 Which text will NOT show on the page?
<p>Cricket is fun.</p>
<!-- <p>Rain today</p> -->
<p>Good morning!</p> (a) Cricket is fun. (b) Good morning! (c) Rain today - 16.🖼️ Does <img> need a closing tag? (a) Yes (b) No
-
17.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Space Facts</title>
</head>
<body>
<h1>Match report</h1>
<p>I like to read.</p>
</body>
</html> (a) Match report (b) Space Facts (c) index.html (d) I like to read. - 18.True or false: <style> goes in the body. (a) False (b) True
- 19.🏷️ Which is the closing tag for <p>? (a) <p> (b) <\p> (c) <p/> (d) </p>
-
20.🔗 Which words do you click on?
<a href="games.html">Play games</a> (a) href (b) About us (c) games.html (d) Play games - 21.🔤 In “HTML”, what does the L stand for? (a) Link (b) Line (c) Laptop (d) Language
-
22.🔠 How many headings are in this code?
<h1>Hello, world!</h1>
<h2>Rain today</h2>
<h4>My best friend</h4>
<p>The red kite</p> - 23.🔠 Which heading shows the SMALLEST text: <h4>, <h3>, <h2> or <h1>? (a) <h1> (b) <h4> (c) <h2> (d) <h3>
- 24.🖼️ Which attribute of <img> sets how tall it is? (a) alt (b) height (c) src (d) width
- 25.🔤 In “HTML”, what do the letters HT stand for? (a) High Tech (b) Home Text (c) Hot Tags (d) HyperText
- 26.🔠 Are headings shown in bold by default? (a) Yes (b) No
-
27.🔗 Which words do you click on?
<a href="quiz.html">Play games</a> (a) quiz.html (b) href (c) Play games (d) About us - 28.🏷️ Every HTML tag starts with which sign? (a) { (b) ( (c) [ (d) <
- 29.True or false: HTML on its own can make links to pages. (a) False (b) True
- 30.True or false: a code editor saves our .html files. (a) True (b) False
- 31.🖼️ Which tag puts a picture on a page? (a) <img> (b) <p> (c) <a> (d) <pic>
- 32.True or false: a web browser saves our .html files. (a) False (b) True
- 33.Which of these has a closing tag? (a) <hr> (b) <title> (c) <img> (d) <br>
- 34.Which of these goes in the body? (a) <meta charset="utf-8"> (b) <h1> (c) <link rel="stylesheet"> (d) <title>
- 35.🔠 How many <h1> headings should a page usually have? (a) 6 (b) 3 (c) 1 (d) 10
-
36.💬 Which text will NOT show on the page?
<p>Fun facts</p>
<p>Cricket is fun.</p>
<!-- <p>My best friend</p> -->
<p>My pets</p> (a) Cricket is fun. (b) My pets (c) Fun facts (d) My best friend - 37.🔗 What does target="_blank" do to a link? (a) makes it blank (b) hides the link (c) makes it bold (d) opens it in a new tab
- 38.🔠 Which heading shows the SMALLEST text: <h6>, <h5>, <h1> or <h2>? (a) <h5> (b) <h1> (c) <h2> (d) <h6>
- 39.📝 Does <p> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
- 40.🌐 Which one is where we type code? (a) a code editor (b) a web browser (c) a web server
Answer key
- 6
- an opening tag
- Yes
- Our school trip
- opens web pages for us
- numbers
- <body>
- <h2>
- a web browser
- <h1>
- in the head
- in the body
- <h1>
- in the body
- Rain today
- No
- Space Facts
- False
- </p>
- Play games
- Language
- 3
- <h4>
- height
- HyperText
- Yes
- Play games
- <
- True
- True
- <img>
- False
- <title>
- <h1>
- 1
- My best friend
- opens it in a new tab
- <h6>
- has a closing tag
- a code editor
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids