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 is the odd one out? (a) stores a website’s files (b) answers page requests (c) sends pages over the net (d) colours code to help us
- 2.🔠 Which heading shows the SMALLEST text: <h2>, <h3>, <h6> or <h5>? (a) <h3> (b) <h5> (c) <h6> (d) <h2>
- 3.🔡 Are HTML tag names usually written in small letters? (a) Yes (b) No
- 4.📋 Which list tag is one item of a list? (a) <ul> (b) <li> (c) <ol>
- 5.🔢 In a basic web page file, which comes first: “</head>” or “</body>”? (a) </body> (b) </head>
-
6.🔗 Which words do you click on?
<a href="news.html">Maths fun</a> (a) news.html (b) Maths fun (c) href (d) Art corner - 7.Which of these is true of a web server? (a) shows pages from the web (b) colours code to help us (c) hosts websites online (d) has an address bar
-
8.📋 How many items does this list show?
<ul>
<li>Mango</li>
<li>Orange</li>
<li>Guava</li>
<li>Litchi</li>
</ul> - 9.Which of these is true of a web browser? (a) colours code to help us (b) answers page requests (c) sends pages over the net (d) shows pages from the web
- 10.📄 Can HTML on its own run a game loop? (a) No (b) Yes
-
11.🔠 How many headings are in this code?
<h1>Our school trip</h1>
<p>Hello, world!</p>
<p>My best friend</p>
<p>Rain today</p> -
12.🔠 How many headings are in this code?
<h1>I love mangoes.</h1>
<h3>Rain today</h3>
<p>The red kite</p>
<h4>Cricket is fun.</h4> - 13.💬 How does an HTML comment end? (a) // (b) --> (c) */ (d) >>
- 14.🏷️ Which is the closing tag for <i>? (a) <i/> (b) <i> (c) </i> (d) <\i>
-
15.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>My Hobbies</title>
</head>
<body>
<h1>Match report</h1>
<p>I like to read.</p>
</body>
</html> (a) My Hobbies (b) body (c) I like to read. (d) Match report - 16.🏷️ Which is the closing tag for <h2>? (a) <h2/> (b) <h2> (c) </h2> (d) <\h2>
- 17.📝 What does <hr> draw? (a) a table (b) a picture (c) a link (d) a line across the page
- 18.🏷️ HTML marks up text using ___. (a) tags (b) keys (c) pixels (d) wires
-
19.🖼️ Which picture file does the browser load?
<img src="fort.jpg" alt="An old fort" width="100"> (a) tiger.jpg (b) An old fort (c) fort.jpg (d) kite.png - 20.📄 Which part holds everything you see on the page? (a) the doctype (b) the head (c) the title (d) the body
- 21.📄 Where does the text of <title> appear? (a) on the browser tab (b) nowhere (c) in a big heading (d) at the bottom
- 22.🌐 Which one hosts websites online? (a) a web server (b) a web browser (c) a code editor
- 23.🌐 Which one turns HTML into a page? (a) a code editor (b) a web server (c) a web browser
- 24.🔍 Which is the odd one out? (a) has an address bar (b) stores a website’s files (c) shows pages from the web (d) turns HTML into a page
-
25.📋 What number does the browser show next to “Banana”?
<ol start="7">
<li>Grapes</li>
<li>Guava</li>
<li>Orange</li>
<li>Litchi</li>
<li>Banana</li>
</ol> - 26.True or false: <table> goes in the body. (a) False (b) True
- 27.🏷️ Which is the closing tag for <strong>? (a) <strong/> (b) </strong> (c) <\strong> (d) <strong>
- 28.🏷️ Is <body> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 29.Which of these is an opening tag? (a) </h1> (b) </b> (c) <h1> (d) </p>
- 30.📄 What is the first line of an HTML5 page? (a) <head> (b) <!DOCTYPE html> (c) <html> (d) <body>
- 31.Which of these is true of a web server? (a) turns HTML into a page (b) saves our .html files (c) answers page requests (d) colours code to help us
- 32.🔗 Which tag makes a clickable link? (a) <img> (b) <a> (c) <p> (d) <link>
- 33.🌐 Which one colours code to help us? (a) a web browser (b) a web server (c) a code editor
-
34.🔗 Where does this link open?
<a href="https://example.com">Maths fun</a> (a) in the same tab (b) in a new tab - 35.🔠 Which heading shows the SMALLEST text: <h4>, <h2>, <h6> or <h1>? (a) <h2> (b) <h1> (c) <h6> (d) <h4>
- 36.Which of these is true of a web browser? (a) sends pages over the net (b) shows line numbers (c) is where we type code (d) turns HTML into a page
- 37.💬 Does the browser show comments on the page? (a) No (b) Yes
-
38.💬 How many paragraphs show on the page?
<p>The red kite</p>
<!-- <p>My pets</p> -->
<!-- <p>I love mangoes.</p> --> - 39.True or false: a web browser has an address bar. (a) False (b) True
- 40.📄 Can HTML on its own make headings? (a) No (b) Yes
Answer key
- colours code to help us
- <h6>
- Yes
- <li>
- </head>
- Maths fun
- hosts websites online
- 4
- shows pages from the web
- No
- 1
- 3
- -->
- </i>
- Match report
- </h2>
- a line across the page
- tags
- fort.jpg
- the body
- on the browser tab
- a web server
- a web browser
- stores a website’s files
- 11
- True
- </strong>
- an opening tag
- <h1>
- <!DOCTYPE html>
- answers page requests
- <a>
- a code editor
- in the same tab
- <h6>
- turns HTML into a page
- No
- 1
- True
- Yes
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids