← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 16 · 40 questions
TalentJR

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. 1.🖼️ Which tag puts a picture on a page? (a) <a> (b) <p> (c) <img> (d) <pic>
  2. 2.Which of these is true of a web server? (a) is where we type code (b) sends pages over the net (c) has an address bar (d) turns HTML into a page
  3. 3.💬 Which text will NOT show on the page?
    <p>Fun facts</p>
    <p>I love mangoes.</p>
    <!-- <p>Our school trip</p> -->
    (a) I love mangoes. (b) Fun facts (c) Our school trip
  4. 4.🖼️ How many pixels wide is the picture drawn?
    <img src="dog.jpg" alt="A happy dog" width="400">
  5. 5.🔍 Which is the odd one out? (a) shows pages from the web (b) colours code to help us (c) has an address bar (d) turns HTML into a page
  6. 6.🔠 Which heading shows the SMALLEST text: <h5>, <h3>, <h1> or <h6>? (a) <h1> (b) <h6> (c) <h3> (d) <h5>
  7. 7.📋 Which list suits a shopping list in any order? (a) <br> (b) <ol> (c) <ul> (d) <hr>
  8. 8.🏷️ Is </title> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  9. 9.🌐 Which one answers page requests? (a) a code editor (b) a web server (c) a web browser
  10. 10.🔠 Which heading shows the BIGGEST text: <h6>, <h2>, <h1> or <h4>? (a) <h4> (b) <h2> (c) <h1> (d) <h6>
  11. 11.🔍 One closing tag is missing. Which one?
    <u>Cricket is fun.</u>
    <i>Fun facts
    <b>I love mangoes.</b>
    (a) </i> (b) </strong> (c) </b> (d) </u>
  12. 12.🔠 Which heading shows the BIGGEST text: <h6>, <h4>, <h2> or <h3>? (a) <h4> (b) <h6> (c) <h3> (d) <h2>
  13. 13.True or false: <ul> is one item of a list. (a) True (b) False
  14. 14.🔤 In “HTML”, what do the letters HT stand for? (a) High Tech (b) Home Text (c) Hot Tags (d) HyperText
  15. 15.Which of these is an opening tag? (a) </li> (b) <b> (c) </b> (d) </p>
  16. 16.🔠 Which heading shows the SMALLEST text: <h6>, <h1>, <h5> or <h2>? (a) <h1> (b) <h6> (c) <h2> (d) <h5>
  17. 17.🔢 In a basic web page file, which comes LAST? (a) <html> (b) <head> (c) </head> (d) </html>
  18. 18.🔍 Which is the odd one out? (a) turns HTML into a page (b) is where we type code (c) shows line numbers (d) colours code to help us
  19. 19.🔗 Where does this link open?
    <a href="quiz.html" target="_blank">Art corner</a>
    (a) in the same tab (b) in a new tab
  20. 20.📝 Does <li> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  21. 21.🔠 Which heading shows the SMALLEST text: <h4>, <h1>, <h6> or <h5>? (a) <h4> (b) <h1> (c) <h5> (d) <h6>
  22. 22.🏷️ Which is the closing tag for <strong>? (a) <\strong> (b) <strong> (c) <strong/> (d) </strong>
  23. 23.🔠 How many heading levels does HTML have? (a) 10 (b) 3 (c) 4 (d) 6
  24. 24.🖼️ How many pixels wide is the picture drawn?
    <img src="tiger.jpg" alt="A tiger asleep" width="200">
  25. 25.🔍 Which line is missing its closing tag?
    line 1: <i>The red kite</i>
    line 2: <h1>Our school trip</h1>
    line 3: <p>My best friend
    (a) line 3 (b) line 1 (c) line 2
  26. 26.🏷️ Every HTML tag starts with which sign? (a) < (b) [ (c) ( (d) {
  27. 27.🔗 Where does this link open?
    <a href="art.html" target="_blank">School news</a>
    (a) in a new tab (b) in the same tab
  28. 28.🔍 Which line is missing its closing tag?
    line 1: <u>I love mangoes.</u>
    line 2: <p>My pets</p>
    line 3: <b>Fun facts
    (a) line 1 (b) line 3 (c) line 2
  29. 29.📝 How many paragraphs does this code make?
    <p>Cricket is fun.</p>
    <h2>Our school trip</h2>
    <h2>Our school trip</h2>
    <h2>I love mangoes.</h2>
    <p>Hello, world!</p>
  30. 30.📝 How many paragraphs does this code make?
    <p>Cricket is fun.</p>
    <h2>Fun facts</h2>
    <p>My pets</p>
  31. 31.🔍 Which is the odd one out? (a) sends pages over the net (b) stores a website’s files (c) is where we type code (d) hosts websites online
  32. 32.True or false: a code editor shows pages from the web. (a) False (b) True
  33. 33.📝 How many paragraphs does this code make?
    <p>Good morning!</p>
    <p>Good morning!</p>
    <p>The red kite</p>
    <p>Rain today</p>
    <h2>Rain today</h2>
  34. 34.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="tiger.jpg" alt="A tiger asleep" width="300">
    (a) A tiger asleep (b) width (c) tiger.jpg (d) A red kite
  35. 35.🔠 Which tag is the least important heading? (a) <h6> (b) <h3> (c) <h1> (d) <p>
  36. 36.🖼️ How many pixels wide is the picture drawn?
    <img src="map.png" alt="Map of India" width="150">
  37. 37.🔗 Which words do you click on?
    <a href="quiz.html">About us</a>
    (a) quiz.html (b) href (c) About us (d) Contact us
  38. 38.📋 Which tag goes around each item of a list? (a) <li> (b) <ol> (c) <ul> (d) <p>
  39. 39.📝 How many paragraphs does this code make?
    <p>Hello, world!</p>
    <p>My best friend</p>
    <p>Our school trip</p>
  40. 40.Which of these has a closing tag? (a) <hr> (b) <br> (c) <ul> (d) <meta>

Answer key

  1. <img>
  2. sends pages over the net
  3. Our school trip
  4. 400
  5. colours code to help us
  6. <h6>
  7. <ul>
  8. a closing tag
  9. a web server
  10. <h1>
  11. </i>
  12. <h2>
  13. False
  14. HyperText
  15. <b>
  16. <h6>
  17. </html>
  18. turns HTML into a page
  19. in a new tab
  20. has a closing tag
  21. <h6>
  22. </strong>
  23. 6
  24. 200
  25. line 3
  26. <
  27. in a new tab
  28. line 3
  29. 2
  30. 2
  31. is where we type code
  32. False
  33. 4
  34. A tiger asleep
  35. <h6>
  36. 150
  37. About us
  38. <li>
  39. 3
  40. <ul>

Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids