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.🔗 Where does this link open?
<a href="news.html">Take the quiz</a> (a) in the same tab (b) in a new tab - 2.Which of these is true of a web server? (a) hosts websites online (b) shows pages from the web (c) turns HTML into a page (d) colours code to help us
-
3.💬 How many paragraphs show on the page?
<!-- <p>Rain today</p> -->
<p>Good morning!</p>
<p>The red kite</p> - 4.📋 Which list suits a shopping list in any order? (a) <br> (b) <ol> (c) <hr> (d) <ul>
- 5.📋 Which list tag is an ordered list? (a) <ul> (b) <li> (c) <ol>
-
6.💬 Which text will NOT show on the page?
<!-- <p>The red kite</p> -->
<p>I love mangoes.</p>
<p>Hello, world!</p> (a) The red kite (b) Hello, world! (c) I love mangoes. - 7.True or false: HTML on its own cannot make bullet lists. (a) False (b) True
-
8.🔍 One closing tag is missing. Which one?
<h3>Cricket is fun.</h3>
<h1>My best friend</h1>
<b>The red kite (a) </h1> (b) </b> (c) </h3> (d) </u> - 9.🖼️ Which attribute of <img> names the picture file? (a) alt (b) src (c) width (d) height
- 10.Which of these goes in the head? (a) <table> (b) <a> (c) <link rel="stylesheet"> (d) <h1>
-
11.🖼️ Which picture file does the browser load?
<img src="tiger.jpg" alt="A tiger asleep" width="250"> (a) kite.png (b) A tiger asleep (c) tiger.jpg (d) map.png - 12.Which of these is true of a code editor? (a) answers page requests (b) shows pages from the web (c) shows line numbers (d) has an address bar
-
13.📋 How many items does this list show?
<ol>
<li>Banana</li>
<li>Litchi</li>
<li>Orange</li>
</ol> -
14.💬 Which text will NOT show on the page?
<!-- <p>Our school trip</p> -->
<p>Hello, world!</p>
<p>Fun facts</p> (a) Our school trip (b) Hello, world! (c) Fun facts - 15.📄 Can HTML on its own add pictures to a page? (a) Yes (b) No
- 16.📄 What is the first line of an HTML5 page? (a) <html> (b) <!DOCTYPE html> (c) <body> (d) <head>
- 17.📝 Does <li> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
- 18.🔗 Which tag makes a clickable link? (a) <img> (b) <link> (c) <a> (d) <p>
-
19.📋 How many items does this list show?
<ol>
<li>Grapes</li>
<li>Mango</li>
<li>Orange</li>
<li>Litchi</li>
<li>Papaya</li>
<li>Banana</li>
</ol> -
20.🔍 One closing tag is missing. Which one?
<i>The red kite</i>
<h2>My best friend
<u>I love mangoes.</u> (a) </i> (b) </em> (c) </u> (d) </h2> - 21.🔍 Which is the odd one out? (a) has an address bar (b) hosts websites online (c) turns HTML into a page (d) opens web pages for us
- 22.🔠 Which heading shows the BIGGEST text: <h6>, <h4>, <h2> or <h1>? (a) <h1> (b) <h4> (c) <h2> (d) <h6>
-
23.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="bus.jpg" alt="Our school bus" width="350"> (a) bus.jpg (b) width (c) Our school bus (d) An old fort -
24.💬 Which text will NOT show on the page?
<p>Hello, world!</p>
<p>Cricket is fun.</p>
<!-- <p>My best friend</p> --> (a) Cricket is fun. (b) Hello, world! (c) My best friend - 25.🏷️ Every HTML tag starts with which sign? (a) ( (b) < (c) { (d) [
-
26.🔗 Which words do you click on?
<a href="contact.html">About us</a> (a) About us (b) Contact us (c) contact.html (d) href - 27.🏷️ Is <p> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 28.Which of these is true of a web server? (a) saves our .html files (b) is where we type code (c) sends pages over the net (d) turns HTML into a page
- 29.True or false: <title> is an empty tag. (a) True (b) False
-
30.🔗 Where does this link open?
<a href="maths.html" target="_blank">Maths fun</a> (a) in a new tab (b) in the same tab -
31.🔍 One closing tag is missing. Which one?
<h1>My pets</h1>
<p>The red kite</p>
<u>I love mangoes. (a) </p> (b) </h1> (c) </em> (d) </u> - 32.🔠 Which tag is used for the main title on a page? (a) <h1> (b) <h6> (c) <p> (d) <br>
-
33.💬 How many paragraphs show on the page?
<p>The red kite</p>
<p>Good morning!</p>
<!-- <p>Cricket is fun.</p> -->
<p>Fun facts</p> -
34.🖼️ Which picture file does the browser load?
<img src="moon.png" alt="The full moon" width="400"> (a) The full moon (b) fort.jpg (c) bus.jpg (d) moon.png - 35.Which of these has a closing tag? (a) <input> (b) <ul> (c) <meta> (d) <br>
-
36.🖼️ How many pixels wide is the picture drawn?
<img src="moon.png" alt="The full moon" width="300"> -
37.📝 How many paragraphs does this code make?
<p>Good morning!</p>
<p>Rain today</p>
<p>Good morning!</p>
<p>My pets</p>
<p>Cricket is fun.</p> - 38.🏷️ Is <li> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 39.True or false: <table> goes in the head. (a) True (b) False
- 40.True or false: a web server stores a website’s files. (a) True (b) False
Answer key
- in the same tab
- hosts websites online
- 2
- <ul>
- <ol>
- The red kite
- False
- </b>
- src
- <link rel="stylesheet">
- tiger.jpg
- shows line numbers
- 3
- Our school trip
- Yes
- <!DOCTYPE html>
- has a closing tag
- <a>
- 6
- </h2>
- hosts websites online
- <h1>
- Our school bus
- My best friend
- <
- About us
- an opening tag
- sends pages over the net
- False
- in a new tab
- </u>
- <h1>
- 3
- moon.png
- <ul>
- 300
- 5
- an opening tag
- False
- True
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids