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 of these is true of a web server? (a) saves our .html files (b) has an address bar (c) turns HTML into a page (d) sends pages over the net
- 2.📝 Does <b> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
-
3.💬 How many paragraphs show on the page?
<!-- <p>I love mangoes.</p> -->
<p>Fun facts</p>
<p>The red kite</p>
<!-- <p>My best friend</p> --> - 4.📄 Can HTML on its own pick a random number? (a) No (b) Yes
-
5.📝 How many paragraphs does this code make?
<p>Rain today</p>
<h2>The red kite</h2>
<p>Rain today</p> -
6.🔗 Which words do you click on?
<a href="about.html">Visit the site</a> (a) about.html (b) href (c) Maths fun (d) Visit the site - 7.True or false: a code editor opens web pages for us. (a) False (b) True
- 8.🔠 Which heading shows the BIGGEST text: <h1>, <h2>, <h6> or <h3>? (a) <h2> (b) <h6> (c) <h1> (d) <h3>
- 9.🏷️ What does a closing tag have that an opening tag does not? (a) a slash / (b) a dot . (c) a hash # (d) a dollar $
- 10.🏷️ Which is the closing tag for <i>? (a) <i> (b) <i/> (c) </i> (d) <\i>
- 11.📋 Which tag goes around each item of a list? (a) <li> (b) <ol> (c) <p> (d) <ul>
-
12.🔍 Which line is missing its closing tag?
line 1: <u>Good morning!</u>
line 2: <p>My pets</p>
line 3: <b>The red kite (a) line 3 (b) line 2 (c) line 1 - 13.🔠 Which heading shows the SMALLEST text: <h2>, <h5>, <h1> or <h4>? (a) <h5> (b) <h1> (c) <h2> (d) <h4>
-
14.💬 Which text will NOT show on the page?
<!-- <p>Our school trip</p> -->
<p>Rain today</p>
<p>Cricket is fun.</p>
<p>Fun facts</p> (a) Rain today (b) Our school trip (c) Fun facts (d) Cricket is fun. - 15.🔍 Which is the odd one out? (a) has an address bar (b) turns HTML into a page (c) shows pages from the web (d) sends pages over the net
- 16.🔠 Which heading shows the SMALLEST text: <h5>, <h2>, <h4> or <h1>? (a) <h4> (b) <h5> (c) <h1> (d) <h2>
- 17.True or false: <p> goes in the head. (a) False (b) True
-
18.🔗 Which address opens when you click this link?
<a href="news.html">Play games</a> (a) quiz.html (b) Play games (c) news.html (d) games.html -
19.📝 How many paragraphs does this code make?
<p>The red kite</p>
<h2>I love mangoes.</h2>
<h2>Hello, world!</h2>
<h2>The red kite</h2> - 20.Which of these is true of a web browser? (a) stores a website’s files (b) answers page requests (c) shows line numbers (d) opens web pages for us
- 21.True or false: <p> goes in the body. (a) True (b) False
-
22.📋 Does this list show bullets or numbers?
<ol>
<li>Jamun</li>
<li>Orange</li>
<li>Litchi</li>
</ol> (a) numbers (b) bullets - 23.🏷️ Is <h1> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
-
24.📝 On how many lines does the browser show this paragraph?
<p>Stars shine<br>Roses are red</p> - 25.True or false: <h1> is an empty tag. (a) False (b) True
- 26.True or false: in <img>, src names the picture file. (a) True (b) False
- 27.Which of these is an empty tag? (a) <p> (b) <b> (c) <br> (d) <title>
- 28.🔠 Which heading shows the SMALLEST text: <h2>, <h5>, <h6> or <h4>? (a) <h6> (b) <h2> (c) <h5> (d) <h4>
-
29.🔍 Which line is missing its closing tag?
line 1: <em>Good morning!</em>
line 2: <i>Rain today
line 3: <h1>The red kite</h1> (a) line 2 (b) line 1 (c) line 3 - 30.📝 What does <hr> draw? (a) a picture (b) a line across the page (c) a table (d) a link
- 31.📝 What does <p> make? (a) a link (b) a paragraph (c) a table (d) a picture
- 32.True or false: <br> is an empty tag. (a) False (b) True
- 33.🔠 Which heading shows the SMALLEST text: <h2>, <h4>, <h5> or <h6>? (a) <h5> (b) <h2> (c) <h6> (d) <h4>
-
34.🔗 Which words do you click on?
<a href="news.html">Art corner</a> (a) School news (b) news.html (c) href (d) Art corner - 35.🔠 How many <h1> headings should a page usually have? (a) 1 (b) 10 (c) 3 (d) 6
-
36.📝 On how many lines does the browser show this paragraph?
<p>Sky is blue<br>Kites fly high<br>Stars shine<br>Rivers flow</p> - 37.🖼️ Why do we add alt text to an image? (a) to make it bigger (b) to colour it (c) to load it faster (d) to describe the image
- 38.📋 Which list tag lists things in any order? (a) <li> (b) <ol> (c) <ul>
- 39.True or false: HTML on its own can make bullet lists. (a) False (b) True
-
40.🔍 One closing tag is missing. Which one?
<h3>I love mangoes.</h3>
<p>Cricket is fun.</p>
<i>Fun facts (a) </p> (b) </i> (c) </h3> (d) </u>
Answer key
- sends pages over the net
- has a closing tag
- 2
- No
- 2
- Visit the site
- False
- <h1>
- a slash /
- </i>
- <li>
- line 3
- <h5>
- Our school trip
- sends pages over the net
- <h5>
- False
- news.html
- 1
- opens web pages for us
- True
- numbers
- an opening tag
- 2
- False
- True
- <br>
- <h6>
- line 2
- a line across the page
- a paragraph
- True
- <h6>
- Art corner
- 1
- 4
- to describe the image
- <ul>
- True
- </i>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids