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 SMALLEST text: <h6>, <h1>, <h2> or <h3>? (a) <h2> (b) <h3> (c) <h6> (d) <h1>
-
2.🔗 Which words do you click on?
<a href="art.html">About us</a> (a) Contact us (b) art.html (c) href (d) About us - 3.📋 Which list tag shows bullet points? (a) <ul> (b) <ol> (c) <li>
- 4.True or false: a code editor shows pages from the web. (a) True (b) False
- 5.📄 Can HTML on its own make a form? (a) Yes (b) No
-
6.💬 How many paragraphs show on the page?
<!-- <p>My pets</p> -->
<p>Rain today</p>
<p>The red kite</p>
<p>I love mangoes.</p>
<!-- <p>Hello, world!</p> --> - 7.Which of these is true of a web browser? (a) is where we type code (b) saves our .html files (c) hosts websites online (d) opens web pages for us
- 8.Which of these is an opening tag? (a) </body> (b) </p> (c) <li> (d) </h1>
- 9.Which of these is true of a web server? (a) sends pages over the net (b) turns HTML into a page (c) saves our .html files (d) opens web pages for us
- 10.Which of these is true of a web server? (a) hosts websites online (b) shows line numbers (c) has an address bar (d) saves our .html files
-
11.🔗 Which words do you click on?
<a href="news.html">School news</a> (a) href (b) news.html (c) School news (d) Take the quiz - 12.💬 How does an HTML comment start? (a) /* (b) # (c) <!-- (d) //
-
13.💬 Which text will NOT show on the page?
<p>Fun facts</p>
<!-- <p>The red kite</p> -->
<p>Cricket is fun.</p> (a) Fun facts (b) Cricket is fun. (c) The red kite - 14.🏷️ What does a closing tag have that an opening tag does not? (a) a hash # (b) a dollar $ (c) a dot . (d) a slash /
-
15.📋 Does this list show bullets or numbers?
<ol>
<li>Litchi</li>
<li>Guava</li>
<li>Jamun</li>
</ol> (a) numbers (b) bullets -
16.📝 On how many lines does the browser show this paragraph?
<p>Roses are red<br>Sky is blue<br>Stars shine<br>Kites fly high</p> -
17.📝 How many paragraphs does this code make?
<p>My pets</p>
<p>I love mangoes.</p>
<p>Hello, world!</p> - 18.True or false: HTML on its own can show paragraphs. (a) False (b) True
- 19.🏷️ Which is the closing tag for <i>? (a) <\i> (b) <i/> (c) <i> (d) </i>
- 20.🔠 Which heading shows the BIGGEST text: <h4>, <h3>, <h1> or <h2>? (a) <h2> (b) <h4> (c) <h1> (d) <h3>
-
21.📋 What number does the browser show next to “Litchi”?
<ol start="7">
<li>Banana</li>
<li>Litchi</li>
<li>Jamun</li>
</ol> - 22.💾 A web page file usually ends with which extension? (a) .html (b) .mp3 (c) .txt (d) .png
- 23.🔠 Which tag is used for the main title on a page? (a) <br> (b) <h1> (c) <h6> (d) <p>
- 24.Which of these is an opening tag? (a) </b> (b) </li> (c) <title> (d) </title>
- 25.Which of these is an empty tag? (a) <p> (b) <br> (c) <ul> (d) <h1>
- 26.🔗 Which code links to about.html? (a) <link about.html> (b) <a alt="about.html"> (c) <a src="about.html"> (d) <a href="about.html">
-
27.🔗 Which words do you click on?
<a href="contact.html">Play games</a> (a) contact.html (b) About us (c) Play games (d) href - 28.🖼️ Does <img> need a closing tag? (a) No (b) Yes
- 29.🔢 In a basic web page file, which comes LAST? (a) <body> (b) </head> (c) </html> (d) <head>
- 30.True or false: <ul> is an unordered list. (a) False (b) True
-
31.📝 How many paragraphs does this code make?
<p>My pets</p>
<p>The red kite</p>
<p>Hello, world!</p>
<p>Rain today</p>
<p>Good morning!</p>
<p>My best friend</p> - 32.Which of these goes in the head? (a) <meta charset="utf-8"> (b) <h1> (c) <ul> (d) <p>
-
33.💬 Which text will NOT show on the page?
<!-- <p>Our school trip</p> -->
<p>Hello, world!</p>
<p>Fun facts</p> (a) Hello, world! (b) Fun facts (c) Our school trip - 34.🔠 Which heading shows the BIGGEST text: <h2>, <h6>, <h4> or <h3>? (a) <h3> (b) <h2> (c) <h4> (d) <h6>
- 35.True or false: <ol> shows 1, 2, 3 numbers. (a) True (b) False
-
36.💬 Which text will NOT show on the page?
<p>Good morning!</p>
<p>Cricket is fun.</p>
<p>The red kite</p>
<!-- <p>Rain today</p> --> (a) Cricket is fun. (b) The red kite (c) Good morning! (d) Rain today - 37.🖼️ Which tag puts a picture on a page? (a) <p> (b) <pic> (c) <img> (d) <a>
- 38.📝 Does <hr> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
- 39.🔠 Which heading shows the BIGGEST text: <h6>, <h4>, <h5> or <h2>? (a) <h6> (b) <h5> (c) <h2> (d) <h4>
- 40.🔠 Which heading shows the SMALLEST text: <h6>, <h2>, <h3> or <h5>? (a) <h3> (b) <h6> (c) <h2> (d) <h5>
Answer key
- <h6>
- About us
- <ul>
- False
- Yes
- 3
- opens web pages for us
- <li>
- sends pages over the net
- hosts websites online
- School news
- <!--
- The red kite
- a slash /
- numbers
- 4
- 3
- True
- </i>
- <h1>
- 8
- .html
- <h1>
- <title>
- <br>
- <a href="about.html">
- Play games
- No
- </html>
- True
- 6
- <meta charset="utf-8">
- Our school trip
- <h2>
- True
- Rain today
- <img>
- an empty tag
- <h2>
- <h6>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids