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 picture file does the browser load?
<img src="bus.jpg" alt="Our school bus" width="200"> (a) tiger.jpg (b) fort.jpg (c) bus.jpg (d) Our school bus -
2.📝 How many paragraphs does this code make?
<p>Rain today</p>
<p>My best friend</p>
<p>Good morning!</p>
<p>The red kite</p>
<p>My best friend</p> -
3.📝 How many paragraphs does this code make?
<p>My best friend</p>
<p>Good morning!</p>
<p>Fun facts</p>
<p>Our school trip</p>
<p>Our school trip</p>
<h2>Our school trip</h2> - 4.📝 What does <br> do? (a) starts a new line (b) makes a list (c) adds a picture (d) makes text bold
- 5.🌐 Which one opens web pages for us? (a) a web browser (b) a web server (c) a code editor
- 6.🔠 Which heading shows the SMALLEST text: <h6>, <h2>, <h1> or <h4>? (a) <h4> (b) <h6> (c) <h2> (d) <h1>
- 7.🔠 Which heading shows the BIGGEST text: <h2>, <h6>, <h3> or <h1>? (a) <h1> (b) <h3> (c) <h2> (d) <h6>
- 8.True or false: <title> goes in the head. (a) False (b) True
- 9.Which of these is a closing tag? (a) </title> (b) <body> (c) <b> (d) <p>
- 10.🏷️ Is </h1> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 11.🔗 Which tag makes a clickable link? (a) <img> (b) <link> (c) <p> (d) <a>
- 12.🔗 What does target="_blank" do to a link? (a) makes it blank (b) opens it in a new tab (c) makes it bold (d) hides the link
- 13.Which of these is a closing tag? (a) <p> (b) </h1> (c) <li> (d) <title>
-
14.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Class 7 Blog</title>
</head>
<body>
<h1>My drawings</h1>
<p>Thanks for visiting.</p>
</body>
</html> (a) Class 7 Blog (b) My drawings (c) index.html (d) Thanks for visiting. - 15.🔤 In “HTML”, what does the M stand for? (a) Modern (b) Mouse (c) Markup (d) Machine
- 16.Which of these is true of a web browser? (a) colours code to help us (b) opens web pages for us (c) stores a website’s files (d) hosts websites online
- 17.🏷️ Is <li> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 18.🔢 In a basic web page file, which comes LAST? (a) </head> (b) <html> (c) </html> (d) <body>
- 19.🏷️ Every HTML tag starts with which sign? (a) [ (b) < (c) ( (d) {
- 20.📋 Which list tag shows 1, 2, 3 numbers? (a) <ol> (b) <ul> (c) <li>
- 21.True or false: <li> is an unordered list. (a) True (b) False
- 22.🔠 Which heading shows the BIGGEST text: <h2>, <h6>, <h1> or <h3>? (a) <h2> (b) <h3> (c) <h1> (d) <h6>
- 23.📛 In <a href="x.html">, what is href? (a) an element name (b) an attribute (c) a closing tag (d) a comment
-
24.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="kite.png" alt="A red kite" width="300"> (a) kite.png (b) A red kite (c) width (d) Map of India - 25.🖼️ Which tag puts a picture on a page? (a) <pic> (b) <img> (c) <a> (d) <p>
- 26.🌐 Which one colours code to help us? (a) a code editor (b) a web browser (c) a web server
- 27.True or false: HTML on its own can make tables. (a) True (b) False
-
28.💬 Which text will NOT show on the page?
<!-- <p>Fun facts</p> -->
<p>Hello, world!</p>
<p>Cricket is fun.</p>
<p>The red kite</p> (a) Fun facts (b) Cricket is fun. (c) The red kite (d) Hello, world! -
29.📝 On how many lines does the browser show this paragraph?
<p>Birds sing<br>Kites fly high</p> - 30.🏷️ Which is the closing tag for <b>? (a) </b> (b) <b> (c) <b/> (d) <\b>
-
31.🔗 Which words do you click on?
<a href="contact.html">Art corner</a> (a) contact.html (b) School news (c) href (d) Art corner - 32.📝 What does <p> make? (a) a link (b) a table (c) a picture (d) a paragraph
- 33.True or false: <li> is an empty tag. (a) True (b) False
- 34.🔤 In “HTML”, what does the L stand for? (a) Laptop (b) Language (c) Link (d) Line
-
35.🔍 One closing tag is missing. Which one?
<h1>My pets</h1>
<h3>Cricket is fun.</h3>
<em>Our school trip (a) </h1> (b) </small> (c) </em> (d) </h3> - 36.🔠 Which heading shows the BIGGEST text: <h5>, <h2>, <h3> or <h1>? (a) <h3> (b) <h2> (c) <h1> (d) <h5>
-
37.🔗 Which address opens when you click this link?
<a href="about.html">Contact us</a> (a) contact.html (b) Contact us (c) about.html (d) https://example.com -
38.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="cake.jpg" alt="Birthday cake" width="350"> (a) cake.jpg (b) Birthday cake (c) width (d) A happy dog - 39.True or false: <ul> has a closing tag. (a) False (b) True
- 40.🖼️ Does <img> need a closing tag? (a) No (b) Yes
Answer key
- bus.jpg
- 5
- 5
- starts a new line
- a web browser
- <h6>
- <h1>
- True
- </title>
- a closing tag
- <a>
- opens it in a new tab
- </h1>
- Class 7 Blog
- Markup
- opens web pages for us
- an opening tag
- </html>
- <
- <ol>
- False
- <h1>
- an attribute
- A red kite
- <img>
- a code editor
- True
- Fun facts
- 2
- </b>
- Art corner
- a paragraph
- False
- Language
- </em>
- <h1>
- about.html
- Birthday cake
- True
- No
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids