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 shows pages from the web. (a) True (b) False
- 2.🔠 Which heading shows the BIGGEST text: <h4>, <h1>, <h6> or <h2>? (a) <h6> (b) <h1> (c) <h4> (d) <h2>
-
3.📋 How many items does this list show?
<ol>
<li>Orange</li>
<li>Mango</li>
<li>Banana</li>
<li>Guava</li>
<li>Jamun</li>
<li>Papaya</li>
</ol> - 4.🌐 Which one hosts websites online? (a) a web server (b) a web browser (c) a code editor
- 5.🔠 Which heading shows the BIGGEST text: <h5>, <h3>, <h1> or <h2>? (a) <h2> (b) <h5> (c) <h1> (d) <h3>
- 6.📝 What does <br> do? (a) makes a list (b) adds a picture (c) starts a new line (d) makes text bold
-
7.🔠 How many headings are in this code?
<h1>Hello, world!</h1>
<h4>Our school trip</h4>
<h2>The red kite</h2>
<h2>Hello, world!</h2> -
8.💬 Which text will NOT show on the page?
<p>Rain today</p>
<!-- <p>Good morning!</p> -->
<p>I love mangoes.</p>
<p>The red kite</p> (a) I love mangoes. (b) Rain today (c) The red kite (d) Good morning! - 9.🔠 Which heading shows the BIGGEST text: <h1>, <h5>, <h2> or <h3>? (a) <h1> (b) <h2> (c) <h3> (d) <h5>
- 10.🔍 Which is the odd one out? (a) turns HTML into a page (b) saves our .html files (c) opens web pages for us (d) shows pages from the web
- 11.🔗 Which tag makes a clickable link? (a) <p> (b) <img> (c) <a> (d) <link>
-
12.💬 Which text will NOT show on the page?
<p>My pets</p>
<!-- <p>Cricket is fun.</p> -->
<p>Our school trip</p> (a) My pets (b) Cricket is fun. (c) Our school trip - 13.🏷️ Is <p> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 14.🔠 Which tag is the least important heading? (a) <h3> (b) <p> (c) <h6> (d) <h1>
- 15.🔠 How many heading levels does HTML have? (a) 6 (b) 4 (c) 3 (d) 10
- 16.True or false: in <img>, alt tells which image to load. (a) False (b) True
- 17.📄 Where does the text of <title> appear? (a) at the bottom (b) in a big heading (c) on the browser tab (d) nowhere
-
18.💬 How many paragraphs show on the page?
<p>The red kite</p>
<!-- <p>Good morning!</p> -->
<!-- <p>Cricket is fun.</p> --> - 19.📄 Where does <link rel="stylesheet"> go: in the head or in the body? (a) in the body (b) in the head
- 20.📄 Where does <title> go: in the head or in the body? (a) in the head (b) in the body
-
21.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="fort.jpg" alt="An old fort" width="200"> (a) A tiger asleep (b) width (c) An old fort (d) fort.jpg - 22.🏷️ Is <li> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 23.Which of these is true of a web server? (a) saves our .html files (b) colours code to help us (c) answers page requests (d) has an address bar
-
24.💬 Which text will NOT show on the page?
<!-- <p>My best friend</p> -->
<p>My pets</p>
<p>Fun facts</p> (a) My best friend (b) My pets (c) Fun facts -
25.🔗 Which words do you click on?
<a href="quiz.html">School news</a> (a) href (b) quiz.html (c) Take the quiz (d) School news - 26.🔠 Which heading shows the SMALLEST text: <h2>, <h4>, <h3> or <h6>? (a) <h3> (b) <h4> (c) <h6> (d) <h2>
- 27.🔠 Which heading shows the BIGGEST text: <h3>, <h4>, <h5> or <h1>? (a) <h4> (b) <h5> (c) <h1> (d) <h3>
-
28.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="tiger.jpg" alt="A tiger asleep" width="400"> (a) tiger.jpg (b) A red kite (c) width (d) A tiger asleep - 29.🏷️ Is </title> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 30.🔠 Which heading shows the SMALLEST text: <h6>, <h1>, <h4> or <h5>? (a) <h1> (b) <h6> (c) <h5> (d) <h4>
- 31.Which of these is an opening tag? (a) </title> (b) <b> (c) </li> (d) </h1>
-
32.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="map.png" alt="Map of India" width="100"> (a) map.png (b) Birthday cake (c) width (d) Map of India -
33.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="map.png" alt="Map of India" width="400"> (a) Birthday cake (b) Map of India (c) map.png (d) width -
34.🖼️ How many pixels wide is the picture drawn?
<img src="map.png" alt="Map of India" width="250"> -
35.📋 What number does the browser show next to “Guava”?
<ol>
<li>Litchi</li>
<li>Banana</li>
<li>Guava</li>
</ol> - 36.True or false: in <img>, width sets how wide it is. (a) False (b) True
- 37.🔗 Which attribute holds the address of a link? (a) src (b) alt (c) id (d) href
- 38.Which of these is an opening tag? (a) </p> (b) </title> (c) </h1> (d) <li>
- 39.🏷️ Which is the closing tag for <em>? (a) <em> (b) <em/> (c) <\em> (d) </em>
- 40.🌐 Which one answers page requests? (a) a web browser (b) a web server (c) a code editor
Answer key
- False
- <h1>
- 6
- a web server
- <h1>
- starts a new line
- 4
- Good morning!
- <h1>
- saves our .html files
- <a>
- Cricket is fun.
- an opening tag
- <h6>
- 6
- False
- on the browser tab
- 1
- in the head
- in the head
- An old fort
- an opening tag
- answers page requests
- My best friend
- School news
- <h6>
- <h1>
- A tiger asleep
- a closing tag
- <h6>
- <b>
- Map of India
- Map of India
- 250
- 3
- True
- href
- <li>
- </em>
- a web server
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids