← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 18 · 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.🔗 What does HyperText mean? (a) text in colour (b) secret text (c) very big text (d) text with links
  2. 2.🔠 Which heading shows the BIGGEST text: <h4>, <h2>, <h1> or <h6>? (a) <h4> (b) <h6> (c) <h2> (d) <h1>
  3. 3.🔗 Where does this link open?
    <a href="games.html" target="_blank">Play games</a>
    (a) in the same tab (b) in a new tab
  4. 4.🔠 Which heading shows the SMALLEST text: <h2>, <h4>, <h3> or <h6>? (a) <h3> (b) <h6> (c) <h2> (d) <h4>
  5. 5.🏷️ Is <p> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  6. 6.📄 Where does <link rel="stylesheet"> go: in the head or in the body? (a) in the head (b) in the body
  7. 7.🔠 How many heading levels does HTML have? (a) 6 (b) 3 (c) 4 (d) 10
  8. 8.True or false: a web browser has an address bar. (a) True (b) False
  9. 9.🖼️ Which picture file does the browser load?
    <img src="kite.png" alt="A red kite" width="100">
    (a) cake.jpg (b) A red kite (c) map.png (d) kite.png
  10. 10.🧩 An opening tag + content + a closing tag together make an ___. (a) attribute (b) address (c) element (d) editor
  11. 11.🔡 Are HTML tag names usually written in small letters? (a) No (b) Yes
  12. 12.True or false: HTML on its own can add pictures to a page. (a) False (b) True
  13. 13.📋 Which list shows the steps of a recipe best? (a) <hr> (b) <br> (c) <ol> (d) <ul>
  14. 14.🔍 One closing tag is missing. Which one?
    <h2>Hello, world!
    <u>Cricket is fun.</u>
    <h1>My pets</h1>
    (a) </h2> (b) </strong> (c) </h1> (d) </u>
  15. 15.🔢 In a basic web page file, which comes first: “<html>” or “</head>”? (a) </head> (b) <html>
  16. 16.📝 On how many lines does the browser show this paragraph?
    <p>Rivers flow<br>Sky is blue<br>Roses are red<br>Kites fly high<br>Stars shine</p>
  17. 17.🔗 What does target="_blank" do to a link? (a) opens it in a new tab (b) makes it blank (c) hides the link (d) makes it bold
  18. 18.📝 What does <br> do? (a) makes text bold (b) makes a list (c) adds a picture (d) starts a new line
  19. 19.🔠 Which heading shows the BIGGEST text: <h6>, <h2>, <h3> or <h5>? (a) <h3> (b) <h5> (c) <h6> (d) <h2>
  20. 20.🏷️ Is </li> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  21. 21.🔠 Which heading shows the BIGGEST text: <h1>, <h3>, <h4> or <h2>? (a) <h3> (b) <h1> (c) <h4> (d) <h2>
  22. 22.🔍 Which line is missing its closing tag?
    line 1: <strong>Hello, world!</strong>
    line 2: <p>Rain today</p>
    line 3: <em>I love mangoes.
    (a) line 1 (b) line 2 (c) line 3
  23. 23.🔠 Which heading shows the BIGGEST text: <h4>, <h1>, <h3> or <h2>? (a) <h3> (b) <h1> (c) <h4> (d) <h2>
  24. 24.🔗 Which tag makes a clickable link? (a) <p> (b) <link> (c) <a> (d) <img>
  25. 25.🔗 Where does this link open?
    <a href="contact.html">About us</a>
    (a) in a new tab (b) in the same tab
  26. 26.🔠 Which heading shows the SMALLEST text: <h6>, <h4>, <h1> or <h3>? (a) <h3> (b) <h1> (c) <h4> (d) <h6>
  27. 27.🔢 In a basic web page file, which comes LAST? (a) <body> (b) <html> (c) </html> (d) </body>
  28. 28.🏷️ Which is the closing tag for <h3>? (a) <\h3> (b) </h3> (c) <h3/> (d) <h3>
  29. 29.True or false: in <img>, width sets how wide it is. (a) True (b) False
  30. 30.💬 Which text will NOT show on the page?
    <p>My pets</p>
    <p>I love mangoes.</p>
    <!-- <p>Fun facts</p> -->
    (a) Fun facts (b) My pets (c) I love mangoes.
  31. 31.🔗 Which address opens when you click this link?
    <a href="news.html">Art corner</a>
    (a) Art corner (b) quiz.html (c) games.html (d) news.html
  32. 32.📝 Does <h1> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  33. 33.🌐 Which one answers page requests? (a) a web browser (b) a code editor (c) a web server
  34. 34.📝 On how many lines does the browser show this paragraph?
    <p>Sky is blue<br>Roses are red<br>Kites fly high</p>
  35. 35.💬 Which text will NOT show on the page?
    <p>Rain today</p>
    <p>Hello, world!</p>
    <p>I love mangoes.</p>
    <!-- <p>The red kite</p> -->
    (a) Rain today (b) Hello, world! (c) I love mangoes. (d) The red kite
  36. 36.🔠 Which heading shows the BIGGEST text: <h6>, <h3>, <h5> or <h2>? (a) <h3> (b) <h5> (c) <h6> (d) <h2>
  37. 37.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Riya’s Recipes</title>
    </head>
    <body>
      <h1>Match report</h1>
      <p>Mars is red.</p>
    </body>
    </html>
    (a) Mars is red. (b) Riya’s Recipes (c) Match report (d) body
  38. 38.💬 How many paragraphs show on the page?
    <p>My best friend</p>
    <!-- <p>Rain today</p> -->
    <p>The red kite</p>
    <p>I love mangoes.</p>
    <!-- <p>Our school trip</p> -->
  39. 39.🖼️ Which picture file does the browser load?
    <img src="cake.jpg" alt="Birthday cake" width="300">
    (a) cake.jpg (b) dog.jpg (c) Birthday cake (d) moon.png
  40. 40.🔠 Which heading shows the SMALLEST text: <h6>, <h2>, <h3> or <h5>? (a) <h6> (b) <h2> (c) <h5> (d) <h3>

Answer key

  1. text with links
  2. <h1>
  3. in a new tab
  4. <h6>
  5. an opening tag
  6. in the head
  7. 6
  8. True
  9. kite.png
  10. element
  11. Yes
  12. True
  13. <ol>
  14. </h2>
  15. <html>
  16. 5
  17. opens it in a new tab
  18. starts a new line
  19. <h2>
  20. a closing tag
  21. <h1>
  22. line 3
  23. <h1>
  24. <a>
  25. in the same tab
  26. <h6>
  27. </html>
  28. </h3>
  29. True
  30. Fun facts
  31. news.html
  32. has a closing tag
  33. a web server
  34. 3
  35. The red kite
  36. <h2>
  37. Match report
  38. 3
  39. cake.jpg
  40. <h6>

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