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.True or false: HTML on its own can make tables. (a) True (b) False
- 2.True or false: in <img>, width sets how wide it is. (a) True (b) False
- 3.📝 Does <p> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
- 4.🏷️ Every HTML tag starts with which sign? (a) [ (b) ( (c) < (d) {
- 5.Which of these is a closing tag? (a) <body> (b) <li> (c) </b> (d) <h1>
-
6.🔗 Where does this link open?
<a href="art.html">Art corner</a> (a) in a new tab (b) in the same tab - 7.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
-
8.🔠 How many headings are in this code?
<h1>I love mangoes.</h1>
<h3>My best friend</h3>
<p>Good morning!</p>
<h2>Cricket is fun.</h2>
<h3>Cricket is fun.</h3> - 9.Which of these is an empty tag? (a) <meta> (b) <ul> (c) <title> (d) <li>
- 10.Which of these goes in the head? (a) <a> (b) <p> (c) <link rel="stylesheet"> (d) <img>
- 11.🌐 Which one has an address bar? (a) a web server (b) a web browser (c) a code editor
-
12.💬 How many paragraphs show on the page?
<p>My pets</p>
<!-- <p>Hello, world!</p> -->
<!-- <p>The red kite</p> --> - 13.📄 Can HTML on its own add pictures to a page? (a) No (b) Yes
- 14.🔡 Are HTML tag names usually written in small letters? (a) Yes (b) No
-
15.🔍 Which line is missing its closing tag?
line 1: <em>Hello, world!</em>
line 2: <h2>Fun facts
line 3: <small>My best friend</small> (a) line 3 (b) line 2 (c) line 1 - 16.True or false: a code editor colours code to help us. (a) True (b) False
- 17.📝 What does <br> do? (a) starts a new line (b) makes a list (c) makes text bold (d) adds a picture
- 18.📄 Can HTML on its own make a form? (a) Yes (b) No
-
19.📋 How many items does this list show?
<ol>
<li>Papaya</li>
<li>Grapes</li>
</ol> - 20.📄 Can HTML on its own keep a high score? (a) No (b) Yes
-
21.💬 Which text will NOT show on the page?
<!-- <p>Rain today</p> -->
<p>Good morning!</p>
<p>My best friend</p> (a) Good morning! (b) My best friend (c) Rain today - 22.🔗 What does target="_blank" do to a link? (a) opens it in a new tab (b) hides the link (c) makes it blank (d) makes it bold
- 23.🔠 Which heading shows the BIGGEST text: <h4>, <h2>, <h3> or <h6>? (a) <h4> (b) <h6> (c) <h3> (d) <h2>
-
24.🔠 How many headings are in this code?
<h1>Cricket is fun.</h1>
<p>I love mangoes.</p>
<p>Hello, world!</p> - 25.📋 Which list tag is an unordered list? (a) <ul> (b) <ol> (c) <li>
-
26.📋 How many items does this list show?
<ol>
<li>Jamun</li>
<li>Orange</li>
<li>Papaya</li>
</ol> - 27.Which of these is a closing tag? (a) </body> (b) <body> (c) <li> (d) <p>
- 28.True or false: HTML on its own cannot keep a high score. (a) True (b) False
- 29.📋 Which tag goes around each item of a list? (a) <li> (b) <ul> (c) <p> (d) <ol>
- 30.🏷️ Is <body> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 31.True or false: <ul> is one item of a list. (a) True (b) False
- 32.🔠 How many <h1> headings should a page usually have? (a) 6 (b) 10 (c) 1 (d) 3
-
33.🔠 How many headings are in this code?
<h1>Hello, world!</h1>
<p>Rain today</p>
<p>My best friend</p> -
34.💬 Which text will NOT show on the page?
<!-- <p>Our school trip</p> -->
<p>Good morning!</p>
<p>I love mangoes.</p> (a) Good morning! (b) Our school trip (c) I love mangoes. - 35.True or false: <h1> is an empty tag. (a) False (b) True
- 36.🏷️ Is <p> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
-
37.🔗 Which address opens when you click this link?
<a href="contact.html">Contact us</a> (a) maths.html (b) contact.html (c) Contact us (d) https://example.com - 38.True or false: <li> lists things in any order. (a) True (b) False
- 39.Which of these is true of a web server? (a) shows pages from the web (b) shows line numbers (c) has an address bar (d) answers page requests
- 40.True or false: in <img>, src names the picture file. (a) True (b) False
Answer key
- True
- True
- has a closing tag
- <
- </b>
- in the same tab
- Yes
- 4
- <meta>
- <link rel="stylesheet">
- a web browser
- 1
- Yes
- Yes
- line 2
- True
- starts a new line
- Yes
- 2
- No
- Rain today
- opens it in a new tab
- <h2>
- 1
- <ul>
- 3
- </body>
- True
- <li>
- an opening tag
- False
- 1
- 1
- Our school trip
- False
- an opening tag
- contact.html
- False
- answers page requests
- True
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids