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 text will NOT show on the page?
<p>My pets</p>
<!-- <p>The red kite</p> -->
<p>Our school trip</p> (a) My pets (b) Our school trip (c) The red kite -
2.🔗 Which words do you click on?
<a href="about.html">Play games</a> (a) Play games (b) href (c) About us (d) about.html - 3.🔍 Which is the odd one out? (a) answers page requests (b) opens web pages for us (c) sends pages over the net (d) hosts websites online
- 4.🔠 Which heading shows the BIGGEST text: <h5>, <h2>, <h6> or <h1>? (a) <h5> (b) <h6> (c) <h1> (d) <h2>
- 5.🏷️ Is </p> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
-
6.💬 Which text will NOT show on the page?
<p>Cricket is fun.</p>
<p>The red kite</p>
<!-- <p>Hello, world!</p> -->
<p>Fun facts</p> (a) The red kite (b) Fun facts (c) Cricket is fun. (d) Hello, world! -
7.🖼️ Which picture file does the browser load?
<img src="kite.png" alt="A red kite" width="50"> (a) kite.png (b) A red kite (c) cake.jpg (d) map.png -
8.🔗 Which words do you click on?
<a href="games.html">Contact us</a> (a) games.html (b) Visit the site (c) Contact us (d) href - 9.📛 In <a href="x.html">, what is href? (a) an attribute (b) an element name (c) a closing tag (d) a comment
-
10.💬 Which text will NOT show on the page?
<p>Rain today</p>
<p>My pets</p>
<!-- <p>The red kite</p> --> (a) The red kite (b) My pets (c) Rain today - 11.True or false: HTML on its own cannot make bullet lists. (a) False (b) True
- 12.Which of these is an empty tag? (a) <li> (b) <ul> (c) <p> (d) <br>
- 13.🏷️ Every HTML tag starts with which sign? (a) ( (b) [ (c) { (d) <
- 14.🔠 Which heading shows the BIGGEST text: <h1>, <h2>, <h5> or <h3>? (a) <h5> (b) <h3> (c) <h1> (d) <h2>
- 15.True or false: a code editor turns HTML into a page. (a) False (b) True
-
16.📝 How many paragraphs does this code make?
<p>My best friend</p>
<h2>Our school trip</h2>
<p>I love mangoes.</p>
<h2>My pets</h2>
<h2>The red kite</h2> - 17.📝 Does <br> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
- 18.Which of these goes in the head? (a) <a> (b) <meta charset="utf-8"> (c) <p> (d) <table>
- 19.Which of these is true of a web browser? (a) is where we type code (b) answers page requests (c) stores a website’s files (d) turns HTML into a page
-
20.🔍 Which line is missing its closing tag?
line 1: <h3>Cricket is fun.
line 2: <b>Our school trip</b>
line 3: <h1>Rain today</h1> (a) line 3 (b) line 1 (c) line 2 - 21.🔠 Which heading shows the SMALLEST text: <h1>, <h4>, <h6> or <h2>? (a) <h4> (b) <h1> (c) <h2> (d) <h6>
- 22.🔠 Which heading shows the SMALLEST text: <h1>, <h6>, <h2> or <h5>? (a) <h1> (b) <h5> (c) <h6> (d) <h2>
-
23.💬 How many paragraphs show on the page?
<p>Good morning!</p>
<p>Cricket is fun.</p>
<p>I love mangoes.</p>
<!-- <p>Hello, world!</p> --> - 24.Which of these goes in the head? (a) <style> (b) <table> (c) <p> (d) <img>
- 25.🔠 How many <h1> headings should a page usually have? (a) 10 (b) 1 (c) 3 (d) 6
- 26.📄 Where does <p> go: in the head or in the body? (a) in the body (b) in the head
- 27.🔡 Are HTML tag names usually written in small letters? (a) No (b) Yes
- 28.📄 What is the first line of an HTML5 page? (a) <!DOCTYPE html> (b) <html> (c) <body> (d) <head>
- 29.True or false: <li> is an unordered list. (a) False (b) True
- 30.True or false: in <img>, src tells which image to load. (a) True (b) False
-
31.📝 How many paragraphs does this code make?
<p>Our school trip</p>
<p>Our school trip</p>
<h2>Fun facts</h2>
<p>The red kite</p>
<p>Fun facts</p>
<p>Cricket is fun.</p> - 32.🔠 Which heading shows the SMALLEST text: <h2>, <h6>, <h1> or <h3>? (a) <h1> (b) <h6> (c) <h3> (d) <h2>
- 33.📄 Where does <h1> go: in the head or in the body? (a) in the head (b) in the body
- 34.True or false: <ul> shows bullet points. (a) True (b) False
- 35.Which of these is true of a web browser? (a) hosts websites online (b) opens web pages for us (c) sends pages over the net (d) shows line numbers
- 36.True or false: <li> is an ordered list. (a) True (b) False
- 37.🔠 Which heading shows the BIGGEST text: <h6>, <h1>, <h4> or <h3>? (a) <h1> (b) <h3> (c) <h4> (d) <h6>
-
38.🔗 Where does this link open?
<a href="art.html" target="_blank">Art corner</a> (a) in a new tab (b) in the same tab -
39.🔗 Which address opens when you click this link?
<a href="art.html">Maths fun</a> (a) art.html (b) Maths fun (c) news.html (d) quiz.html -
40.💬 How many paragraphs show on the page?
<!-- <p>Hello, world!</p> -->
<p>My pets</p>
<p>Rain today</p>
<p>I love mangoes.</p>
<!-- <p>My best friend</p> -->
Answer key
- The red kite
- Play games
- opens web pages for us
- <h1>
- a closing tag
- Hello, world!
- kite.png
- Contact us
- an attribute
- The red kite
- False
- <br>
- <
- <h1>
- False
- 2
- an empty tag
- <meta charset="utf-8">
- turns HTML into a page
- line 1
- <h6>
- <h6>
- 3
- <style>
- 1
- in the body
- Yes
- <!DOCTYPE html>
- False
- True
- 5
- <h6>
- in the body
- True
- opens web pages for us
- False
- <h1>
- in a new tab
- art.html
- 3
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids