← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 935 · 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 number does the browser show next to “Banana”?
    <ol>
      <li>Papaya</li>
      <li>Guava</li>
      <li>Litchi</li>
      <li>Banana</li>
      <li>Mango</li>
      <li>Grapes</li>
    </ol>
  2. 2.🔠 How many headings are in this code?
    <h1>The red kite</h1>
    <h3>Our school trip</h3>
    <h4>Fun facts</h4>
  3. 3.📝 On how many lines does the browser show this paragraph?
    <p>Rivers flow<br>Roses are red<br>Sky is blue<br>Kites fly high</p>
  4. 4.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
  5. 5.📋 Which list shows the steps of a recipe best? (a) <br> (b) <hr> (c) <ul> (d) <ol>
  6. 6.🔢 In a basic web page file, which comes first: “<html>” or “</body>”? (a) </body> (b) <html>
  7. 7.📄 Which part holds everything you see on the page? (a) the head (b) the title (c) the doctype (d) the body
  8. 8.🔗 Which words do you click on?
    <a href="games.html">Play games</a>
    (a) games.html (b) About us (c) href (d) Play games
  9. 9.🔗 Where does this link open?
    <a href="art.html">Play games</a>
    (a) in a new tab (b) in the same tab
  10. 10.🔗 Which address opens when you click this link?
    <a href="maths.html">About us</a>
    (a) maths.html (b) art.html (c) About us (d) news.html
  11. 11.🔗 Which address opens when you click this link?
    <a href="quiz.html">Art corner</a>
    (a) games.html (b) quiz.html (c) about.html (d) Art corner
  12. 12.📄 Where does <table> go: in the head or in the body? (a) in the head (b) in the body
  13. 13.True or false: <ul> lists steps in order. (a) True (b) False
  14. 14.🔠 Are headings shown in bold by default? (a) No (b) Yes
  15. 15.🔍 Which line is missing its closing tag?
    line 1: <strong>The red kite</strong>
    line 2: <u>Our school trip</u>
    line 3: <h3>Rain today
    (a) line 3 (b) line 1 (c) line 2
  16. 16.🔠 Which heading shows the BIGGEST text: <h6>, <h4>, <h3> or <h5>? (a) <h3> (b) <h6> (c) <h4> (d) <h5>
  17. 17.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Class 7 Blog</title>
    </head>
    <body>
      <h1>Welcome!</h1>
      <p>Try this poha.</p>
    </body>
    </html>
    (a) index.html (b) Welcome! (c) Class 7 Blog (d) Try this poha.
  18. 18.Which of these has a closing tag? (a) <input> (b) <br> (c) <img> (d) <title>
  19. 19.🏷️ Which is the closing tag for <small>? (a) <small/> (b) </small> (c) <small> (d) <\small>
  20. 20.True or false: HTML on its own can make a form. (a) True (b) False
  21. 21.🔢 In a basic web page file, which comes LAST? (a) </head> (b) <body> (c) <!DOCTYPE html> (d) </html>
  22. 22.True or false: <ul> is one item of a list. (a) True (b) False
  23. 23.💬 Which text will NOT show on the page?
    <p>Fun facts</p>
    <!-- <p>Cricket is fun.</p> -->
    <p>My best friend</p>
    (a) Fun facts (b) My best friend (c) Cricket is fun.
  24. 24.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>My Hobbies</title>
    </head>
    <body>
      <h1>Easy snacks</h1>
      <p>We won by 5 runs.</p>
    </body>
    </html>
    (a) My Hobbies (b) Easy snacks (c) We won by 5 runs. (d) index.html
  25. 25.🔗 Which words do you click on?
    <a href="about.html">Visit the site</a>
    (a) about.html (b) href (c) Maths fun (d) Visit the site
  26. 26.🔍 Which line is missing its closing tag?
    line 1: <em>I love mangoes.</em>
    line 2: <h2>Cricket is fun.
    line 3: <i>Hello, world!</i>
    (a) line 1 (b) line 3 (c) line 2
  27. 27.🔠 Which heading shows the SMALLEST text: <h3>, <h6>, <h4> or <h5>? (a) <h4> (b) <h5> (c) <h6> (d) <h3>
  28. 28.🔗 Where does this link open?
    <a href="quiz.html">Art corner</a>
    (a) in a new tab (b) in the same tab
  29. 29.💬 Why do coders write comments? (a) to leave notes (b) to make links (c) to show pictures (d) to add colour
  30. 30.🔠 Which heading shows the SMALLEST text: <h2>, <h1>, <h3> or <h4>? (a) <h1> (b) <h4> (c) <h3> (d) <h2>
  31. 31.True or false: HTML on its own can make bullet lists. (a) False (b) True
  32. 32.🔍 Which is the odd one out? (a) hosts websites online (b) answers page requests (c) shows pages from the web (d) stores a website’s files
  33. 33.💬 How many paragraphs show on the page?
    <!-- <p>My pets</p> -->
    <!-- <p>Good morning!</p> -->
    <!-- <p>My best friend</p> -->
    <p>Cricket is fun.</p>
    <!-- <p>The red kite</p> -->
  34. 34.🔗 Which words do you click on?
    <a href="about.html">About us</a>
    (a) about.html (b) Contact us (c) href (d) About us
  35. 35.🔠 How many headings are in this code?
    <h1>My pets</h1>
    <p>My best friend</p>
    <p>I love mangoes.</p>
  36. 36.🔠 Which heading shows the SMALLEST text: <h3>, <h5>, <h1> or <h4>? (a) <h1> (b) <h5> (c) <h4> (d) <h3>
  37. 37.Which of these is an empty tag? (a) <title> (b) <b> (c) <h1> (d) <hr>
  38. 38.🖼️ How many pixels wide is the picture drawn?
    <img src="map.png" alt="Map of India" width="250">
  39. 39.🔠 Which heading shows the BIGGEST text: <h5>, <h4>, <h2> or <h6>? (a) <h6> (b) <h4> (c) <h5> (d) <h2>
  40. 40.🔤 In “HTML”, what does the M stand for? (a) Modern (b) Machine (c) Markup (d) Mouse

Answer key

  1. 4
  2. 3
  3. 4
  4. Yes
  5. <ol>
  6. <html>
  7. the body
  8. Play games
  9. in the same tab
  10. maths.html
  11. quiz.html
  12. in the body
  13. False
  14. Yes
  15. line 3
  16. <h3>
  17. Class 7 Blog
  18. <title>
  19. </small>
  20. True
  21. </html>
  22. False
  23. Cricket is fun.
  24. My Hobbies
  25. Visit the site
  26. line 2
  27. <h6>
  28. in the same tab
  29. to leave notes
  30. <h4>
  31. True
  32. shows pages from the web
  33. 1
  34. About us
  35. 1
  36. <h5>
  37. <hr>
  38. 250
  39. <h2>
  40. Markup

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