← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 147 · 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 heading levels does HTML have? (a) 4 (b) 10 (c) 6 (d) 3
  2. 2.🏷️ Is <title> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  3. 3.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
  4. 4.💬 Which text will NOT show on the page?
    <!-- <p>Our school trip</p> -->
    <p>Rain today</p>
    <p>I love mangoes.</p>
    <p>Fun facts</p>
    (a) Rain today (b) Our school trip (c) Fun facts (d) I love mangoes.
  5. 5.Which of these is true of a web browser? (a) shows line numbers (b) opens web pages for us (c) answers page requests (d) sends pages over the net
  6. 6.📋 Does this list show bullets or numbers?
    <ol>
      <li>Orange</li>
      <li>Mango</li>
      <li>Papaya</li>
    </ol>
    (a) numbers (b) bullets
  7. 7.🔢 In a basic web page file, which comes first: “<body>” or “</body>”? (a) </body> (b) <body>
  8. 8.🔠 Which heading shows the BIGGEST text: <h2>, <h3>, <h5> or <h4>? (a) <h2> (b) <h5> (c) <h4> (d) <h3>
  9. 9.🌐 Which one has an address bar? (a) a code editor (b) a web browser (c) a web server
  10. 10.🔠 Which heading shows the BIGGEST text: <h6>, <h1>, <h4> or <h2>? (a) <h2> (b) <h1> (c) <h4> (d) <h6>
  11. 11.📄 Where does <style> go: in the head or in the body? (a) in the body (b) in the head
  12. 12.📄 Where does <table> go: in the head or in the body? (a) in the head (b) in the body
  13. 13.🔠 Which heading shows the BIGGEST text: <h6>, <h4>, <h1> or <h2>? (a) <h4> (b) <h2> (c) <h6> (d) <h1>
  14. 14.📄 Where does <img> go: in the head or in the body? (a) in the head (b) in the body
  15. 15.💬 Which text will NOT show on the page?
    <p>Cricket is fun.</p>
    <!-- <p>Rain today</p> -->
    <p>Good morning!</p>
    (a) Cricket is fun. (b) Good morning! (c) Rain today
  16. 16.🖼️ Does <img> need a closing tag? (a) Yes (b) No
  17. 17.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Space Facts</title>
    </head>
    <body>
      <h1>Match report</h1>
      <p>I like to read.</p>
    </body>
    </html>
    (a) Match report (b) Space Facts (c) index.html (d) I like to read.
  18. 18.True or false: <style> goes in the body. (a) False (b) True
  19. 19.🏷️ Which is the closing tag for <p>? (a) <p> (b) <\p> (c) <p/> (d) </p>
  20. 20.🔗 Which words do you click on?
    <a href="games.html">Play games</a>
    (a) href (b) About us (c) games.html (d) Play games
  21. 21.🔤 In “HTML”, what does the L stand for? (a) Link (b) Line (c) Laptop (d) Language
  22. 22.🔠 How many headings are in this code?
    <h1>Hello, world!</h1>
    <h2>Rain today</h2>
    <h4>My best friend</h4>
    <p>The red kite</p>
  23. 23.🔠 Which heading shows the SMALLEST text: <h4>, <h3>, <h2> or <h1>? (a) <h1> (b) <h4> (c) <h2> (d) <h3>
  24. 24.🖼️ Which attribute of <img> sets how tall it is? (a) alt (b) height (c) src (d) width
  25. 25.🔤 In “HTML”, what do the letters HT stand for? (a) High Tech (b) Home Text (c) Hot Tags (d) HyperText
  26. 26.🔠 Are headings shown in bold by default? (a) Yes (b) No
  27. 27.🔗 Which words do you click on?
    <a href="quiz.html">Play games</a>
    (a) quiz.html (b) href (c) Play games (d) About us
  28. 28.🏷️ Every HTML tag starts with which sign? (a) { (b) ( (c) [ (d) <
  29. 29.True or false: HTML on its own can make links to pages. (a) False (b) True
  30. 30.True or false: a code editor saves our .html files. (a) True (b) False
  31. 31.🖼️ Which tag puts a picture on a page? (a) <img> (b) <p> (c) <a> (d) <pic>
  32. 32.True or false: a web browser saves our .html files. (a) False (b) True
  33. 33.Which of these has a closing tag? (a) <hr> (b) <title> (c) <img> (d) <br>
  34. 34.Which of these goes in the body? (a) <meta charset="utf-8"> (b) <h1> (c) <link rel="stylesheet"> (d) <title>
  35. 35.🔠 How many <h1> headings should a page usually have? (a) 6 (b) 3 (c) 1 (d) 10
  36. 36.💬 Which text will NOT show on the page?
    <p>Fun facts</p>
    <p>Cricket is fun.</p>
    <!-- <p>My best friend</p> -->
    <p>My pets</p>
    (a) Cricket is fun. (b) My pets (c) Fun facts (d) My best friend
  37. 37.🔗 What does target="_blank" do to a link? (a) makes it blank (b) hides the link (c) makes it bold (d) opens it in a new tab
  38. 38.🔠 Which heading shows the SMALLEST text: <h6>, <h5>, <h1> or <h2>? (a) <h5> (b) <h1> (c) <h2> (d) <h6>
  39. 39.📝 Does <p> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  40. 40.🌐 Which one is where we type code? (a) a code editor (b) a web browser (c) a web server

Answer key

  1. 6
  2. an opening tag
  3. Yes
  4. Our school trip
  5. opens web pages for us
  6. numbers
  7. <body>
  8. <h2>
  9. a web browser
  10. <h1>
  11. in the head
  12. in the body
  13. <h1>
  14. in the body
  15. Rain today
  16. No
  17. Space Facts
  18. False
  19. </p>
  20. Play games
  21. Language
  22. 3
  23. <h4>
  24. height
  25. HyperText
  26. Yes
  27. Play games
  28. <
  29. True
  30. True
  31. <img>
  32. False
  33. <title>
  34. <h1>
  35. 1
  36. My best friend
  37. opens it in a new tab
  38. <h6>
  39. has a closing tag
  40. a code editor

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