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 text will NOT show on the page?
<!-- <p>Hello, world!</p> -->
<p>Our school trip</p>
<p>My pets</p>
<p>I love mangoes.</p> (a) Hello, world! (b) My pets (c) Our school trip (d) I love mangoes. - 2.🔠 Which heading shows the SMALLEST text: <h1>, <h4>, <h5> or <h6>? (a) <h6> (b) <h5> (c) <h1> (d) <h4>
- 3.📝 What does <hr> draw? (a) a picture (b) a link (c) a line across the page (d) a table
-
4.📋 Does this list show bullets or numbers?
<ul>
<li>Jamun</li>
<li>Grapes</li>
</ul> (a) numbers (b) bullets -
5.🔗 Which words do you click on?
<a href="games.html">About us</a> (a) Contact us (b) About us (c) href (d) games.html -
6.💬 Which text will NOT show on the page?
<!-- <p>Our school trip</p> -->
<p>Fun facts</p>
<p>I love mangoes.</p>
<p>Cricket is fun.</p> (a) I love mangoes. (b) Cricket is fun. (c) Fun facts (d) Our school trip - 7.📄 What is the first line of an HTML5 page? (a) <head> (b) <body> (c) <html> (d) <!DOCTYPE html>
-
8.🔍 One closing tag is missing. Which one?
<strong>Hello, world!</strong>
<small>Cricket is fun.
<p>I love mangoes.</p> (a) </h1> (b) </small> (c) </p> (d) </strong> - 9.Which of these is true of a web server? (a) colours code to help us (b) sends pages over the net (c) turns HTML into a page (d) has an address bar
- 10.True or false: <li> is one item of a list. (a) True (b) False
-
11.🔗 Which words do you click on?
<a href="news.html">Take the quiz</a> (a) href (b) news.html (c) Take the quiz (d) Play games -
12.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Art Gallery</title>
</head>
<body>
<h1>Planets</h1>
<p>I like to read.</p>
</body>
</html> (a) I like to read. (b) Art Gallery (c) body (d) Planets -
13.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="bus.jpg" alt="Our school bus" width="400"> (a) width (b) Our school bus (c) bus.jpg (d) An old fort - 14.True or false: a code editor has an address bar. (a) False (b) True
- 15.🔠 Which heading shows the SMALLEST text: <h5>, <h1>, <h6> or <h3>? (a) <h5> (b) <h3> (c) <h1> (d) <h6>
- 16.🔠 How many heading levels does HTML have? (a) 6 (b) 10 (c) 3 (d) 4
-
17.🔠 How many headings are in this code?
<h1>Hello, world!</h1>
<p>Good morning!</p>
<p>My pets</p>
<p>The red kite</p> -
18.📝 How many paragraphs does this code make?
<p>Hello, world!</p>
<p>My best friend</p>
<p>Cricket is fun.</p>
<h2>The red kite</h2> - 19.True or false: <a> goes in the body. (a) False (b) True
- 20.🔠 Which heading shows the BIGGEST text: <h1>, <h5>, <h4> or <h6>? (a) <h5> (b) <h1> (c) <h6> (d) <h4>
- 21.True or false: in <img>, width describes the picture. (a) True (b) False
- 22.🌐 Which one colours code to help us? (a) a web server (b) a code editor (c) a web browser
- 23.📛 In <a href="x.html">, what is href? (a) a comment (b) a closing tag (c) an element name (d) an attribute
- 24.🏷️ Is </title> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 25.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
-
26.💬 How many paragraphs show on the page?
<!-- <p>Our school trip</p> -->
<p>Cricket is fun.</p>
<!-- <p>My pets</p> --> - 27.🔠 Which heading shows the BIGGEST text: <h5>, <h4>, <h3> or <h1>? (a) <h5> (b) <h1> (c) <h3> (d) <h4>
-
28.📝 How many paragraphs does this code make?
<p>Our school trip</p>
<h2>Cricket is fun.</h2>
<h2>The red kite</h2>
<h2>Our school trip</h2>
<p>My best friend</p>
<h2>Hello, world!</h2> -
29.🔗 Which address opens when you click this link?
<a href="quiz.html">Art corner</a> (a) games.html (b) Art corner (c) about.html (d) quiz.html - 30.🔠 Which heading shows the SMALLEST text: <h2>, <h1>, <h5> or <h3>? (a) <h2> (b) <h3> (c) <h5> (d) <h1>
- 31.True or false: <input> has a closing tag. (a) False (b) True
- 32.🏷️ Every HTML tag starts with which sign? (a) [ (b) < (c) ( (d) {
- 33.Which of these is true of a web server? (a) is where we type code (b) opens web pages for us (c) stores a website’s files (d) shows pages from the web
- 34.📄 Can HTML on its own pick a random number? (a) No (b) Yes
- 35.📋 Which list tag is one item of a list? (a) <li> (b) <ol> (c) <ul>
- 36.🔍 Which is the odd one out? (a) hosts websites online (b) answers page requests (c) sends pages over the net (d) colours code to help us
- 37.🖼️ Does <img> need a closing tag? (a) No (b) Yes
- 38.🔠 Are headings shown in bold by default? (a) No (b) Yes
- 39.🌐 Which one is where we type code? (a) a code editor (b) a web server (c) a web browser
-
40.📝 How many paragraphs does this code make?
<p>The red kite</p>
<h2>Rain today</h2>
<h2>Our school trip</h2>
<h2>Hello, world!</h2>
<p>Hello, world!</p>
<p>Good morning!</p>
Answer key
- Hello, world!
- <h6>
- a line across the page
- bullets
- About us
- Our school trip
- <!DOCTYPE html>
- </small>
- sends pages over the net
- True
- Take the quiz
- Planets
- Our school bus
- False
- <h6>
- 6
- 1
- 3
- True
- <h1>
- False
- a code editor
- an attribute
- a closing tag
- Yes
- 1
- <h1>
- 2
- quiz.html
- <h5>
- False
- <
- stores a website’s files
- No
- <li>
- colours code to help us
- No
- Yes
- a code editor
- 3
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids