← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 362 · 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.🔠 How many headings are in this code?
    <h1>Hello, world!</h1>
    <h3>Cricket is fun.</h3>
    <p>Good morning!</p>
    <h2>Cricket is fun.</h2>
    <p>The red kite</p>
  2. 2.🔤 In “HTML”, what does the L stand for? (a) Link (b) Language (c) Laptop (d) Line
  3. 3.🔠 Which heading shows the BIGGEST text: <h2>, <h3>, <h4> or <h1>? (a) <h1> (b) <h2> (c) <h3> (d) <h4>
  4. 4.🔍 One closing tag is missing. Which one?
    <h1>I love mangoes.</h1>
    <b>Cricket is fun.</b>
    <small>My pets
    (a) </b> (b) </strong> (c) </h1> (d) </small>
  5. 5.🔗 Which address opens when you click this link?
    <a href="contact.html">School news</a>
    (a) https://example.com (b) maths.html (c) School news (d) contact.html
  6. 6.Which of these is an empty tag? (a) <title> (b) <br> (c) <li> (d) <h1>
  7. 7.📄 Where does the text of <title> appear? (a) nowhere (b) at the bottom (c) in a big heading (d) on the browser tab
  8. 8.🔗 Where does this link open?
    <a href="maths.html">Contact us</a>
    (a) in the same tab (b) in a new tab
  9. 9.🔍 Which line is missing its closing tag?
    line 1: <u>Hello, world!</u>
    line 2: <i>Cricket is fun.
    line 3: <h1>Rain today</h1>
    (a) line 3 (b) line 1 (c) line 2
  10. 10.🔠 Which heading shows the BIGGEST text: <h3>, <h2>, <h1> or <h6>? (a) <h2> (b) <h1> (c) <h6> (d) <h3>
  11. 11.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Cricket Club</title>
    </head>
    <body>
      <h1>Easy snacks</h1>
      <p>I like to read.</p>
    </body>
    </html>
    (a) index.html (b) I like to read. (c) Easy snacks (d) Cricket Club
  12. 12.💬 Which text will NOT show on the page?
    <p>My pets</p>
    <!-- <p>Fun facts</p> -->
    <p>My best friend</p>
    (a) Fun facts (b) My pets (c) My best friend
  13. 13.True or false: a web server has an address bar. (a) True (b) False
  14. 14.🏷️ Is <p> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  15. 15.📝 What does <br> do? (a) adds a picture (b) starts a new line (c) makes text bold (d) makes a list
  16. 16.🖼️ How many pixels wide is the picture drawn?
    <img src="tiger.jpg" alt="A tiger asleep" width="200">
  17. 17.Which of these is true of a web browser? (a) shows line numbers (b) shows pages from the web (c) saves our .html files (d) is where we type code
  18. 18.📄 Where does <a> go: in the head or in the body? (a) in the body (b) in the head
  19. 19.🏷️ Is <b> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  20. 20.📄 Can HTML on its own make a form? (a) No (b) Yes
  21. 21.🏷️ Is </body> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  22. 22.True or false: <link rel="stylesheet"> goes in the head. (a) True (b) False
  23. 23.True or false: HTML on its own can make links to pages. (a) True (b) False
  24. 24.Which of these is a closing tag? (a) <b> (b) <h1> (c) </h1> (d) <p>
  25. 25.💬 How many paragraphs show on the page?
    <p>The red kite</p>
    <!-- <p>Cricket is fun.</p> -->
    <p>I love mangoes.</p>
    <p>Rain today</p>
  26. 26.🌐 Which one saves our .html files? (a) a web browser (b) a code editor (c) a web server
  27. 27.📋 Which list tag is an unordered list? (a) <ol> (b) <ul> (c) <li>
  28. 28.📋 Which list tag lists things in any order? (a) <li> (b) <ul> (c) <ol>
  29. 29.🏷️ Is </li> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  30. 30.📋 How many items does this list show?
    <ol>
      <li>Litchi</li>
      <li>Guava</li>
    </ol>
  31. 31.📝 On how many lines does the browser show this paragraph?
    <p>Sky is blue<br>Stars shine<br>Roses are red</p>
  32. 32.🔗 Which words do you click on?
    <a href="contact.html">Play games</a>
    (a) href (b) Play games (c) contact.html (d) About us
  33. 33.🔗 Which address opens when you click this link?
    <a href="news.html">School news</a>
    (a) School news (b) games.html (c) news.html (d) quiz.html
  34. 34.True or false: <input> is an empty tag. (a) False (b) True
  35. 35.🔗 What does target="_blank" do to a link? (a) hides the link (b) makes it blank (c) makes it bold (d) opens it in a new tab
  36. 36.💬 How many paragraphs show on the page?
    <!-- <p>Fun facts</p> -->
    <!-- <p>I love mangoes.</p> -->
    <p>My best friend</p>
  37. 37.True or false: <li> is one item of a list. (a) False (b) True
  38. 38.🔠 Which heading shows the SMALLEST text: <h3>, <h4>, <h5> or <h2>? (a) <h3> (b) <h4> (c) <h2> (d) <h5>
  39. 39.💬 Which text will NOT show on the page?
    <!-- <p>My pets</p> -->
    <p>I love mangoes.</p>
    <p>My best friend</p>
    (a) I love mangoes. (b) My best friend (c) My pets
  40. 40.📛 In <a href="x.html">, what is href? (a) a closing tag (b) an attribute (c) an element name (d) a comment

Answer key

  1. 3
  2. Language
  3. <h1>
  4. </small>
  5. contact.html
  6. <br>
  7. on the browser tab
  8. in the same tab
  9. line 2
  10. <h1>
  11. Cricket Club
  12. Fun facts
  13. False
  14. an opening tag
  15. starts a new line
  16. 200
  17. shows pages from the web
  18. in the body
  19. an opening tag
  20. Yes
  21. a closing tag
  22. True
  23. True
  24. </h1>
  25. 3
  26. a code editor
  27. <ul>
  28. <ul>
  29. a closing tag
  30. 2
  31. 3
  32. Play games
  33. news.html
  34. True
  35. opens it in a new tab
  36. 1
  37. True
  38. <h5>
  39. My pets
  40. an attribute

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