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.🔠 Are headings shown in bold by default? (a) No (b) Yes
- 2.Which of these is true of a code editor? (a) saves our .html files (b) hosts websites online (c) answers page requests (d) turns HTML into a page
- 3.🖼️ Which tag puts a picture on a page? (a) <pic> (b) <a> (c) <p> (d) <img>
- 4.🔠 Which heading shows the BIGGEST text: <h2>, <h3>, <h5> or <h6>? (a) <h3> (b) <h5> (c) <h2> (d) <h6>
- 5.Which of these is true of a web server? (a) is where we type code (b) saves our .html files (c) answers page requests (d) opens web pages for us
- 6.True or false: a web browser answers page requests. (a) False (b) True
- 7.🔠 Which heading shows the BIGGEST text: <h5>, <h6>, <h2> or <h3>? (a) <h5> (b) <h2> (c) <h6> (d) <h3>
- 8.True or false: a web browser hosts websites online. (a) False (b) True
- 9.True or false: HTML on its own cannot run a game loop. (a) True (b) False
-
10.🔍 Which line is missing its closing tag?
line 1: <small>Hello, world!
line 2: <h1>The red kite</h1>
line 3: <u>Fun facts</u> (a) line 3 (b) line 2 (c) line 1 - 11.🔗 Which tag makes a clickable link? (a) <img> (b) <p> (c) <link> (d) <a>
-
12.🔗 Which words do you click on?
<a href="games.html">About us</a> (a) About us (b) href (c) games.html (d) Contact us - 13.📄 Where does the text of <title> appear? (a) at the bottom (b) on the browser tab (c) in a big heading (d) nowhere
- 14.🏷️ Is <title> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
-
15.📋 How many items does this list show?
<ul>
<li>Jamun</li>
<li>Banana</li>
</ul> - 16.Which of these has a closing tag? (a) <hr> (b) <title> (c) <br> (d) <meta>
-
17.💬 How many paragraphs show on the page?
<p>Fun facts</p>
<p>The red kite</p>
<!-- <p>Hello, world!</p> -->
<p>I love mangoes.</p>
<p>Good morning!</p> - 18.🖼️ Which attribute of <img> names the picture file? (a) width (b) height (c) src (d) alt
- 19.🏷️ Is <b> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 20.📝 What does <br> do? (a) adds a picture (b) starts a new line (c) makes text bold (d) makes a list
-
21.💬 How many paragraphs show on the page?
<p>My pets</p>
<!-- <p>Fun facts</p> -->
<!-- <p>Rain today</p> --> -
22.🔍 One closing tag is missing. Which one?
<h1>My pets
<h2>My best friend</h2>
<h3>Good morning!</h3> (a) </b> (b) </h1> (c) </h2> (d) </h3> -
23.📋 What number does the browser show next to “Guava”?
<ol start="9">
<li>Papaya</li>
<li>Grapes</li>
<li>Guava</li>
<li>Mango</li>
</ol> -
24.💬 How many paragraphs show on the page?
<p>Hello, world!</p>
<p>Our school trip</p>
<p>My best friend</p>
<p>Good morning!</p>
<!-- <p>The red kite</p> --> - 25.Which of these is true of a web server? (a) sends pages over the net (b) is where we type code (c) shows pages from the web (d) has an address bar
-
26.🔍 One closing tag is missing. Which one?
<u>Hello, world!
<small>Our school trip</small>
<b>My pets</b> (a) </strong> (b) </u> (c) </small> (d) </b> - 27.True or false: <ul> shows bullet points. (a) False (b) True
- 28.🏷️ Is </h1> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
-
29.💬 How many paragraphs show on the page?
<p>Hello, world!</p>
<p>My best friend</p>
<!-- <p>Good morning!</p> --> - 30.🔠 Which heading shows the SMALLEST text: <h2>, <h6>, <h4> or <h5>? (a) <h5> (b) <h6> (c) <h2> (d) <h4>
-
31.🔗 Which words do you click on?
<a href="news.html">About us</a> (a) news.html (b) Contact us (c) href (d) About us -
32.📋 How many items does this list show?
<ol>
<li>Mango</li>
<li>Grapes</li>
<li>Orange</li>
</ol> - 33.📄 Where does <img> go: in the head or in the body? (a) in the head (b) in the body
- 34.🔍 Which is the odd one out? (a) shows pages from the web (b) has an address bar (c) shows line numbers (d) opens web pages for us
-
35.🖼️ How many pixels wide is the picture drawn?
<img src="cake.jpg" alt="Birthday cake" width="400"> -
36.🔗 Which words do you click on?
<a href="games.html">Take the quiz</a> (a) Play games (b) href (c) Take the quiz (d) games.html - 37.🖼️ Does <img> need a closing tag? (a) Yes (b) No
- 38.🔢 In a basic web page file, which comes first: “<head>” or “</html>”? (a) </html> (b) <head>
- 39.🔠 Which tag is used for the main title on a page? (a) <h1> (b) <p> (c) <br> (d) <h6>
- 40.🔠 Which tag is the least important heading? (a) <p> (b) <h1> (c) <h6> (d) <h3>
Answer key
- Yes
- saves our .html files
- <img>
- <h2>
- answers page requests
- False
- <h2>
- False
- True
- line 1
- <a>
- About us
- on the browser tab
- an opening tag
- 2
- <title>
- 4
- src
- an opening tag
- starts a new line
- 1
- </h1>
- 11
- 4
- sends pages over the net
- </u>
- True
- a closing tag
- 2
- <h6>
- About us
- 3
- in the body
- shows line numbers
- 400
- Take the quiz
- No
- <head>
- <h1>
- <h6>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids