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 of these is an opening tag? (a) </body> (b) <title> (c) </title> (d) </p>
-
2.🔗 Which address opens when you click this link?
<a href="art.html">Contact us</a> (a) news.html (b) Contact us (c) art.html (d) quiz.html - 3.🔠 Which heading shows the BIGGEST text: <h1>, <h4>, <h2> or <h5>? (a) <h4> (b) <h2> (c) <h1> (d) <h5>
- 4.🖼️ Which attribute of <img> sets how tall it is? (a) src (b) height (c) alt (d) width
-
5.🔗 Which words do you click on?
<a href="games.html">Contact us</a> (a) Contact us (b) Visit the site (c) games.html (d) href - 6.🔗 Which code links to about.html? (a) <a alt="about.html"> (b) <a src="about.html"> (c) <a href="about.html"> (d) <link about.html>
- 7.🔢 In a basic web page file, which comes first: “<html>” or “</head>”? (a) <html> (b) </head>
-
8.📋 How many items does this list show?
<ol>
<li>Guava</li>
<li>Grapes</li>
</ol> - 9.🏷️ Is </p> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
-
10.🔠 How many headings are in this code?
<h1>Cricket is fun.</h1>
<h2>My pets</h2>
<p>My pets</p> - 11.📄 Can HTML on its own make headings? (a) No (b) Yes
- 12.🔍 Which is the odd one out? (a) has an address bar (b) shows pages from the web (c) opens web pages for us (d) is where we type code
- 13.True or false: <ol> shows 1, 2, 3 numbers. (a) True (b) False
- 14.🔠 Which heading shows the SMALLEST text: <h2>, <h1>, <h4> or <h3>? (a) <h3> (b) <h4> (c) <h2> (d) <h1>
- 15.📋 Which list tag shows bullet points? (a) <li> (b) <ul> (c) <ol>
-
16.💬 Which text will NOT show on the page?
<p>The red kite</p>
<p>My best friend</p>
<p>My pets</p>
<!-- <p>Our school trip</p> --> (a) The red kite (b) My best friend (c) Our school trip (d) My pets -
17.🖼️ How many pixels wide is the picture drawn?
<img src="bus.jpg" alt="Our school bus" width="250"> -
18.💬 How many paragraphs show on the page?
<!-- <p>My pets</p> -->
<!-- <p>Cricket is fun.</p> -->
<p>I love mangoes.</p> -
19.🔠 How many headings are in this code?
<h1>The red kite</h1>
<h3>I love mangoes.</h3>
<p>Hello, world!</p>
<p>My pets</p>
<h3>Hello, world!</h3> - 20.Which of these is true of a web server? (a) is where we type code (b) answers page requests (c) shows pages from the web (d) colours code to help us
- 21.💾 A web page file usually ends with which extension? (a) .png (b) .mp3 (c) .txt (d) .html
- 22.🖼️ Which attribute of <img> shows if the image fails? (a) height (b) alt (c) width (d) src
- 23.📋 Which list shows the steps of a recipe best? (a) <br> (b) <ul> (c) <hr> (d) <ol>
- 24.True or false: a web server turns HTML into a page. (a) False (b) True
-
25.🔗 Which address opens when you click this link?
<a href="games.html">School news</a> (a) contact.html (b) about.html (c) games.html (d) School news - 26.🔠 How many <h1> headings should a page usually have? (a) 10 (b) 6 (c) 3 (d) 1
-
27.🔗 Which words do you click on?
<a href="quiz.html">Visit the site</a> (a) href (b) Maths fun (c) quiz.html (d) Visit the site -
28.🔍 One closing tag is missing. Which one?
<h1>My best friend</h1>
<p>Rain today
<h2>My pets</h2> (a) </h1> (b) </strong> (c) </h2> (d) </p> - 29.📝 What does <p> make? (a) a paragraph (b) a table (c) a picture (d) a link
- 30.Which of these has a closing tag? (a) <ul> (b) <img> (c) <meta> (d) <hr>
- 31.🔠 How many heading levels does HTML have? (a) 4 (b) 6 (c) 3 (d) 10
-
32.🔗 Which address opens when you click this link?
<a href="news.html">Contact us</a> (a) Contact us (b) news.html (c) quiz.html (d) games.html -
33.📋 Does this list show bullets or numbers?
<ul>
<li>Grapes</li>
<li>Mango</li>
</ul> (a) numbers (b) bullets -
34.🔠 How many headings are in this code?
<h1>Hello, world!</h1>
<p>Good morning!</p>
<h3>Good morning!</h3>
<p>Fun facts</p> - 35.🖼️ Which tag puts a picture on a page? (a) <p> (b) <pic> (c) <img> (d) <a>
- 36.🔍 Which is the odd one out? (a) colours code to help us (b) has an address bar (c) turns HTML into a page (d) shows pages from the web
- 37.🔠 Which heading shows the SMALLEST text: <h1>, <h3>, <h5> or <h2>? (a) <h1> (b) <h3> (c) <h5> (d) <h2>
- 38.🔠 Which heading shows the BIGGEST text: <h1>, <h6>, <h2> or <h3>? (a) <h6> (b) <h2> (c) <h3> (d) <h1>
- 39.🔠 Which heading shows the BIGGEST text: <h4>, <h6>, <h1> or <h5>? (a) <h5> (b) <h6> (c) <h1> (d) <h4>
- 40.🏷️ Which is the closing tag for <h3>? (a) <h3/> (b) </h3> (c) <\h3> (d) <h3>
Answer key
- <title>
- art.html
- <h1>
- height
- Contact us
- <a href="about.html">
- <html>
- 2
- a closing tag
- 2
- Yes
- is where we type code
- True
- <h4>
- <ul>
- Our school trip
- 250
- 1
- 3
- answers page requests
- .html
- alt
- <ol>
- False
- games.html
- 1
- Visit the site
- </p>
- a paragraph
- <ul>
- 6
- news.html
- bullets
- 2
- <img>
- colours code to help us
- <h5>
- <h1>
- <h1>
- </h3>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids