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.📋 What number does the browser show next to “Jamun”?
<ol>
<li>Orange</li>
<li>Jamun</li>
<li>Papaya</li>
<li>Grapes</li>
<li>Litchi</li>
</ol> - 2.🔗 What does target="_blank" do to a link? (a) makes it bold (b) opens it in a new tab (c) hides the link (d) makes it blank
- 3.🔗 Which code links to about.html? (a) <link about.html> (b) <a href="about.html"> (c) <a alt="about.html"> (d) <a src="about.html">
- 4.Which of these is an opening tag? (a) </p> (b) </h1> (c) </body> (d) <h1>
- 5.📄 What is the first line of an HTML5 page? (a) <!DOCTYPE html> (b) <html> (c) <head> (d) <body>
- 6.🔠 How many heading levels does HTML have? (a) 10 (b) 4 (c) 6 (d) 3
-
7.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="kite.png" alt="A red kite" width="100"> (a) Map of India (b) A red kite (c) width (d) kite.png -
8.🔍 One closing tag is missing. Which one?
<small>My best friend
<h3>Fun facts</h3>
<h2>Good morning!</h2> (a) </h2> (b) </h1> (c) </h3> (d) </small> -
9.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Cricket Club</title>
</head>
<body>
<h1>My drawings</h1>
<p>We won by 5 runs.</p>
</body>
</html> (a) We won by 5 runs. (b) My drawings (c) Cricket Club (d) index.html - 10.📋 Which list tag lists steps in order? (a) <ul> (b) <li> (c) <ol>
- 11.Which of these is an opening tag? (a) <b> (b) </li> (c) </p> (d) </title>
- 12.True or false: HTML on its own cannot show paragraphs. (a) True (b) False
-
13.💬 How many paragraphs show on the page?
<p>Cricket is fun.</p>
<!-- <p>Our school trip</p> -->
<!-- <p>Fun facts</p> --> - 14.True or false: HTML on its own can make headings. (a) True (b) False
-
15.🔗 Which address opens when you click this link?
<a href="quiz.html">Contact us</a> (a) Contact us (b) about.html (c) quiz.html (d) games.html -
16.📝 On how many lines does the browser show this paragraph?
<p>Sky is blue<br>Kites fly high<br>Rivers flow<br>Birds sing</p> - 17.True or false: a web server answers page requests. (a) False (b) True
- 18.Which of these has a closing tag? (a) <img> (b) <meta> (c) <input> (d) <h1>
- 19.🏷️ Which is the closing tag for <h1>? (a) <h1> (b) <\h1> (c) <h1/> (d) </h1>
- 20.📛 In <a href="x.html">, what is href? (a) a closing tag (b) an element name (c) an attribute (d) a comment
- 21.🏷️ Which is the closing tag for <p>? (a) <p/> (b) <p> (c) </p> (d) <\p>
- 22.🏷️ Is <body> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 23.🔢 In a basic web page file, which comes first: “<html>” or “</head>”? (a) </head> (b) <html>
- 24.True or false: <ul> lists steps in order. (a) False (b) True
- 25.🔠 Which heading shows the SMALLEST text: <h2>, <h4>, <h5> or <h3>? (a) <h5> (b) <h4> (c) <h2> (d) <h3>
- 26.🔠 Which heading shows the BIGGEST text: <h5>, <h6>, <h4> or <h1>? (a) <h4> (b) <h1> (c) <h6> (d) <h5>
-
27.💬 How many paragraphs show on the page?
<p>The red kite</p>
<!-- <p>Hello, world!</p> -->
<!-- <p>My pets</p> -->
<!-- <p>Rain today</p> --> - 28.🔢 In a basic web page file, which comes LAST? (a) <head> (b) </body> (c) <html> (d) </html>
- 29.🔗 What does HyperText mean? (a) very big text (b) text in colour (c) secret text (d) text with links
- 30.📋 Which list tag is one item of a list? (a) <ol> (b) <ul> (c) <li>
- 31.True or false: <meta> has a closing tag. (a) True (b) False
- 32.🏷️ Which is the closing tag for <em>? (a) <em/> (b) <\em> (c) </em> (d) <em>
- 33.Which of these is a closing tag? (a) <body> (b) </li> (c) <h1> (d) <li>
- 34.🔠 Which heading shows the BIGGEST text: <h5>, <h4>, <h2> or <h1>? (a) <h1> (b) <h4> (c) <h5> (d) <h2>
-
35.📋 What number does the browser show next to “Guava”?
<ol>
<li>Mango</li>
<li>Papaya</li>
<li>Guava</li>
<li>Jamun</li>
<li>Litchi</li>
<li>Grapes</li>
</ol> - 36.True or false: <link rel="stylesheet"> goes in the head. (a) False (b) True
- 37.📄 Where does the text of <title> appear? (a) at the bottom (b) nowhere (c) on the browser tab (d) in a big heading
- 38.🏷️ Which is the closing tag for <h2>? (a) <\h2> (b) </h2> (c) <h2/> (d) <h2>
-
39.🖼️ Which picture file does the browser load?
<img src="fort.jpg" alt="An old fort" width="150"> (a) An old fort (b) fort.jpg (c) kite.png (d) tiger.jpg - 40.💬 Why do coders write comments? (a) to show pictures (b) to leave notes (c) to make links (d) to add colour
Answer key
- 2
- opens it in a new tab
- <a href="about.html">
- <h1>
- <!DOCTYPE html>
- 6
- A red kite
- </small>
- Cricket Club
- <ol>
- <b>
- False
- 1
- True
- quiz.html
- 4
- True
- <h1>
- </h1>
- an attribute
- </p>
- an opening tag
- <html>
- False
- <h5>
- <h1>
- 1
- </html>
- text with links
- <li>
- False
- </em>
- </li>
- <h1>
- 3
- True
- on the browser tab
- </h2>
- fort.jpg
- to leave notes
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids