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 SMALLEST text: <h4>, <h1>, <h6> or <h2>? (a) <h2> (b) <h1> (c) <h6> (d) <h4>
-
2.💬 How many paragraphs show on the page?
<p>Our school trip</p>
<p>Cricket is fun.</p>
<!-- <p>Rain today</p> --> - 3.📝 What does <hr> draw? (a) a link (b) a table (c) a line across the page (d) a picture
- 4.🔠 Which tag is used for the main title on a page? (a) <br> (b) <h1> (c) <p> (d) <h6>
-
5.🔗 Where does this link open?
<a href="games.html" target="_blank">School news</a> (a) in the same tab (b) in a new tab - 6.🖼️ Does <img> need a closing tag? (a) No (b) Yes
- 7.📄 Can HTML on its own show paragraphs? (a) No (b) Yes
-
8.🔠 How many headings are in this code?
<h1>The red kite</h1>
<h4>Hello, world!</h4>
<h4>Cricket is fun.</h4> -
9.💬 How many paragraphs show on the page?
<p>Hello, world!</p>
<p>Cricket is fun.</p>
<!-- <p>Good morning!</p> -->
<!-- <p>My best friend</p> -->
<p>Our school trip</p> -
10.🔠 How many headings are in this code?
<h1>My pets</h1>
<p>Good morning!</p>
<h3>Our school trip</h3> - 11.True or false: a web server is where we type code. (a) True (b) False
- 12.📋 Which list tag is one item of a list? (a) <li> (b) <ul> (c) <ol>
- 13.True or false: a web server has an address bar. (a) True (b) False
- 14.True or false: a code editor turns HTML into a page. (a) False (b) True
- 15.🏷️ Is </b> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
-
16.🔗 Which address opens when you click this link?
<a href="games.html">School news</a> (a) School news (b) games.html (c) about.html (d) contact.html - 17.Which of these is an opening tag? (a) <h1> (b) </b> (c) </li> (d) </title>
- 18.True or false: in <img>, alt names the picture file. (a) True (b) False
- 19.🏷️ Is <b> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
-
20.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Riya’s Recipes</title>
</head>
<body>
<h1>My drawings</h1>
<p>I like to read.</p>
</body>
</html> (a) I like to read. (b) body (c) Riya’s Recipes (d) My drawings - 21.📋 Which list tag shows bullet points? (a) <ol> (b) <ul> (c) <li>
-
22.📋 What number does the browser show next to “Banana”?
<ol start="8">
<li>Papaya</li>
<li>Guava</li>
<li>Banana</li>
<li>Litchi</li>
</ol> - 23.📄 Where does the text of <title> appear? (a) in a big heading (b) on the browser tab (c) nowhere (d) at the bottom
- 24.🔡 Are HTML tag names usually written in small letters? (a) No (b) Yes
- 25.🌍 Which program shows a web page to us? (a) a calculator (b) a web browser (c) a music player (d) a paint program
- 26.True or false: HTML on its own cannot show paragraphs. (a) False (b) True
- 27.📄 Can HTML on its own run a game loop? (a) Yes (b) No
- 28.🌐 Which one hosts websites online? (a) a code editor (b) a web browser (c) a web server
-
29.📋 How many items does this list show?
<ol>
<li>Litchi</li>
<li>Orange</li>
<li>Jamun</li>
</ol> - 30.True or false: <li> has a closing tag. (a) False (b) True
- 31.📄 Can HTML on its own make headings? (a) Yes (b) No
-
32.🔍 Which line is missing its closing tag?
line 1: <h2>I love mangoes.
line 2: <small>Hello, world!</small>
line 3: <h3>Our school trip</h3> (a) line 3 (b) line 2 (c) line 1 -
33.💬 How many paragraphs show on the page?
<p>Fun facts</p>
<p>Rain today</p>
<p>Cricket is fun.</p>
<!-- <p>Good morning!</p> --> -
34.🔗 Where does this link open?
<a href="art.html">About us</a> (a) in the same tab (b) in a new tab - 35.🔠 Which heading shows the BIGGEST text: <h5>, <h6>, <h4> or <h3>? (a) <h4> (b) <h5> (c) <h3> (d) <h6>
- 36.🌐 Which one sends pages over the net? (a) a web browser (b) a web server (c) a code editor
-
37.💬 How many paragraphs show on the page?
<p>My best friend</p>
<!-- <p>Hello, world!</p> -->
<!-- <p>Good morning!</p> --> -
38.🔍 One closing tag is missing. Which one?
<h2>Our school trip</h2>
<h3>I love mangoes.</h3>
<b>Cricket is fun. (a) </small> (b) </h2> (c) </h3> (d) </b> -
39.💬 Which text will NOT show on the page?
<p>Good morning!</p>
<!-- <p>Rain today</p> -->
<p>My best friend</p> (a) My best friend (b) Good morning! (c) Rain today -
40.💬 How many paragraphs show on the page?
<!-- <p>Good morning!</p> -->
<!-- <p>Rain today</p> -->
<!-- <p>Hello, world!</p> -->
<p>Our school trip</p>
Answer key
- <h6>
- 2
- a line across the page
- <h1>
- in a new tab
- No
- Yes
- 3
- 3
- 2
- False
- <li>
- False
- False
- a closing tag
- games.html
- <h1>
- False
- an opening tag
- My drawings
- <ul>
- 10
- on the browser tab
- Yes
- a web browser
- False
- No
- a web server
- 3
- True
- Yes
- line 1
- 3
- in the same tab
- <h3>
- a web server
- 1
- </b>
- Rain today
- 1
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids