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.🔗 Which words do you click on?
<a href="maths.html">Art corner</a> (a) maths.html (b) Art corner (c) School news (d) href -
2.📝 How many paragraphs does this code make?
<p>Fun facts</p>
<h2>Hello, world!</h2>
<p>Good morning!</p>
<h2>Hello, world!</h2> - 3.📄 Where does <table> go: in the head or in the body? (a) in the body (b) in the head
- 4.Which of these goes in the body? (a) <table> (b) <meta charset="utf-8"> (c) <link rel="stylesheet"> (d) <title>
- 5.🌐 Which one shows pages from the web? (a) a web server (b) a code editor (c) a web browser
-
6.🔍 One closing tag is missing. Which one?
<h3>Fun facts</h3>
<em>The red kite
<h2>Rain today</h2> (a) </h3> (b) </h2> (c) </p> (d) </em> -
7.📝 How many paragraphs does this code make?
<p>Cricket is fun.</p>
<p>My pets</p>
<h2>Rain today</h2> - 8.True or false: a web browser turns HTML into a page. (a) True (b) False
-
9.📋 Does this list show bullets or numbers?
<ol>
<li>Jamun</li>
<li>Guava</li>
<li>Litchi</li>
</ol> (a) bullets (b) numbers - 10.🏷️ Is </h1> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
- 11.📋 Which list shows the steps of a recipe best? (a) <ul> (b) <hr> (c) <ol> (d) <br>
- 12.🔠 Which heading shows the BIGGEST text: <h5>, <h6>, <h1> or <h2>? (a) <h6> (b) <h1> (c) <h2> (d) <h5>
- 13.🔠 Which heading shows the SMALLEST text: <h6>, <h1>, <h2> or <h4>? (a) <h6> (b) <h2> (c) <h1> (d) <h4>
- 14.Which of these is an opening tag? (a) </h1> (b) </p> (c) </body> (d) <b>
- 15.💬 How does an HTML comment start? (a) <!-- (b) // (c) /* (d) #
- 16.True or false: <h1> has a closing tag. (a) True (b) False
-
17.🔗 Which words do you click on?
<a href="quiz.html">Art corner</a> (a) href (b) Art corner (c) quiz.html (d) School news - 18.🏷️ Is </b> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 19.🔍 Which is the odd one out? (a) sends pages over the net (b) stores a website’s files (c) answers page requests (d) has an address bar
- 20.🔠 Which heading shows the SMALLEST text: <h5>, <h2>, <h4> or <h3>? (a) <h3> (b) <h5> (c) <h2> (d) <h4>
-
21.📋 How many items does this list show?
<ul>
<li>Mango</li>
<li>Papaya</li>
<li>Grapes</li>
<li>Guava</li>
<li>Banana</li>
<li>Litchi</li>
</ul> - 22.🏷️ Which is the closing tag for <h1>? (a) <h1/> (b) <h1> (c) </h1> (d) <\h1>
- 23.🔠 Are headings shown in bold by default? (a) Yes (b) No
- 24.🏷️ Is <b> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
- 25.🌐 Which one saves our .html files? (a) a code editor (b) a web browser (c) a web server
-
26.🔍 One closing tag is missing. Which one?
<h3>My best friend</h3>
<b>Hello, world!</b>
<small>I love mangoes. (a) </u> (b) </b> (c) </small> (d) </h3> -
27.💬 Which text will NOT show on the page?
<p>Our school trip</p>
<p>Hello, world!</p>
<!-- <p>Rain today</p> -->
<p>Cricket is fun.</p> (a) Cricket is fun. (b) Rain today (c) Our school trip (d) Hello, world! -
28.💬 Which text will NOT show on the page?
<!-- <p>I love mangoes.</p> -->
<p>My pets</p>
<p>Cricket is fun.</p> (a) My pets (b) I love mangoes. (c) Cricket is fun. - 29.📛 In <a href="x.html">, what is href? (a) an element name (b) a comment (c) a closing tag (d) an attribute
- 30.🔠 Which heading shows the SMALLEST text: <h3>, <h5>, <h1> or <h4>? (a) <h4> (b) <h5> (c) <h3> (d) <h1>
- 31.🔠 Which heading shows the BIGGEST text: <h3>, <h1>, <h5> or <h4>? (a) <h3> (b) <h4> (c) <h1> (d) <h5>
-
32.🔗 Which words do you click on?
<a href="games.html">Visit the site</a> (a) Maths fun (b) Visit the site (c) href (d) games.html -
33.🔗 Which address opens when you click this link?
<a href="quiz.html">Play games</a> (a) quiz.html (b) Play games (c) games.html (d) about.html - 34.🖼️ Does <img> need a closing tag? (a) Yes (b) No
- 35.Which of these is true of a web server? (a) colours code to help us (b) shows pages from the web (c) stores a website’s files (d) turns HTML into a page
- 36.💬 Why do coders write comments? (a) to show pictures (b) to leave notes (c) to make links (d) to add colour
- 37.📝 Does <h1> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
- 38.📝 Does <input> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
- 39.📄 Can HTML on its own add pictures to a page? (a) No (b) Yes
- 40.True or false: <input> is an empty tag. (a) True (b) False
Answer key
- Art corner
- 2
- in the body
- <table>
- a web browser
- </em>
- 2
- True
- numbers
- a closing tag
- <ol>
- <h1>
- <h6>
- <b>
- <!--
- True
- Art corner
- a closing tag
- has an address bar
- <h5>
- 6
- </h1>
- Yes
- an opening tag
- a code editor
- </small>
- Rain today
- I love mangoes.
- an attribute
- <h5>
- <h1>
- Visit the site
- quiz.html
- No
- stores a website’s files
- to leave notes
- has a closing tag
- an empty tag
- Yes
- True
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids