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 table (b) a link (c) a paragraph (d) a picture
- 2.🖼️ Which tag puts a picture on a page? (a) <pic> (b) <p> (c) <a> (d) <img>
- 3.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
- 4.🖼️ Does <img> need a closing tag? (a) No (b) Yes
- 5.💬 How does an HTML comment start? (a) <!-- (b) # (c) /* (d) //
- 6.📄 What is the first line of an HTML5 page? (a) <html> (b) <body> (c) <head> (d) <!DOCTYPE html>
-
7.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Art Gallery</title>
</head>
<body>
<h1>My drawings</h1>
<p>I like to read.</p>
</body>
</html> (a) Art Gallery (b) I like to read. (c) body (d) My drawings -
8.📋 Does this list show bullets or numbers?
<ol>
<li>Papaya</li>
<li>Banana</li>
</ol> (a) numbers (b) bullets -
9.🔗 Which address opens when you click this link?
<a href="art.html">About us</a> (a) quiz.html (b) art.html (c) About us (d) news.html - 10.🔠 Which heading shows the BIGGEST text: <h1>, <h4>, <h2> or <h5>? (a) <h1> (b) <h5> (c) <h4> (d) <h2>
-
11.💬 Which text will NOT show on the page?
<!-- <p>Good morning!</p> -->
<p>Rain today</p>
<p>Fun facts</p>
<p>The red kite</p> (a) Rain today (b) Fun facts (c) The red kite (d) Good morning! - 12.True or false: <li> is one item of a list. (a) True (b) False
- 13.📋 Which list tag goes inside ul or ol? (a) <li> (b) <ol> (c) <ul>
-
14.💬 Which text will NOT show on the page?
<p>My pets</p>
<!-- <p>My best friend</p> -->
<p>I love mangoes.</p>
<p>Rain today</p> (a) My pets (b) Rain today (c) I love mangoes. (d) My best friend - 15.Which of these is a closing tag? (a) <li> (b) </p> (c) <body> (d) <title>
- 16.True or false: a web browser sends pages over the net. (a) False (b) True
- 17.🔠 Which heading shows the SMALLEST text: <h4>, <h1>, <h3> or <h2>? (a) <h3> (b) <h1> (c) <h2> (d) <h4>
- 18.🖼️ Which attribute of <img> shows if the image fails? (a) width (b) height (c) src (d) alt
-
19.📝 On how many lines does the browser show this paragraph?
<p>Birds sing<br>Stars shine</p> - 20.📄 Where does <ul> go: in the head or in the body? (a) in the head (b) in the body
- 21.🔠 Which heading shows the BIGGEST text: <h1>, <h5>, <h6> or <h2>? (a) <h2> (b) <h6> (c) <h5> (d) <h1>
-
22.💬 How many paragraphs show on the page?
<!-- <p>Hello, world!</p> -->
<!-- <p>The red kite</p> -->
<p>Good morning!</p>
<!-- <p>Our school trip</p> --> -
23.🔗 Which words do you click on?
<a href="news.html">Visit the site</a> (a) Visit the site (b) href (c) news.html (d) Maths fun - 24.Which of these is an opening tag? (a) </b> (b) </h1> (c) </li> (d) <h1>
-
25.📋 How many items does this list show?
<ol>
<li>Jamun</li>
<li>Guava</li>
<li>Orange</li>
<li>Mango</li>
<li>Banana</li>
</ol> - 26.🌐 Which one has an address bar? (a) a code editor (b) a web browser (c) a web server
-
27.💬 Which text will NOT show on the page?
<!-- <p>Good morning!</p> -->
<p>Fun facts</p>
<p>My pets</p> (a) Good morning! (b) My pets (c) Fun facts - 28.📝 What does <br> do? (a) adds a picture (b) makes a list (c) makes text bold (d) starts a new line
-
29.💬 How many paragraphs show on the page?
<!-- <p>Our school trip</p> -->
<p>Fun facts</p>
<p>Hello, world!</p> -
30.🔗 Where does this link open?
<a href="https://example.com" target="_blank">Maths fun</a> (a) in a new tab (b) in the same tab - 31.📋 Which list shows the steps of a recipe best? (a) <hr> (b) <br> (c) <ul> (d) <ol>
- 32.🔤 In “HTML”, what do the letters HT stand for? (a) Home Text (b) Hot Tags (c) HyperText (d) High Tech
-
33.🖼️ How many pixels wide is the picture drawn?
<img src="cake.jpg" alt="Birthday cake" width="300"> -
34.💬 Which text will NOT show on the page?
<p>The red kite</p>
<!-- <p>Hello, world!</p> -->
<p>I love mangoes.</p>
<p>Cricket is fun.</p> (a) Hello, world! (b) Cricket is fun. (c) The red kite (d) I love mangoes. - 35.Which of these has a closing tag? (a) <title> (b) <input> (c) <br> (d) <meta>
- 36.📝 What does <hr> draw? (a) a picture (b) a table (c) a link (d) a line across the page
-
37.🔍 One closing tag is missing. Which one?
<h1>My pets</h1>
<em>Cricket is fun.
<strong>The red kite</strong> (a) </h2> (b) </h1> (c) </strong> (d) </em> - 38.💬 How does an HTML comment end? (a) --> (b) // (c) >> (d) */
- 39.📋 Which tag goes around each item of a list? (a) <ol> (b) <p> (c) <li> (d) <ul>
-
40.🔗 Which words do you click on?
<a href="maths.html">Visit the site</a> (a) Maths fun (b) href (c) maths.html (d) Visit the site
Answer key
- a paragraph
- <img>
- Yes
- No
- <!--
- <!DOCTYPE html>
- My drawings
- numbers
- art.html
- <h1>
- Good morning!
- True
- <li>
- My best friend
- </p>
- False
- <h4>
- alt
- 2
- in the body
- <h1>
- 1
- Visit the site
- <h1>
- 5
- a web browser
- Good morning!
- starts a new line
- 2
- in a new tab
- <ol>
- HyperText
- 300
- Hello, world!
- <title>
- a line across the page
- </em>
- -->
- <li>
- Visit the site
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids