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: <h3>, <h1>, <h4> or <h5>? (a) <h1> (b) <h3> (c) <h5> (d) <h4>
-
2.📋 How many items does this list show?
<ol>
<li>Jamun</li>
<li>Banana</li>
<li>Mango</li>
</ol> - 3.🔤 In “HTML”, what do the letters HT stand for? (a) Hot Tags (b) HyperText (c) High Tech (d) Home Text
-
4.📝 How many paragraphs does this code make?
<p>Good morning!</p>
<h2>Cricket is fun.</h2>
<p>My best friend</p>
<p>My pets</p> -
5.🖼️ How many pixels wide is the picture drawn?
<img src="kite.png" alt="A red kite" width="350"> - 6.Which of these is true of a web browser? (a) shows line numbers (b) colours code to help us (c) opens web pages for us (d) is where we type code
- 7.🔠 Are headings shown in bold by default? (a) No (b) Yes
- 8.🔢 In a basic web page file, which comes first: “<html>” or “<head>”? (a) <head> (b) <html>
- 9.🔗 Which code links to about.html? (a) <a alt="about.html"> (b) <a src="about.html"> (c) <link about.html> (d) <a href="about.html">
- 10.🏷️ Is </li> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 11.🖼️ Why do we add alt text to an image? (a) to describe the image (b) to colour it (c) to load it faster (d) to make it bigger
-
12.🔍 One closing tag is missing. Which one?
<p>Hello, world!</p>
<b>Our school trip</b>
<h2>The red kite (a) </p> (b) </b> (c) </h2> (d) </small> - 13.True or false: HTML on its own can make links to pages. (a) True (b) False
- 14.📛 In <a href="x.html">, what is href? (a) an attribute (b) a closing tag (c) a comment (d) an element name
- 15.🔠 Which heading shows the SMALLEST text: <h5>, <h3>, <h6> or <h2>? (a) <h5> (b) <h6> (c) <h2> (d) <h3>
-
16.💬 How many paragraphs show on the page?
<p>Hello, world!</p>
<p>My best friend</p>
<!-- <p>I love mangoes.</p> --> - 17.🌐 Which one sends pages over the net? (a) a code editor (b) a web browser (c) a web server
- 18.🏷️ Is <li> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
-
19.💬 Which text will NOT show on the page?
<p>Hello, world!</p>
<p>Cricket is fun.</p>
<!-- <p>Fun facts</p> -->
<p>My best friend</p> (a) Cricket is fun. (b) My best friend (c) Fun facts (d) Hello, world! -
20.💬 Which text will NOT show on the page?
<!-- <p>The red kite</p> -->
<p>My pets</p>
<p>Hello, world!</p>
<p>Fun facts</p> (a) My pets (b) Hello, world! (c) The red kite (d) Fun facts - 21.💬 Does the browser show comments on the page? (a) Yes (b) No
- 22.🌐 Which one is where we type code? (a) a web server (b) a web browser (c) a code editor
- 23.💾 A web page file usually ends with which extension? (a) .mp3 (b) .txt (c) .png (d) .html
-
24.📋 Does this list show bullets or numbers?
<ol>
<li>Papaya</li>
<li>Jamun</li>
</ol> (a) numbers (b) bullets -
25.💬 Which text will NOT show on the page?
<p>Rain today</p>
<!-- <p>The red kite</p> -->
<p>Hello, world!</p> (a) Hello, world! (b) Rain today (c) The red kite -
26.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Class 7 Blog</title>
</head>
<body>
<h1>All about me</h1>
<p>Try this poha.</p>
</body>
</html> (a) Try this poha. (b) Class 7 Blog (c) index.html (d) All about me - 27.Which of these goes in the body? (a) <img> (b) <title> (c) <style> (d) <meta charset="utf-8">
- 28.Which of these has a closing tag? (a) <img> (b) <input> (c) <li> (d) <br>
- 29.🌍 Which program shows a web page to us? (a) a calculator (b) a web browser (c) a paint program (d) a music player
- 30.True or false: <li> has a closing tag. (a) True (b) False
- 31.🔗 What does target="_blank" do to a link? (a) makes it bold (b) hides the link (c) opens it in a new tab (d) makes it blank
-
32.📝 On how many lines does the browser show this paragraph?
<p>Rivers flow<br>Kites fly high<br>Stars shine<br>Sky is blue</p> -
33.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Cricket Club</title>
</head>
<body>
<h1>All about me</h1>
<p>Here is my best one.</p>
</body>
</html> (a) All about me (b) body (c) Cricket Club (d) Here is my best one. - 34.📄 Where does <title> go: in the head or in the body? (a) in the body (b) in the head
- 35.True or false: a code editor saves our .html files. (a) True (b) False
- 36.🌐 Which one stores a website’s files? (a) a code editor (b) a web browser (c) a web server
-
37.🔗 Which words do you click on?
<a href="maths.html">Contact us</a> (a) href (b) Visit the site (c) Contact us (d) maths.html - 38.🏷️ Which is the closing tag for <h1>? (a) <h1> (b) <h1/> (c) <\h1> (d) </h1>
- 39.True or false: <ol> shows bullet points. (a) True (b) False
- 40.True or false: <ol> lists things in any order. (a) True (b) False
Answer key
- <h5>
- 3
- HyperText
- 3
- 350
- opens web pages for us
- Yes
- <html>
- <a href="about.html">
- a closing tag
- to describe the image
- </h2>
- True
- an attribute
- <h6>
- 2
- a web server
- an opening tag
- Fun facts
- The red kite
- No
- a code editor
- .html
- numbers
- The red kite
- Class 7 Blog
- <img>
- <li>
- a web browser
- True
- opens it in a new tab
- 4
- All about me
- in the head
- True
- a web server
- Contact us
- </h1>
- False
- False
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids