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 tag makes a clickable link? (a) <link> (b) <img> (c) <a> (d) <p>
- 2.📋 Which list suits a shopping list in any order? (a) <ol> (b) <ul> (c) <br> (d) <hr>
- 3.🏷️ Is </title> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 4.True or false: <ul> is one item of a list. (a) True (b) False
-
5.📋 What number does the browser show next to “Papaya”?
<ol start="9">
<li>Jamun</li>
<li>Banana</li>
<li>Papaya</li>
<li>Orange</li>
<li>Guava</li>
</ol> - 6.True or false: <title> has a closing tag. (a) False (b) True
- 7.True or false: <ol> shows 1, 2, 3 numbers. (a) False (b) True
-
8.📝 How many paragraphs does this code make?
<p>Good morning!</p>
<p>My pets</p>
<p>My pets</p>
<p>Our school trip</p>
<p>My best friend</p> -
9.🔠 How many headings are in this code?
<h1>I love mangoes.</h1>
<h4>The red kite</h4>
<p>I love mangoes.</p>
<p>My best friend</p> - 10.True or false: <meta charset="utf-8"> goes in the head. (a) True (b) False
- 11.📄 Can HTML on its own make headings? (a) Yes (b) No
-
12.📝 On how many lines does the browser show this paragraph?
<p>Roses are red<br>Rivers flow<br>Stars shine<br>Sky is blue</p> -
13.💬 How many paragraphs show on the page?
<!-- <p>Good morning!</p> -->
<p>Cricket is fun.</p>
<!-- <p>Our school trip</p> --> -
14.🖼️ How many pixels wide is the picture drawn?
<img src="moon.png" alt="The full moon" width="50"> - 15.🏷️ Is <h1> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 16.💬 Does the browser show comments on the page? (a) No (b) Yes
-
17.📝 How many paragraphs does this code make?
<p>Good morning!</p>
<h2>I love mangoes.</h2>
<p>Our school trip</p> -
18.🔍 Which line is missing its closing tag?
line 1: <u>Fun facts
line 2: <b>My best friend</b>
line 3: <small>My pets</small> (a) line 1 (b) line 2 (c) line 3 - 19.True or false: <table> goes in the body. (a) False (b) True
-
20.🔗 Which address opens when you click this link?
<a href="quiz.html">Take the quiz</a> (a) quiz.html (b) games.html (c) Take the quiz (d) about.html - 21.🔗 Which code links to about.html? (a) <a href="about.html"> (b) <a alt="about.html"> (c) <link about.html> (d) <a src="about.html">
- 22.True or false: <hr> has a closing tag. (a) False (b) True
-
23.🔗 Which words do you click on?
<a href="https://example.com">Take the quiz</a> (a) Play games (b) Take the quiz (c) https://example.com (d) href - 24.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
-
25.💬 Which text will NOT show on the page?
<p>Cricket is fun.</p>
<p>Our school trip</p>
<p>Rain today</p>
<!-- <p>My pets</p> --> (a) Cricket is fun. (b) My pets (c) Rain today (d) Our school trip - 26.📝 What does <p> make? (a) a link (b) a picture (c) a paragraph (d) a table
- 27.🏷️ Every HTML tag starts with which sign? (a) [ (b) ( (c) { (d) <
-
28.💬 How many paragraphs show on the page?
<!-- <p>Fun facts</p> -->
<p>Cricket is fun.</p>
<p>I love mangoes.</p>
<!-- <p>The red kite</p> --> - 29.📄 Where does <h1> go: in the head or in the body? (a) in the body (b) in the head
-
30.🖼️ Which picture file does the browser load?
<img src="moon.png" alt="The full moon" width="200"> (a) bus.jpg (b) fort.jpg (c) moon.png (d) The full moon - 31.📛 In <a href="x.html">, what is href? (a) an element name (b) a comment (c) an attribute (d) a closing tag
-
32.🔠 How many headings are in this code?
<h1>Good morning!</h1>
<h3>Good morning!</h3>
<h2>Rain today</h2> - 33.🔠 Which heading shows the SMALLEST text: <h6>, <h1>, <h5> or <h3>? (a) <h6> (b) <h1> (c) <h3> (d) <h5>
- 34.📝 Does <input> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
- 35.🏷️ Is </b> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
-
36.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>My Hobbies</title>
</head>
<body>
<h1>All about me</h1>
<p>Thanks for visiting.</p>
</body>
</html> (a) body (b) All about me (c) Thanks for visiting. (d) My Hobbies - 37.True or false: <ul> goes in the head. (a) False (b) True
- 38.🔢 In a basic web page file, which comes first: “<!DOCTYPE html>” or “<head>”? (a) <head> (b) <!DOCTYPE html>
- 39.True or false: a web server turns HTML into a page. (a) False (b) True
- 40.🏷️ Is </body> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
Answer key
- <a>
- <ul>
- a closing tag
- False
- 11
- True
- True
- 5
- 2
- True
- Yes
- 4
- 1
- 50
- an opening tag
- No
- 2
- line 1
- True
- quiz.html
- <a href="about.html">
- False
- Take the quiz
- Yes
- My pets
- a paragraph
- <
- 2
- in the body
- moon.png
- an attribute
- 3
- <h6>
- an empty tag
- a closing tag
- All about me
- False
- <!DOCTYPE html>
- False
- a closing tag
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids