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: a web server hosts websites online. (a) False (b) True
-
2.💬 Which text will NOT show on the page?
<p>Rain today</p>
<!-- <p>Our school trip</p> -->
<p>I love mangoes.</p> (a) Our school trip (b) I love mangoes. (c) Rain today - 3.🔠 How many heading levels does HTML have? (a) 3 (b) 6 (c) 10 (d) 4
- 4.📋 Which list shows the steps of a recipe best? (a) <ul> (b) <hr> (c) <br> (d) <ol>
- 5.🔠 How many <h1> headings should a page usually have? (a) 6 (b) 10 (c) 1 (d) 3
- 6.Which of these is an empty tag? (a) <title> (b) <b> (c) <ul> (d) <img>
- 7.Which of these is a closing tag? (a) <body> (b) </li> (c) <p> (d) <h1>
- 8.🔠 Which heading shows the SMALLEST text: <h3>, <h1>, <h5> or <h4>? (a) <h4> (b) <h1> (c) <h3> (d) <h5>
-
9.💬 Which text will NOT show on the page?
<!-- <p>Hello, world!</p> -->
<p>My pets</p>
<p>Rain today</p> (a) My pets (b) Rain today (c) Hello, world! - 10.🖼️ Does <img> need a closing tag? (a) Yes (b) No
- 11.💬 Does the browser show comments on the page? (a) Yes (b) No
-
12.📋 What number does the browser show next to “Orange”?
<ol start="4">
<li>Grapes</li>
<li>Litchi</li>
<li>Jamun</li>
<li>Banana</li>
<li>Mango</li>
<li>Orange</li>
</ol> -
13.🔍 Which line is missing its closing tag?
line 1: <h2>I love mangoes.</h2>
line 2: <i>Hello, world!
line 3: <b>My best friend</b> (a) line 3 (b) line 2 (c) line 1 - 14.📋 Which tag goes around each item of a list? (a) <ul> (b) <li> (c) <ol> (d) <p>
- 15.📝 Does <h1> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
- 16.Which of these goes in the body? (a) <img> (b) <link rel="stylesheet"> (c) <meta charset="utf-8"> (d) <title>
- 17.🔠 Which tag is the least important heading? (a) <h1> (b) <h6> (c) <p> (d) <h3>
-
18.🖼️ Which picture file does the browser load?
<img src="bus.jpg" alt="Our school bus" width="100"> (a) Our school bus (b) fort.jpg (c) bus.jpg (d) tiger.jpg - 19.True or false: <h1> has a closing tag. (a) False (b) True
- 20.True or false: a web browser shows pages from the web. (a) True (b) False
- 21.📄 Where does <style> go: in the head or in the body? (a) in the body (b) in the head
-
22.🔗 Which words do you click on?
<a href="news.html">School news</a> (a) news.html (b) href (c) Take the quiz (d) School news - 23.Which of these is an opening tag? (a) <p> (b) </body> (c) </p> (d) </b>
- 24.🔍 Which is the odd one out? (a) answers page requests (b) stores a website’s files (c) sends pages over the net (d) shows pages from the web
- 25.🔠 Which heading shows the BIGGEST text: <h1>, <h5>, <h4> or <h3>? (a) <h3> (b) <h1> (c) <h5> (d) <h4>
- 26.📝 What does <br> do? (a) starts a new line (b) makes text bold (c) adds a picture (d) makes a list
-
27.🔗 Which words do you click on?
<a href="art.html">School news</a> (a) href (b) art.html (c) School news (d) Take the quiz - 28.💬 How does an HTML comment start? (a) /* (b) // (c) # (d) <!--
- 29.True or false: HTML on its own can add pictures to a page. (a) False (b) True
- 30.💬 How does an HTML comment end? (a) --> (b) */ (c) // (d) >>
- 31.🖼️ Which attribute of <img> names the picture file? (a) width (b) src (c) height (d) alt
-
32.📝 How many paragraphs does this code make?
<p>Fun facts</p>
<p>My best friend</p>
<h2>Hello, world!</h2> - 33.📝 Does <br> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
- 34.🔠 Which heading shows the SMALLEST text: <h2>, <h3>, <h4> or <h5>? (a) <h5> (b) <h3> (c) <h2> (d) <h4>
-
35.🔍 One closing tag is missing. Which one?
<u>Good morning!</u>
<strong>Fun facts
<small>I love mangoes.</small> (a) </u> (b) </h1> (c) </small> (d) </strong> - 36.Which of these is a closing tag? (a) <body> (b) <h1> (c) <b> (d) </h1>
- 37.🔠 Which heading shows the BIGGEST text: <h2>, <h3>, <h4> or <h6>? (a) <h6> (b) <h3> (c) <h2> (d) <h4>
- 38.Which of these is an opening tag? (a) <body> (b) </p> (c) </b> (d) </h1>
-
39.💬 How many paragraphs show on the page?
<p>My pets</p>
<p>Cricket is fun.</p>
<!-- <p>The red kite</p> -->
<p>My best friend</p> - 40.🏷️ Is <title> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
Answer key
- True
- Our school trip
- 6
- <ol>
- 1
- <img>
- </li>
- <h5>
- Hello, world!
- No
- No
- 9
- line 2
- <li>
- has a closing tag
- <img>
- <h6>
- bus.jpg
- True
- True
- in the head
- School news
- <p>
- shows pages from the web
- <h1>
- starts a new line
- School news
- <!--
- True
- -->
- src
- 2
- an empty tag
- <h5>
- </strong>
- </h1>
- <h2>
- <body>
- 3
- an opening tag
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids