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.📄 Can HTML on its own run a game loop? (a) Yes (b) No
- 2.Which of these is an opening tag? (a) <h1> (b) </title> (c) </body> (d) </b>
-
3.🔗 Where does this link open?
<a href="quiz.html" target="_blank">Play games</a> (a) in the same tab (b) in a new tab - 4.💾 A web page file usually ends with which extension? (a) .mp3 (b) .txt (c) .png (d) .html
-
5.🔗 Which address opens when you click this link?
<a href="games.html">Visit the site</a> (a) about.html (b) games.html (c) contact.html (d) Visit the site -
6.🔍 One closing tag is missing. Which one?
<i>My pets
<h1>Good morning!</h1>
<u>Fun facts</u> (a) </u> (b) </h1> (c) </p> (d) </i> -
7.💬 How many paragraphs show on the page?
<p>My best friend</p>
<!-- <p>Cricket is fun.</p> -->
<!-- <p>Hello, world!</p> -->
<!-- <p>Fun facts</p> -->
<p>Rain today</p> - 8.🔠 Which heading shows the SMALLEST text: <h6>, <h3>, <h4> or <h5>? (a) <h4> (b) <h3> (c) <h5> (d) <h6>
- 9.🏷️ Is <b> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
-
10.🔗 Which address opens when you click this link?
<a href="maths.html">Take the quiz</a> (a) art.html (b) news.html (c) Take the quiz (d) maths.html - 11.🔗 What does target="_blank" do to a link? (a) makes it blank (b) opens it in a new tab (c) hides the link (d) makes it bold
- 12.🔗 Which attribute holds the address of a link? (a) href (b) id (c) src (d) alt
- 13.📄 Can HTML on its own make links to pages? (a) No (b) Yes
- 14.True or false: in <img>, src sets how tall it is. (a) True (b) False
- 15.🖼️ Why do we add alt text to an image? (a) to make it bigger (b) to load it faster (c) to describe the image (d) to colour it
- 16.🔠 Which heading shows the SMALLEST text: <h2>, <h6>, <h3> or <h5>? (a) <h3> (b) <h5> (c) <h6> (d) <h2>
-
17.🔗 Where does this link open?
<a href="art.html">Art corner</a> (a) in the same tab (b) in a new tab - 18.💬 How does an HTML comment start? (a) <!-- (b) /* (c) # (d) //
- 19.🔠 Which heading shows the BIGGEST text: <h5>, <h6>, <h1> or <h4>? (a) <h6> (b) <h5> (c) <h4> (d) <h1>
-
20.🔍 Which line is missing its closing tag?
line 1: <h1>Our school trip</h1>
line 2: <strong>I love mangoes.</strong>
line 3: <h2>Fun facts (a) line 2 (b) line 3 (c) line 1 -
21.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="map.png" alt="Map of India" width="200"> (a) Birthday cake (b) Map of India (c) width (d) map.png -
22.🔍 Which line is missing its closing tag?
line 1: <h1>The red kite</h1>
line 2: <h2>My pets</h2>
line 3: <strong>My best friend (a) line 3 (b) line 1 (c) line 2 - 23.📋 Which list tag is one item of a list? (a) <ul> (b) <ol> (c) <li>
-
24.💬 How many paragraphs show on the page?
<!-- <p>Cricket is fun.</p> -->
<!-- <p>Rain today</p> -->
<p>Our school trip</p>
<!-- <p>Good morning!</p> --> - 25.True or false: <title> is an empty tag. (a) False (b) True
- 26.🔗 Which tag makes a clickable link? (a) <a> (b) <p> (c) <link> (d) <img>
- 27.💬 Does the browser show comments on the page? (a) No (b) Yes
- 28.Which of these is an opening tag? (a) </b> (b) </li> (c) </title> (d) <body>
- 29.True or false: a web server sends pages over the net. (a) False (b) True
- 30.Which of these goes in the body? (a) <meta charset="utf-8"> (b) <table> (c) <title> (d) <link rel="stylesheet">
-
31.📝 How many paragraphs does this code make?
<p>Good morning!</p>
<p>Fun facts</p>
<p>I love mangoes.</p>
<p>Good morning!</p>
<p>Good morning!</p> - 32.🔠 Which heading shows the BIGGEST text: <h1>, <h6>, <h3> or <h2>? (a) <h1> (b) <h6> (c) <h2> (d) <h3>
- 33.📋 Which tag goes around each item of a list? (a) <p> (b) <ul> (c) <ol> (d) <li>
-
34.🔗 Where does this link open?
<a href="news.html">Art corner</a> (a) in the same tab (b) in a new tab - 35.🖼️ Does <img> need a closing tag? (a) Yes (b) No
- 36.🖼️ Which tag puts a picture on a page? (a) <pic> (b) <a> (c) <p> (d) <img>
- 37.🌐 Which one stores a website’s files? (a) a web browser (b) a code editor (c) a web server
-
38.📋 What number does the browser show next to “Orange”?
<ol>
<li>Jamun</li>
<li>Papaya</li>
<li>Orange</li>
<li>Banana</li>
</ol> - 39.True or false: <img> is an empty tag. (a) False (b) True
- 40.📝 Does <p> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
Answer key
- No
- <h1>
- in a new tab
- .html
- games.html
- </i>
- 2
- <h6>
- an opening tag
- maths.html
- opens it in a new tab
- href
- Yes
- False
- to describe the image
- <h6>
- in the same tab
- <!--
- <h1>
- line 3
- Map of India
- line 3
- <li>
- 1
- False
- <a>
- No
- <body>
- True
- <table>
- 5
- <h1>
- <li>
- in the same tab
- No
- <img>
- a web server
- 3
- True
- has a closing tag
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids