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 BIGGEST text: <h5>, <h4>, <h1> or <h6>? (a) <h6> (b) <h5> (c) <h1> (d) <h4>
- 2.🔗 Which tag makes a clickable link? (a) <a> (b) <link> (c) <p> (d) <img>
-
3.🔗 Where does this link open?
<a href="games.html">Maths fun</a> (a) in a new tab (b) in the same tab - 4.🔗 Which code links to about.html? (a) <a src="about.html"> (b) <a alt="about.html"> (c) <a href="about.html"> (d) <link about.html>
- 5.True or false: <li> lists things in any order. (a) True (b) False
- 6.True or false: <li> is one item of a list. (a) False (b) True
-
7.💬 Which text will NOT show on the page?
<!-- <p>I love mangoes.</p> -->
<p>The red kite</p>
<p>Cricket is fun.</p>
<p>My pets</p> (a) My pets (b) The red kite (c) I love mangoes. (d) Cricket is fun. - 8.💬 Does the browser show comments on the page? (a) No (b) Yes
- 9.🔍 Which is the odd one out? (a) answers page requests (b) sends pages over the net (c) shows pages from the web (d) stores a website’s files
- 10.Which of these is true of a web server? (a) is where we type code (b) opens web pages for us (c) answers page requests (d) shows line numbers
- 11.🔗 Which attribute holds the address of a link? (a) src (b) id (c) href (d) alt
-
12.🔍 Which line is missing its closing tag?
line 1: <h2>Hello, world!</h2>
line 2: <small>Fun facts
line 3: <em>Cricket is fun.</em> (a) line 2 (b) line 1 (c) line 3 - 13.True or false: a web browser shows pages from the web. (a) True (b) False
-
14.📋 How many items does this list show?
<ul>
<li>Grapes</li>
<li>Guava</li>
<li>Mango</li>
<li>Banana</li>
<li>Jamun</li>
<li>Litchi</li>
</ul> -
15.🖼️ How many pixels wide is the picture drawn?
<img src="dog.jpg" alt="A happy dog" width="250"> - 16.True or false: <br> is an empty tag. (a) False (b) True
-
17.🔗 Which words do you click on?
<a href="art.html">School news</a> (a) Take the quiz (b) School news (c) href (d) art.html -
18.📋 How many items does this list show?
<ul>
<li>Grapes</li>
<li>Orange</li>
</ul> -
19.📋 Does this list show bullets or numbers?
<ol>
<li>Litchi</li>
<li>Papaya</li>
<li>Grapes</li>
</ol> (a) numbers (b) bullets - 20.🏷️ Is <p> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
-
21.🔗 Which words do you click on?
<a href="about.html">School news</a> (a) School news (b) Take the quiz (c) href (d) about.html -
22.🔠 How many headings are in this code?
<h1>I love mangoes.</h1>
<p>Good morning!</p>
<h4>Cricket is fun.</h4>
<p>Hello, world!</p> - 23.🔠 Which heading shows the BIGGEST text: <h6>, <h2>, <h1> or <h4>? (a) <h6> (b) <h4> (c) <h1> (d) <h2>
- 24.📄 Where does the text of <title> appear? (a) on the browser tab (b) at the bottom (c) nowhere (d) in a big heading
- 25.True or false: <title> goes in the head. (a) True (b) False
-
26.🔗 Which address opens when you click this link?
<a href="contact.html">Contact us</a> (a) contact.html (b) Contact us (c) https://example.com (d) maths.html - 27.🔠 Which heading shows the SMALLEST text: <h4>, <h6>, <h2> or <h3>? (a) <h6> (b) <h4> (c) <h3> (d) <h2>
-
28.🔗 Which words do you click on?
<a href="news.html">Visit the site</a> (a) news.html (b) Maths fun (c) href (d) Visit the site - 29.📝 What do we need to write HTML? (a) a microphone (b) a paintbrush (c) a plain text editor (d) a printer
- 30.🔍 Which is the odd one out? (a) sends pages over the net (b) hosts websites online (c) stores a website’s files (d) turns HTML into a page
- 31.🔢 In a basic web page file, which comes first: “<html>” or “<!DOCTYPE html>”? (a) <html> (b) <!DOCTYPE html>
- 32.🔠 Which heading shows the BIGGEST text: <h3>, <h5>, <h4> or <h2>? (a) <h4> (b) <h2> (c) <h3> (d) <h5>
-
33.📋 Does this list show bullets or numbers?
<ul>
<li>Mango</li>
<li>Jamun</li>
</ul> (a) bullets (b) numbers - 34.True or false: in <img>, width sets how wide it is. (a) True (b) False
- 35.📋 Which list tag is one item of a list? (a) <li> (b) <ol> (c) <ul>
-
36.🔍 One closing tag is missing. Which one?
<h1>Rain today
<h2>The red kite</h2>
<h3>Fun facts</h3> (a) </h3> (b) </p> (c) </h2> (d) </h1> - 37.📄 Which part holds everything you see on the page? (a) the title (b) the body (c) the doctype (d) the head
- 38.🏷️ Every HTML tag starts with which sign? (a) < (b) ( (c) { (d) [
- 39.🔠 Are headings shown in bold by default? (a) No (b) Yes
- 40.🔍 Which is the odd one out? (a) sends pages over the net (b) hosts websites online (c) stores a website’s files (d) has an address bar
Answer key
- <h1>
- <a>
- in the same tab
- <a href="about.html">
- False
- True
- I love mangoes.
- No
- shows pages from the web
- answers page requests
- href
- line 2
- True
- 6
- 250
- True
- School news
- 2
- numbers
- an opening tag
- School news
- 2
- <h1>
- on the browser tab
- True
- contact.html
- <h6>
- Visit the site
- a plain text editor
- turns HTML into a page
- <!DOCTYPE html>
- <h2>
- bullets
- True
- <li>
- </h1>
- the body
- <
- Yes
- has an address bar
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids