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: <h2>, <h3>, <h4> or <h1>? (a) <h2> (b) <h4> (c) <h1> (d) <h3>
-
2.💬 Which text will NOT show on the page?
<!-- <p>Rain today</p> -->
<p>I love mangoes.</p>
<p>Fun facts</p> (a) Fun facts (b) I love mangoes. (c) Rain today - 3.💬 How does an HTML comment start? (a) <!-- (b) # (c) /* (d) //
- 4.🔢 In a basic web page file, which comes LAST? (a) </body> (b) </html> (c) <body> (d) <!DOCTYPE html>
-
5.💬 Which text will NOT show on the page?
<p>My best friend</p>
<!-- <p>Fun facts</p> -->
<p>Good morning!</p> (a) Fun facts (b) Good morning! (c) My best friend - 6.📝 Does <ul> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
- 7.True or false: <p> goes in the body. (a) False (b) True
-
8.🖼️ The picture cannot load. Which text does the browser show instead?
<img src="bus.jpg" alt="Our school bus" width="100"> (a) Our school bus (b) width (c) An old fort (d) bus.jpg - 9.🔠 Which heading shows the SMALLEST text: <h3>, <h5>, <h2> or <h1>? (a) <h2> (b) <h1> (c) <h3> (d) <h5>
- 10.🔠 Which heading shows the SMALLEST text: <h1>, <h3>, <h5> or <h6>? (a) <h3> (b) <h6> (c) <h1> (d) <h5>
- 11.Which of these has a closing tag? (a) <input> (b) <br> (c) <b> (d) <meta>
- 12.Which of these is true of a web server? (a) shows line numbers (b) shows pages from the web (c) stores a website’s files (d) has an address bar
- 13.Which of these goes in the body? (a) <link rel="stylesheet"> (b) <table> (c) <title> (d) <meta charset="utf-8">
-
14.🔗 Which address opens when you click this link?
<a href="games.html">Contact us</a> (a) contact.html (b) games.html (c) about.html (d) Contact us - 15.🔠 Which heading shows the SMALLEST text: <h1>, <h5>, <h3> or <h2>? (a) <h5> (b) <h1> (c) <h2> (d) <h3>
-
16.🔗 Which words do you click on?
<a href="maths.html">About us</a> (a) maths.html (b) Contact us (c) About us (d) href - 17.True or false: <h1> goes in the body. (a) False (b) True
- 18.🖼️ Which tag puts a picture on a page? (a) <a> (b) <p> (c) <img> (d) <pic>
- 19.🔠 Which heading shows the BIGGEST text: <h1>, <h4>, <h5> or <h6>? (a) <h6> (b) <h1> (c) <h5> (d) <h4>
- 20.📋 Which list tag is an unordered list? (a) <ul> (b) <ol> (c) <li>
- 21.🏷️ Which is the closing tag for <b>? (a) <b/> (b) <b> (c) </b> (d) <\b>
-
22.📋 How many items does this list show?
<ul>
<li>Guava</li>
<li>Papaya</li>
<li>Mango</li>
<li>Orange</li>
</ul> -
23.🔠 How many headings are in this code?
<h1>Good morning!</h1>
<p>The red kite</p>
<p>Fun facts</p> - 24.True or false: a code editor answers page requests. (a) True (b) False
-
25.🔗 Which address opens when you click this link?
<a href="maths.html">School news</a> (a) maths.html (b) art.html (c) School news (d) news.html - 26.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
- 27.🔠 Which heading shows the BIGGEST text: <h6>, <h2>, <h3> or <h4>? (a) <h4> (b) <h3> (c) <h6> (d) <h2>
-
28.💬 Which text will NOT show on the page?
<p>Hello, world!</p>
<!-- <p>The red kite</p> -->
<p>Our school trip</p>
<p>Cricket is fun.</p> (a) Our school trip (b) Cricket is fun. (c) Hello, world! (d) The red kite - 29.Which of these is an opening tag? (a) </body> (b) <b> (c) </p> (d) </h1>
- 30.True or false: a web server shows pages from the web. (a) False (b) True
- 31.🔢 In a basic web page file, which comes first: “<html>” or “<!DOCTYPE html>”? (a) <!DOCTYPE html> (b) <html>
-
32.🔠 How many headings are in this code?
<h1>Rain today</h1>
<p>Good morning!</p>
<p>I love mangoes.</p>
<h4>Rain today</h4>
<h4>Fun facts</h4> - 33.📋 Which list tag is one item of a list? (a) <li> (b) <ul> (c) <ol>
-
34.🔍 One closing tag is missing. Which one?
<em>My best friend</em>
<i>My pets</i>
<b>I love mangoes. (a) </i> (b) </b> (c) </em> (d) </h1> -
35.💬 Which text will NOT show on the page?
<!-- <p>Good morning!</p> -->
<p>My pets</p>
<p>Cricket is fun.</p> (a) Good morning! (b) Cricket is fun. (c) My pets - 36.🔗 Which code links to about.html? (a) <link about.html> (b) <a src="about.html"> (c) <a alt="about.html"> (d) <a href="about.html">
- 37.Which of these is true of a web browser? (a) answers page requests (b) turns HTML into a page (c) is where we type code (d) shows line numbers
- 38.🔠 Which heading shows the SMALLEST text: <h4>, <h2>, <h3> or <h6>? (a) <h6> (b) <h2> (c) <h4> (d) <h3>
- 39.🔍 Which is the odd one out? (a) stores a website’s files (b) answers page requests (c) hosts websites online (d) shows line numbers
-
40.🔗 Which address opens when you click this link?
<a href="about.html">Maths fun</a> (a) about.html (b) https://example.com (c) Maths fun (d) contact.html
Answer key
- <h4>
- Rain today
- <!--
- </html>
- Fun facts
- has a closing tag
- True
- Our school bus
- <h5>
- <h6>
- <b>
- stores a website’s files
- <table>
- games.html
- <h5>
- About us
- True
- <img>
- <h1>
- <ul>
- </b>
- 4
- 1
- False
- maths.html
- Yes
- <h2>
- The red kite
- <b>
- False
- <!DOCTYPE html>
- 3
- <li>
- </b>
- Good morning!
- <a href="about.html">
- turns HTML into a page
- <h6>
- shows line numbers
- about.html
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids