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 BIGGEST text: <h5>, <h1>, <h2> or <h6>? (a) <h6> (b) <h1> (c) <h5> (d) <h2>
- 2.🔗 What does HyperText mean? (a) text with links (b) very big text (c) text in colour (d) secret text
- 3.🔠 Which tag is the least important heading? (a) <h6> (b) <p> (c) <h1> (d) <h3>
-
4.🔍 One closing tag is missing. Which one?
<h1>My best friend
<p>Cricket is fun.</p>
<i>I love mangoes.</i> (a) </h1> (b) </small> (c) </p> (d) </i> - 5.🔢 In a basic web page file, which comes first: “<body>” or “<head>”? (a) <head> (b) <body>
- 6.🔡 Are HTML tag names usually written in small letters? (a) No (b) Yes
-
7.🔍 One closing tag is missing. Which one?
<b>I love mangoes.</b>
<em>Cricket is fun.</em>
<strong>My best friend (a) </em> (b) </h3> (c) </strong> (d) </b> - 8.🏷️ Which is the closing tag for <h1>? (a) <h1/> (b) </h1> (c) <h1> (d) <\h1>
- 9.Which of these is true of a code editor? (a) hosts websites online (b) sends pages over the net (c) opens web pages for us (d) colours code to help us
-
10.📋 Does this list show bullets or numbers?
<ul>
<li>Orange</li>
<li>Litchi</li>
</ul> (a) numbers (b) bullets -
11.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="dog.jpg" alt="A happy dog" width="300"> (a) width (b) A happy dog (c) dog.jpg (d) The full moon - 12.🔍 Which is the odd one out? (a) saves our .html files (b) shows line numbers (c) is where we type code (d) answers page requests
-
13.💬 How many paragraphs show on the page?
<p>Fun facts</p>
<!-- <p>Rain today</p> -->
<!-- <p>Good morning!</p> -->
<!-- <p>I love mangoes.</p> --> - 14.📄 Can HTML on its own make headings? (a) No (b) Yes
- 15.📄 Where does the text of <title> appear? (a) at the bottom (b) in a big heading (c) nowhere (d) on the browser tab
-
16.🖼️ How many pixels wide is the picture drawn?
<img src="moon.png" alt="The full moon" width="250"> - 17.🏷️ Which is the closing tag for <i>? (a) </i> (b) <i/> (c) <\i> (d) <i>
-
18.💬 Which text will NOT show on the page?
<!-- <p>My best friend</p> -->
<p>My pets</p>
<p>Hello, world!</p>
<p>Rain today</p> (a) Rain today (b) Hello, world! (c) My best friend (d) My pets - 19.🖼️ Which attribute of <img> names the picture file? (a) height (b) src (c) alt (d) width
- 20.Which of these is true of a code editor? (a) stores a website’s files (b) is where we type code (c) shows pages from the web (d) has an address bar
- 21.💬 How does an HTML comment end? (a) */ (b) // (c) >> (d) -->
-
22.💬 How many paragraphs show on the page?
<!-- <p>Hello, world!</p> -->
<!-- <p>My pets</p> -->
<!-- <p>Rain today</p> -->
<p>I love mangoes.</p>
<!-- <p>Cricket is fun.</p> --> - 23.🌐 Which one sends pages over the net? (a) a web server (b) a code editor (c) a web browser
- 24.Which of these is true of a web browser? (a) stores a website’s files (b) answers page requests (c) shows pages from the web (d) colours code to help us
-
25.💬 Which text will NOT show on the page?
<p>I love mangoes.</p>
<!-- <p>The red kite</p> -->
<p>Hello, world!</p> (a) I love mangoes. (b) Hello, world! (c) The red kite - 26.📄 Where does <a> go: in the head or in the body? (a) in the body (b) in the head
-
27.🔗 Which address opens when you click this link?
<a href="maths.html">Take the quiz</a> (a) news.html (b) Take the quiz (c) maths.html (d) art.html - 28.True or false: HTML on its own cannot add pictures to a page. (a) False (b) True
- 29.True or false: a code editor turns HTML into a page. (a) True (b) False
-
30.💬 Which text will NOT show on the page?
<p>Cricket is fun.</p>
<!-- <p>Rain today</p> -->
<p>My pets</p> (a) My pets (b) Rain today (c) Cricket is fun. - 31.🔠 Which heading shows the SMALLEST text: <h6>, <h1>, <h2> or <h5>? (a) <h2> (b) <h6> (c) <h5> (d) <h1>
-
32.🔗 Where does this link open?
<a href="news.html">Art corner</a> (a) in a new tab (b) in the same tab - 33.True or false: <p> has a closing tag. (a) True (b) False
-
34.💬 How many paragraphs show on the page?
<p>Cricket is fun.</p>
<p>My pets</p>
<!-- <p>Hello, world!</p> -->
<p>Rain today</p>
<p>My best friend</p> -
35.💬 Which text will NOT show on the page?
<p>Good morning!</p>
<!-- <p>Rain today</p> -->
<p>My pets</p> (a) Good morning! (b) My pets (c) Rain today - 36.🔤 In “HTML”, what does the L stand for? (a) Laptop (b) Language (c) Line (d) Link
- 37.True or false: HTML on its own can add pictures to a page. (a) False (b) True
-
38.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="bus.jpg" alt="Our school bus" width="250"> (a) bus.jpg (b) An old fort (c) Our school bus (d) width - 39.🔠 How many <h1> headings should a page usually have? (a) 3 (b) 10 (c) 1 (d) 6
-
40.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="cake.jpg" alt="Birthday cake" width="350"> (a) cake.jpg (b) width (c) Birthday cake (d) A happy dog
Answer key
- <h1>
- text with links
- <h6>
- </h1>
- <head>
- Yes
- </strong>
- </h1>
- colours code to help us
- bullets
- A happy dog
- answers page requests
- 1
- Yes
- on the browser tab
- 250
- </i>
- My best friend
- src
- is where we type code
- -->
- 1
- a web server
- shows pages from the web
- The red kite
- in the body
- maths.html
- False
- False
- Rain today
- <h6>
- in the same tab
- True
- 4
- Rain today
- Language
- True
- Our school bus
- 1
- Birthday cake
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids