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 pixels wide is the picture drawn?
<img src="tiger.jpg" alt="A tiger asleep" width="400"> - 2.Which of these is true of a web browser? (a) shows pages from the web (b) stores a website’s files (c) hosts websites online (d) is where we type code
- 3.🏷️ HTML marks up text using ___. (a) tags (b) keys (c) pixels (d) wires
-
4.💬 How many paragraphs show on the page?
<!-- <p>Hello, world!</p> -->
<!-- <p>The red kite</p> -->
<!-- <p>My best friend</p> -->
<p>Fun facts</p> - 5.📋 Which tag goes around each item of a list? (a) <li> (b) <ul> (c) <p> (d) <ol>
-
6.📋 What number does the browser show next to “Litchi”?
<ol start="7">
<li>Mango</li>
<li>Litchi</li>
<li>Orange</li>
<li>Grapes</li>
<li>Guava</li>
<li>Jamun</li>
</ol> -
7.📝 On how many lines does the browser show this paragraph?
<p>Kites fly high<br>Rivers flow<br>Stars shine<br>Birds sing<br>Sky is blue</p> - 8.🖼️ Which tag puts a picture on a page? (a) <p> (b) <a> (c) <pic> (d) <img>
- 9.🔗 What does HyperText mean? (a) text in colour (b) secret text (c) text with links (d) very big text
-
10.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="cake.jpg" alt="Birthday cake" width="400"> (a) cake.jpg (b) A happy dog (c) width (d) Birthday cake -
11.💬 How many paragraphs show on the page?
<p>I love mangoes.</p>
<p>Our school trip</p>
<!-- <p>Fun facts</p> --> - 12.Which of these has a closing tag? (a) <br> (b) <h1> (c) <meta> (d) <img>
- 13.🖼️ Does <img> need a closing tag? (a) Yes (b) No
-
14.🔍 One closing tag is missing. Which one?
<h2>Good morning!</h2>
<strong>Rain today</strong>
<b>Cricket is fun. (a) </h2> (b) </strong> (c) </h3> (d) </b> - 15.Which of these is an opening tag? (a) </p> (b) </body> (c) </li> (d) <h1>
- 16.True or false: <title> goes in the body. (a) True (b) False
- 17.🔗 Which tag makes a clickable link? (a) <link> (b) <p> (c) <img> (d) <a>
-
18.💬 Which text will NOT show on the page?
<p>The red kite</p>
<!-- <p>Cricket is fun.</p> -->
<p>Hello, world!</p>
<p>Our school trip</p> (a) Our school trip (b) Cricket is fun. (c) Hello, world! (d) The red kite - 19.💬 How does an HTML comment start? (a) // (b) # (c) /* (d) <!--
- 20.🔠 Which heading shows the BIGGEST text: <h6>, <h5>, <h1> or <h3>? (a) <h6> (b) <h1> (c) <h3> (d) <h5>
-
21.📝 On how many lines does the browser show this paragraph?
<p>Stars shine<br>Rivers flow</p> - 22.📋 Which list tag shows bullet points? (a) <li> (b) <ul> (c) <ol>
- 23.📋 Which list suits a shopping list in any order? (a) <hr> (b) <ol> (c) <br> (d) <ul>
- 24.True or false: <meta> is an empty tag. (a) True (b) False
- 25.🏷️ Which is the closing tag for <b>? (a) <\b> (b) <b/> (c) <b> (d) </b>
-
26.🔍 One closing tag is missing. Which one?
<p>Cricket is fun.</p>
<u>Hello, world!</u>
<h3>Good morning! (a) </h3> (b) </p> (c) </b> (d) </u> -
27.🔠 How many headings are in this code?
<h1>I love mangoes.</h1>
<h3>I love mangoes.</h3>
<p>Fun facts</p>
<h2>Good morning!</h2> - 28.🔠 Which heading shows the SMALLEST text: <h1>, <h2>, <h6> or <h5>? (a) <h1> (b) <h2> (c) <h5> (d) <h6>
-
29.🔗 Which address opens when you click this link?
<a href="art.html">Play games</a> (a) news.html (b) Play games (c) art.html (d) quiz.html - 30.🏷️ Which is the closing tag for <p>? (a) <\p> (b) <p> (c) <p/> (d) </p>
- 31.🔍 Which is the odd one out? (a) is where we type code (b) answers page requests (c) sends pages over the net (d) stores a website’s files
-
32.🔗 Which words do you click on?
<a href="about.html">Play games</a> (a) Play games (b) about.html (c) href (d) About us - 33.🔠 Which heading shows the SMALLEST text: <h5>, <h6>, <h3> or <h2>? (a) <h5> (b) <h6> (c) <h3> (d) <h2>
- 34.📋 Which list tag lists steps in order? (a) <ol> (b) <ul> (c) <li>
- 35.🔍 Which is the odd one out? (a) sends pages over the net (b) opens web pages for us (c) shows pages from the web (d) turns HTML into a page
- 36.🏷️ Which is the closing tag for <h2>? (a) <\h2> (b) <h2> (c) <h2/> (d) </h2>
-
37.🔍 Which line is missing its closing tag?
line 1: <h3>My pets</h3>
line 2: <h1>Good morning!</h1>
line 3: <h2>Fun facts (a) line 1 (b) line 2 (c) line 3 -
38.💬 How many paragraphs show on the page?
<!-- <p>Cricket is fun.</p> -->
<p>Fun facts</p>
<!-- <p>Good morning!</p> -->
<!-- <p>My best friend</p> --> -
39.📝 How many paragraphs does this code make?
<p>The red kite</p>
<p>Fun facts</p>
<h2>Rain today</h2>
<h2>Our school trip</h2>
<p>Cricket is fun.</p> - 40.True or false: <h1> is an empty tag. (a) True (b) False
Answer key
- 400
- shows pages from the web
- tags
- 1
- <li>
- 8
- 5
- <img>
- text with links
- Birthday cake
- 2
- <h1>
- No
- </b>
- <h1>
- False
- <a>
- Cricket is fun.
- <!--
- <h1>
- 2
- <ul>
- <ul>
- True
- </b>
- </h3>
- 3
- <h6>
- art.html
- </p>
- is where we type code
- Play games
- <h6>
- <ol>
- sends pages over the net
- </h2>
- line 3
- 1
- 3
- False
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids