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.💬 How many paragraphs show on the page?
<p>Fun facts</p>
<p>Good morning!</p>
<p>The red kite</p>
<!-- <p>My pets</p> --> - 2.📋 Which list tag is an unordered list? (a) <ol> (b) <li> (c) <ul>
- 3.🏷️ Is <title> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 4.True or false: a code editor shows pages from the web. (a) False (b) True
-
5.🔗 Which words do you click on?
<a href="news.html">Maths fun</a> (a) news.html (b) href (c) Maths fun (d) Art corner - 6.🔠 Are headings shown in bold by default? (a) No (b) Yes
- 7.📄 Where does <meta charset="utf-8"> go: in the head or in the body? (a) in the head (b) in the body
- 8.📝 What does <p> make? (a) a link (b) a paragraph (c) a picture (d) a table
- 9.🔗 Which attribute holds the address of a link? (a) id (b) alt (c) href (d) src
- 10.🏷️ Is </body> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
-
11.🔗 Where does this link open?
<a href="about.html">School news</a> (a) in a new tab (b) in the same tab - 12.True or false: <title> goes in the body. (a) True (b) False
- 13.🏷️ Which is the closing tag for <u>? (a) <\u> (b) <u> (c) </u> (d) <u/>
- 14.🔗 Which tag makes a clickable link? (a) <link> (b) <p> (c) <a> (d) <img>
- 15.🌐 Which one sends pages over the net? (a) a code editor (b) a web browser (c) a web server
-
16.💬 Which text will NOT show on the page?
<p>I love mangoes.</p>
<!-- <p>Our school trip</p> -->
<p>My pets</p>
<p>Hello, world!</p> (a) My pets (b) I love mangoes. (c) Our school trip (d) Hello, world! - 17.True or false: a web server stores a website’s files. (a) True (b) False
- 18.Which of these is an empty tag? (a) <input> (b) <p> (c) <h1> (d) <title>
- 19.💬 Why do coders write comments? (a) to show pictures (b) to leave notes (c) to add colour (d) to make links
-
20.📋 Does this list show bullets or numbers?
<ul>
<li>Guava</li>
<li>Banana</li>
<li>Orange</li>
</ul> (a) bullets (b) numbers - 21.Which of these is true of a code editor? (a) stores a website’s files (b) colours code to help us (c) turns HTML into a page (d) shows pages from the web
- 22.🔗 What does HyperText mean? (a) secret text (b) text with links (c) very big text (d) text in colour
- 23.📝 Does <img> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
- 24.🔢 In a basic web page file, which comes first: “</body>” or “<html>”? (a) </body> (b) <html>
- 25.🔠 Which heading shows the SMALLEST text: <h1>, <h4>, <h2> or <h6>? (a) <h2> (b) <h1> (c) <h6> (d) <h4>
- 26.🖼️ Which attribute of <img> describes the picture? (a) width (b) src (c) alt (d) height
- 27.Which of these goes in the head? (a) <p> (b) <link rel="stylesheet"> (c) <table> (d) <h1>
- 28.🔠 Which tag is the least important heading? (a) <h6> (b) <p> (c) <h1> (d) <h3>
- 29.📄 Where does <title> go: in the head or in the body? (a) in the body (b) in the head
-
30.🔠 How many headings are in this code?
<h1>Rain today</h1>
<h2>I love mangoes.</h2>
<p>My pets</p> - 31.📝 What do we need to write HTML? (a) a printer (b) a microphone (c) a plain text editor (d) a paintbrush
- 32.📄 Can HTML on its own make links to pages? (a) Yes (b) No
-
33.🔗 Where does this link open?
<a href="games.html">Visit the site</a> (a) in a new tab (b) in the same tab -
34.🔗 Which address opens when you click this link?
<a href="quiz.html">Contact us</a> (a) Contact us (b) games.html (c) about.html (d) quiz.html - 35.Which of these is an opening tag? (a) </li> (b) </h1> (c) <p> (d) </body>
- 36.🔗 Which code links to about.html? (a) <a src="about.html"> (b) <a href="about.html"> (c) <a alt="about.html"> (d) <link about.html>
- 37.💬 Can anyone read your comments by viewing the page source? (a) Yes (b) No
- 38.True or false: <li> shows 1, 2, 3 numbers. (a) False (b) True
- 39.🌐 Which one shows pages from the web? (a) a code editor (b) a web browser (c) a web server
- 40.🔠 Which heading shows the BIGGEST text: <h4>, <h5>, <h1> or <h2>? (a) <h4> (b) <h1> (c) <h5> (d) <h2>
Answer key
- 3
- <ul>
- an opening tag
- False
- Maths fun
- Yes
- in the head
- a paragraph
- href
- a closing tag
- in the same tab
- False
- </u>
- <a>
- a web server
- Our school trip
- True
- <input>
- to leave notes
- bullets
- colours code to help us
- text with links
- an empty tag
- <html>
- <h6>
- alt
- <link rel="stylesheet">
- <h6>
- in the head
- 2
- a plain text editor
- Yes
- in the same tab
- quiz.html
- <p>
- <a href="about.html">
- Yes
- False
- a web browser
- <h1>
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids