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: “<head>” or “<html>”? (a) <head> (b) <html>
- 2.🔠 Which tag is the least important heading? (a) <p> (b) <h6> (c) <h3> (d) <h1>
-
3.📝 On how many lines does the browser show this paragraph?
<p>Birds sing<br>Sky is blue<br>Rivers flow<br>Roses are red<br>Stars shine</p> - 4.🌐 Which one shows pages from the web? (a) a code editor (b) a web server (c) a web browser
-
5.🔗 Which address opens when you click this link?
<a href="https://example.com">Take the quiz</a> (a) Take the quiz (b) maths.html (c) art.html (d) https://example.com - 6.📝 Does <br> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
-
7.📋 What number does the browser show next to “Litchi”?
<ol>
<li>Jamun</li>
<li>Banana</li>
<li>Mango</li>
<li>Grapes</li>
<li>Litchi</li>
<li>Guava</li>
</ol> - 8.🌐 Which one stores a website’s files? (a) a web server (b) a code editor (c) a web browser
-
9.📋 Does this list show bullets or numbers?
<ol>
<li>Mango</li>
<li>Guava</li>
<li>Jamun</li>
</ol> (a) bullets (b) numbers -
10.🔍 One closing tag is missing. Which one?
<h3>Rain today</h3>
<h2>Good morning!
<small>My pets</small> (a) </h3> (b) </u> (c) </h2> (d) </small> - 11.True or false: <ul> is one item of a list. (a) True (b) False
- 12.🔠 Which heading shows the BIGGEST text: <h5>, <h1>, <h3> or <h6>? (a) <h5> (b) <h6> (c) <h1> (d) <h3>
- 13.True or false: <li> is an empty tag. (a) True (b) False
-
14.💬 Which text will NOT show on the page?
<!-- <p>My pets</p> -->
<p>Hello, world!</p>
<p>Good morning!</p>
<p>I love mangoes.</p> (a) I love mangoes. (b) Hello, world! (c) Good morning! (d) My pets -
15.📋 How many items does this list show?
<ul>
<li>Jamun</li>
<li>Litchi</li>
<li>Grapes</li>
<li>Mango</li>
</ul> - 16.🏷️ Is </title> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 17.🔢 In a basic web page file, which comes first: “<html>” or “</head>”? (a) <html> (b) </head>
- 18.True or false: in <img>, src names the picture file. (a) False (b) True
- 19.💬 Does the browser show comments on the page? (a) No (b) Yes
- 20.💬 How does an HTML comment end? (a) >> (b) */ (c) // (d) -->
- 21.True or false: a web browser turns HTML into a page. (a) False (b) True
- 22.🏷️ Which is the closing tag for <strong>? (a) <strong> (b) <strong/> (c) </strong> (d) <\strong>
- 23.🔗 Which code links to about.html? (a) <a href="about.html"> (b) <a alt="about.html"> (c) <a src="about.html"> (d) <link about.html>
- 24.True or false: <a> goes in the head. (a) True (b) False
- 25.🔗 Which attribute holds the address of a link? (a) alt (b) href (c) src (d) id
- 26.🏷️ Which is the closing tag for <h3>? (a) </h3> (b) <h3/> (c) <h3> (d) <\h3>
-
27.📝 How many paragraphs does this code make?
<p>My pets</p>
<p>My pets</p>
<p>My pets</p>
<h2>The red kite</h2> -
28.🔗 Which words do you click on?
<a href="https://example.com">Art corner</a> (a) https://example.com (b) href (c) Art corner (d) School news -
29.🔍 Which line is missing its closing tag?
line 1: <h2>I love mangoes.</h2>
line 2: <i>Hello, world!</i>
line 3: <p>Our school trip (a) line 2 (b) line 3 (c) line 1 -
30.🔗 Which words do you click on?
<a href="art.html">School news</a> (a) Take the quiz (b) School news (c) art.html (d) href - 31.Which of these goes in the body? (a) <title> (b) <p> (c) <meta charset="utf-8"> (d) <link rel="stylesheet">
- 32.🖼️ Does <img> need a closing tag? (a) Yes (b) No
- 33.📋 Which list tag is an unordered list? (a) <ul> (b) <li> (c) <ol>
-
34.📝 On how many lines does the browser show this paragraph?
<p>Sky is blue<br>Rivers flow<br>Birds sing<br>Roses are red</p> - 35.Which of these is an empty tag? (a) <h1> (b) <b> (c) <hr> (d) <p>
- 36.🧱 HTML gives a web page its ___. (a) speed (b) colours (c) sound (d) structure
- 37.🔠 Which heading shows the SMALLEST text: <h2>, <h3>, <h4> or <h1>? (a) <h2> (b) <h1> (c) <h3> (d) <h4>
- 38.🔠 How many <h1> headings should a page usually have? (a) 10 (b) 3 (c) 1 (d) 6
- 39.🔤 In “HTML”, what do the letters HT stand for? (a) Hot Tags (b) HyperText (c) Home Text (d) High Tech
-
40.🔗 Which address opens when you click this link?
<a href="about.html">Art corner</a> (a) Art corner (b) https://example.com (c) contact.html (d) about.html
Answer key
- <html>
- <h6>
- 5
- a web browser
- https://example.com
- an empty tag
- 5
- a web server
- numbers
- </h2>
- False
- <h1>
- False
- My pets
- 4
- a closing tag
- <html>
- True
- No
- -->
- True
- </strong>
- <a href="about.html">
- False
- href
- </h3>
- 3
- Art corner
- line 3
- School news
- <p>
- No
- <ul>
- 4
- <hr>
- structure
- <h4>
- 1
- HyperText
- about.html
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids