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 paragraphs does this code make?
<p>Good morning!</p>
<p>I love mangoes.</p>
<h2>Fun facts</h2>
<p>Our school trip</p>
<p>Hello, world!</p> - 2.Which of these goes in the body? (a) <link rel="stylesheet"> (b) <table> (c) <title> (d) <style>
-
3.📝 How many paragraphs does this code make?
<p>Good morning!</p>
<p>The red kite</p>
<h2>My pets</h2>
<h2>Fun facts</h2>
<h2>Cricket is fun.</h2> - 4.📄 Which part holds everything you see on the page? (a) the head (b) the doctype (c) the title (d) the body
- 5.📋 Which list suits a shopping list in any order? (a) <ul> (b) <br> (c) <hr> (d) <ol>
- 6.🌐 Which one shows pages from the web? (a) a code editor (b) a web browser (c) a web server
- 7.📋 Which list shows the steps of a recipe best? (a) <hr> (b) <br> (c) <ol> (d) <ul>
- 8.True or false: HTML on its own cannot count button clicks. (a) True (b) False
- 9.🔍 Which is the odd one out? (a) opens web pages for us (b) stores a website’s files (c) answers page requests (d) sends pages over the net
-
10.💬 Which text will NOT show on the page?
<p>Our school trip</p>
<!-- <p>Rain today</p> -->
<p>My pets</p> (a) My pets (b) Our school trip (c) Rain today -
11.💬 Which text will NOT show on the page?
<p>Rain today</p>
<p>Our school trip</p>
<!-- <p>My best friend</p> --> (a) Rain today (b) My best friend (c) Our school trip - 12.Which of these is an opening tag? (a) </h1> (b) <body> (c) </title> (d) </p>
- 13.🏷️ HTML marks up text using ___. (a) keys (b) wires (c) pixels (d) tags
-
14.💬 How many paragraphs show on the page?
<!-- <p>The red kite</p> -->
<p>Cricket is fun.</p>
<p>Our school trip</p> -
15.📋 Does this list show bullets or numbers?
<ul>
<li>Guava</li>
<li>Papaya</li>
</ul> (a) bullets (b) numbers - 16.Which of these goes in the head? (a) <title> (b) <ul> (c) <p> (d) <table>
- 17.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
- 18.📝 Does <img> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
-
19.🖼️ Which picture file does the browser load?
<img src="cake.jpg" alt="Birthday cake" width="100"> (a) Birthday cake (b) moon.png (c) cake.jpg (d) dog.jpg -
20.💬 How many paragraphs show on the page?
<p>Hello, world!</p>
<!-- <p>I love mangoes.</p> -->
<p>Good morning!</p>
<!-- <p>Our school trip</p> --> -
21.🔗 Which words do you click on?
<a href="quiz.html">Visit the site</a> (a) quiz.html (b) Maths fun (c) href (d) Visit the site -
22.💬 How many paragraphs show on the page?
<!-- <p>Good morning!</p> -->
<!-- <p>My pets</p> -->
<p>Rain today</p> - 23.True or false: <p> goes in the head. (a) False (b) True
-
24.💬 How many paragraphs show on the page?
<!-- <p>Rain today</p> -->
<p>Fun facts</p>
<!-- <p>I love mangoes.</p> -->
<!-- <p>My best friend</p> --> - 25.True or false: a web server hosts websites online. (a) True (b) False
-
26.📝 On how many lines does the browser show this paragraph?
<p>Roses are red<br>Birds sing<br>Rivers flow<br>Kites fly high<br>Sky is blue</p> -
27.📝 On how many lines does the browser show this paragraph?
<p>Stars shine<br>Sky is blue<br>Birds sing<br>Rivers flow</p> - 28.🔢 In a basic web page file, which comes LAST? (a) <body> (b) </head> (c) </html> (d) <html>
-
29.💬 How many paragraphs show on the page?
<p>Rain today</p>
<p>Good morning!</p>
<!-- <p>The red kite</p> -->
<p>My best friend</p> -
30.💬 How many paragraphs show on the page?
<!-- <p>Our school trip</p> -->
<p>I love mangoes.</p>
<!-- <p>My pets</p> -->
<p>My best friend</p>
<!-- <p>Fun facts</p> --> - 31.True or false: <hr> is an empty tag. (a) True (b) False
- 32.True or false: <ul> is an unordered list. (a) True (b) False
-
33.💬 Which text will NOT show on the page?
<p>My best friend</p>
<p>Cricket is fun.</p>
<!-- <p>Our school trip</p> --> (a) Our school trip (b) Cricket is fun. (c) My best friend - 34.🔠 Which heading shows the BIGGEST text: <h4>, <h1>, <h2> or <h3>? (a) <h4> (b) <h3> (c) <h1> (d) <h2>
- 35.🔗 Which code links to about.html? (a) <a alt="about.html"> (b) <link about.html> (c) <a src="about.html"> (d) <a href="about.html">
-
36.🔗 Which words do you click on?
<a href="games.html">Art corner</a> (a) School news (b) Art corner (c) games.html (d) href - 37.True or false: <title> goes in the head. (a) True (b) False
- 38.True or false: in <img>, alt tells which image to load. (a) True (b) False
- 39.🔍 Which is the odd one out? (a) has an address bar (b) answers page requests (c) shows pages from the web (d) turns HTML into a page
-
40.💬 How many paragraphs show on the page?
<!-- <p>Our school trip</p> -->
<!-- <p>I love mangoes.</p> -->
<!-- <p>Fun facts</p> -->
<!-- <p>Good morning!</p> -->
<p>Cricket is fun.</p>
Answer key
- 4
- <table>
- 2
- the body
- <ul>
- a web browser
- <ol>
- True
- opens web pages for us
- Rain today
- My best friend
- <body>
- tags
- 2
- bullets
- <title>
- Yes
- an empty tag
- cake.jpg
- 2
- Visit the site
- 1
- False
- 1
- True
- 5
- 4
- </html>
- 3
- 2
- True
- True
- Our school trip
- <h1>
- <a href="about.html">
- Art corner
- True
- False
- answers page requests
- 1
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids