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.🔢 In a basic web page file, which comes FIRST? (a) <head> (b) <!DOCTYPE html> (c) </body> (d) <html>
- 2.Which of these is an empty tag? (a) <meta> (b) <h1> (c) <p> (d) <li>
- 3.🌐 Which one saves our .html files? (a) a web browser (b) a web server (c) a code editor
- 4.🔠 Which heading shows the BIGGEST text: <h6>, <h2>, <h3> or <h1>? (a) <h1> (b) <h3> (c) <h2> (d) <h6>
- 5.🔗 Which code links to about.html? (a) <a href="about.html"> (b) <link about.html> (c) <a src="about.html"> (d) <a alt="about.html">
- 6.📋 Which list tag lists things in any order? (a) <li> (b) <ol> (c) <ul>
- 7.📋 Which list tag is an unordered list? (a) <ul> (b) <ol> (c) <li>
- 8.🔢 In a basic web page file, which comes first: “<body>” or “</head>”? (a) <body> (b) </head>
-
9.🖼️ How many pixels wide is the picture drawn?
<img src="moon.png" alt="The full moon" width="250"> - 10.🖼️ Why do we add alt text to an image? (a) to load it faster (b) to colour it (c) to describe the image (d) to make it bigger
- 11.📄 Can HTML on its own show paragraphs? (a) Yes (b) No
- 12.True or false: <br> has a closing tag. (a) False (b) True
- 13.🏷️ Which is the closing tag for <b>? (a) <b/> (b) <\b> (c) </b> (d) <b>
- 14.📝 What does <hr> draw? (a) a table (b) a link (c) a picture (d) a line across the page
-
15.💬 Which text will NOT show on the page?
<p>Rain today</p>
<p>Good morning!</p>
<!-- <p>Our school trip</p> --> (a) Good morning! (b) Rain today (c) Our school trip -
16.🔗 Which address opens when you click this link?
<a href="games.html">Take the quiz</a> (a) contact.html (b) Take the quiz (c) games.html (d) about.html -
17.📋 Does this list show bullets or numbers?
<ul>
<li>Papaya</li>
<li>Guava</li>
</ul> (a) bullets (b) numbers - 18.🔠 How many <h1> headings should a page usually have? (a) 3 (b) 1 (c) 10 (d) 6
-
19.📋 Does this list show bullets or numbers?
<ol>
<li>Jamun</li>
<li>Orange</li>
<li>Grapes</li>
</ol> (a) bullets (b) numbers -
20.🔗 Where does this link open?
<a href="news.html">Contact us</a> (a) in a new tab (b) in the same tab -
21.📋 Does this list show bullets or numbers?
<ul>
<li>Orange</li>
<li>Grapes</li>
<li>Papaya</li>
</ul> (a) numbers (b) bullets - 22.🔠 Are headings shown in bold by default? (a) Yes (b) No
-
23.📋 Does this list show bullets or numbers?
<ol>
<li>Grapes</li>
<li>Mango</li>
<li>Papaya</li>
</ol> (a) bullets (b) numbers - 24.📝 What does <p> make? (a) a paragraph (b) a picture (c) a table (d) a link
-
25.📋 Does this list show bullets or numbers?
<ol>
<li>Grapes</li>
<li>Mango</li>
</ol> (a) numbers (b) bullets - 26.🏷️ Which is the closing tag for <strong>? (a) <\strong> (b) <strong/> (c) </strong> (d) <strong>
-
27.🔗 Which words do you click on?
<a href="maths.html">Art corner</a> (a) maths.html (b) School news (c) Art corner (d) href -
28.📝 How many paragraphs does this code make?
<p>Fun facts</p>
<p>The red kite</p>
<p>Cricket is fun.</p>
<p>Our school trip</p>
<p>Cricket is fun.</p>
<p>Cricket is fun.</p> - 29.True or false: <li> is an unordered list. (a) True (b) False
-
30.💬 How many paragraphs show on the page?
<!-- <p>I love mangoes.</p> -->
<p>Our school trip</p>
<p>Rain today</p>
<p>My pets</p> - 31.🔡 Are HTML tag names usually written in small letters? (a) No (b) Yes
- 32.🔤 In “HTML”, what do the letters HT stand for? (a) Home Text (b) High Tech (c) HyperText (d) Hot Tags
-
33.📋 How many items does this list show?
<ul>
<li>Jamun</li>
<li>Banana</li>
</ul> - 34.Which of these goes in the head? (a) <h1> (b) <a> (c) <p> (d) <link rel="stylesheet">
- 35.💬 Does the browser show comments on the page? (a) Yes (b) No
- 36.🔠 How many heading levels does HTML have? (a) 10 (b) 3 (c) 4 (d) 6
- 37.🏷️ Which is the closing tag for <u>? (a) <u> (b) <u/> (c) </u> (d) <\u>
- 38.Which of these is an opening tag? (a) </title> (b) </li> (c) </b> (d) <h1>
-
39.🖼️ How many pixels wide is the picture drawn?
<img src="cake.jpg" alt="Birthday cake" width="300"> -
40.🔠 How many headings are in this code?
<h1>Rain today</h1>
<h4>The red kite</h4>
<h4>Good morning!</h4>
Answer key
- <!DOCTYPE html>
- <meta>
- a code editor
- <h1>
- <a href="about.html">
- <ul>
- <ul>
- </head>
- 250
- to describe the image
- Yes
- False
- </b>
- a line across the page
- Our school trip
- games.html
- bullets
- 1
- numbers
- in the same tab
- bullets
- Yes
- numbers
- a paragraph
- numbers
- </strong>
- Art corner
- 6
- False
- 3
- Yes
- HyperText
- 2
- <link rel="stylesheet">
- No
- 6
- </u>
- <h1>
- 300
- 3
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids