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.True or false: <meta> is an empty tag. (a) True (b) False
- 2.🔠 Which heading shows the SMALLEST text: <h2>, <h4>, <h5> or <h1>? (a) <h4> (b) <h1> (c) <h2> (d) <h5>
-
3.💬 How many paragraphs show on the page?
<!-- <p>My best friend</p> -->
<p>I love mangoes.</p>
<p>Hello, world!</p> - 4.True or false: in <img>, width sets how wide it is. (a) False (b) True
-
5.🔍 One closing tag is missing. Which one?
<p>My pets</p>
<em>Hello, world!
<b>Rain today</b> (a) </i> (b) </em> (c) </b> (d) </p> - 6.🏷️ Is </p> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 7.True or false: <h1> goes in the body. (a) False (b) True
- 8.📋 Which list suits a shopping list in any order? (a) <ul> (b) <ol> (c) <br> (d) <hr>
- 9.📝 What does <p> make? (a) a paragraph (b) a link (c) a table (d) a picture
- 10.🔠 Which heading shows the SMALLEST text: <h6>, <h3>, <h5> or <h1>? (a) <h3> (b) <h6> (c) <h5> (d) <h1>
-
11.🔗 Where does this link open?
<a href="art.html">Take the quiz</a> (a) in the same tab (b) in a new tab - 12.🔍 Which is the odd one out? (a) sends pages over the net (b) answers page requests (c) turns HTML into a page (d) stores a website’s files
- 13.🔠 Which heading shows the BIGGEST text: <h3>, <h6>, <h2> or <h4>? (a) <h6> (b) <h3> (c) <h4> (d) <h2>
- 14.🔗 Which attribute holds the address of a link? (a) id (b) src (c) alt (d) href
- 15.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
- 16.🔠 Which heading shows the BIGGEST text: <h5>, <h2>, <h3> or <h6>? (a) <h5> (b) <h2> (c) <h6> (d) <h3>
- 17.🏷️ Every HTML tag starts with which sign? (a) < (b) ( (c) { (d) [
- 18.🖼️ Which attribute of <img> is read by screen readers? (a) width (b) alt (c) src (d) height
-
19.🔗 Where does this link open?
<a href="maths.html" target="_blank">School news</a> (a) in the same tab (b) in a new tab - 20.🔍 Which is the odd one out? (a) turns HTML into a page (b) opens web pages for us (c) has an address bar (d) saves our .html files
- 21.📋 Which list tag lists things in any order? (a) <ul> (b) <li> (c) <ol>
- 22.📋 Which tag goes around each item of a list? (a) <li> (b) <ul> (c) <ol> (d) <p>
- 23.🔠 Which tag is the least important heading? (a) <h6> (b) <h1> (c) <p> (d) <h3>
- 24.🔠 Which heading shows the SMALLEST text: <h4>, <h1>, <h3> or <h5>? (a) <h3> (b) <h5> (c) <h1> (d) <h4>
- 25.🖼️ Which attribute of <img> describes the picture? (a) src (b) width (c) height (d) alt
-
26.📋 How many items does this list show?
<ol>
<li>Grapes</li>
<li>Orange</li>
<li>Banana</li>
<li>Litchi</li>
</ol> - 27.🏷️ What does a closing tag have that an opening tag does not? (a) a dollar $ (b) a slash / (c) a hash # (d) a dot .
- 28.🧩 An opening tag + content + a closing tag together make an ___. (a) attribute (b) element (c) address (d) editor
- 29.📄 Where does the text of <title> appear? (a) in a big heading (b) on the browser tab (c) at the bottom (d) nowhere
-
30.💬 Which text will NOT show on the page?
<p>Cricket is fun.</p>
<p>My pets</p>
<p>Fun facts</p>
<!-- <p>Hello, world!</p> --> (a) Fun facts (b) Hello, world! (c) Cricket is fun. (d) My pets -
31.🔗 Which address opens when you click this link?
<a href="art.html">Take the quiz</a> (a) Take the quiz (b) quiz.html (c) art.html (d) news.html - 32.🖼️ Which tag puts a picture on a page? (a) <pic> (b) <p> (c) <img> (d) <a>
-
33.🔗 Which words do you click on?
<a href="about.html">Play games</a> (a) Play games (b) about.html (c) About us (d) href -
34.💬 Which text will NOT show on the page?
<p>The red kite</p>
<!-- <p>Our school trip</p> -->
<p>My best friend</p>
<p>Good morning!</p> (a) Good morning! (b) Our school trip (c) The red kite (d) My best friend - 35.True or false: HTML on its own can pick a random number. (a) False (b) True
- 36.🏷️ Which is the closing tag for <strong>? (a) <strong/> (b) </strong> (c) <\strong> (d) <strong>
- 37.🏷️ Is <h1> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
-
38.💬 How many paragraphs show on the page?
<!-- <p>Rain today</p> -->
<p>Cricket is fun.</p>
<!-- <p>My pets</p> --> - 39.🌐 Which one saves our .html files? (a) a web browser (b) a web server (c) a code editor
- 40.🔗 Which tag makes a clickable link? (a) <link> (b) <img> (c) <a> (d) <p>
Answer key
- True
- <h5>
- 2
- True
- </em>
- a closing tag
- True
- <ul>
- a paragraph
- <h6>
- in the same tab
- turns HTML into a page
- <h2>
- href
- Yes
- <h2>
- <
- alt
- in a new tab
- saves our .html files
- <ul>
- <li>
- <h6>
- <h5>
- alt
- 4
- a slash /
- element
- on the browser tab
- Hello, world!
- art.html
- <img>
- Play games
- Our school trip
- False
- </strong>
- an opening tag
- 1
- a code editor
- <a>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids