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.📝 What does <p> make? (a) a paragraph (b) a picture (c) a link (d) a table
- 2.🔡 Are HTML tag names usually written in small letters? (a) No (b) Yes
- 3.Which of these is an empty tag? (a) <ul> (b) <h1> (c) <p> (d) <br>
- 4.🏷️ Is <li> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 5.🌐 Which one opens web pages for us? (a) a web server (b) a web browser (c) a code editor
- 6.True or false: <li> is an unordered list. (a) False (b) True
- 7.📝 What does <hr> draw? (a) a table (b) a line across the page (c) a picture (d) a link
-
8.💬 How many paragraphs show on the page?
<!-- <p>Hello, world!</p> -->
<p>Good morning!</p>
<!-- <p>Our school trip</p> -->
<p>I love mangoes.</p>
<p>My best friend</p> -
9.🔗 Which address opens when you click this link?
<a href="games.html">Contact us</a> (a) Contact us (b) about.html (c) games.html (d) contact.html - 10.True or false: HTML on its own cannot make a form. (a) False (b) True
- 11.🔗 What does target="_blank" do to a link? (a) opens it in a new tab (b) makes it bold (c) hides the link (d) makes it blank
-
12.📋 What number does the browser show next to “Mango”?
<ol start="4">
<li>Grapes</li>
<li>Mango</li>
<li>Banana</li>
</ol> - 13.🌍 Which program shows a web page to us? (a) a calculator (b) a paint program (c) a web browser (d) a music player
-
14.🔗 Which words do you click on?
<a href="about.html">School news</a> (a) Take the quiz (b) School news (c) about.html (d) href - 15.🔢 In a basic web page file, which comes first: “</html>” or “<!DOCTYPE html>”? (a) </html> (b) <!DOCTYPE html>
- 16.🔠 Which tag is the least important heading? (a) <h1> (b) <h3> (c) <p> (d) <h6>
-
17.💬 Which text will NOT show on the page?
<p>The red kite</p>
<!-- <p>Rain today</p> -->
<p>Good morning!</p>
<p>Hello, world!</p> (a) Hello, world! (b) The red kite (c) Rain today (d) Good morning! - 18.🔤 In “HTML”, what does the L stand for? (a) Link (b) Line (c) Language (d) Laptop
-
19.🔍 Which line is missing its closing tag?
line 1: <em>Hello, world!</em>
line 2: <h2>Fun facts</h2>
line 3: <strong>The red kite (a) line 3 (b) line 2 (c) line 1 - 20.Which of these is true of a code editor? (a) sends pages over the net (b) shows line numbers (c) shows pages from the web (d) answers page requests
- 21.🔤 In “HTML”, what do the letters HT stand for? (a) HyperText (b) Hot Tags (c) High Tech (d) Home Text
-
22.🔗 Where does this link open?
<a href="https://example.com">Art corner</a> (a) in the same tab (b) in a new tab -
23.🔍 One closing tag is missing. Which one?
<h2>Hello, world!</h2>
<i>My best friend
<h3>Fun facts</h3> (a) </h3> (b) </h2> (c) </p> (d) </i> - 24.True or false: <ul> goes inside ul or ol. (a) False (b) True
- 25.🔠 Which heading shows the SMALLEST text: <h2>, <h4>, <h3> or <h5>? (a) <h4> (b) <h5> (c) <h3> (d) <h2>
- 26.🔗 Which code links to about.html? (a) <a src="about.html"> (b) <a href="about.html"> (c) <link about.html> (d) <a alt="about.html">
- 27.True or false: in <img>, alt shows if the image fails. (a) True (b) False
- 28.🔠 Which heading shows the BIGGEST text: <h5>, <h1>, <h3> or <h2>? (a) <h5> (b) <h3> (c) <h1> (d) <h2>
- 29.📄 Where does <title> go: in the head or in the body? (a) in the head (b) in the body
-
30.🖼️ How many pixels wide is the picture drawn?
<img src="moon.png" alt="The full moon" width="150"> - 31.Which of these has a closing tag? (a) <li> (b) <input> (c) <hr> (d) <br>
-
32.🔠 How many headings are in this code?
<h1>My best friend</h1>
<h3>Rain today</h3>
<h3>My best friend</h3> - 33.🔢 In a basic web page file, which comes FIRST? (a) <head> (b) </html> (c) <!DOCTYPE html> (d) <body>
-
34.🔗 Which words do you click on?
<a href="news.html">About us</a> (a) news.html (b) href (c) Contact us (d) About us - 35.🌐 Which one turns HTML into a page? (a) a web server (b) a code editor (c) a web browser
- 36.True or false: <p> has a closing tag. (a) True (b) False
-
37.🔗 Which address opens when you click this link?
<a href="about.html">Visit the site</a> (a) https://example.com (b) Visit the site (c) contact.html (d) about.html -
38.🔗 Where does this link open?
<a href="games.html">Take the quiz</a> (a) in the same tab (b) in a new tab - 39.🏷️ Is </li> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
-
40.🔗 Where does this link open?
<a href="https://example.com">Play games</a> (a) in the same tab (b) in a new tab
Answer key
- a paragraph
- Yes
- <br>
- an opening tag
- a web browser
- False
- a line across the page
- 3
- games.html
- False
- opens it in a new tab
- 5
- a web browser
- School news
- <!DOCTYPE html>
- <h6>
- Rain today
- Language
- line 3
- shows line numbers
- HyperText
- in the same tab
- </i>
- False
- <h5>
- <a href="about.html">
- True
- <h1>
- in the head
- 150
- <li>
- 3
- <!DOCTYPE html>
- About us
- a web browser
- True
- about.html
- in the same tab
- a closing tag
- in the same tab
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids