← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 516 · 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 paragraphs show on the page?
    <p>Cricket is fun.</p>
    <!-- <p>Rain today</p> -->
    <p>Fun facts</p>
    <p>Hello, world!</p>
  2. 2.📋 Which list tag shows bullet points? (a) <ol> (b) <ul> (c) <li>
  3. 3.Which of these is true of a code editor? (a) sends pages over the net (b) answers page requests (c) is where we type code (d) has an address bar
  4. 4.True or false: HTML on its own can keep a high score. (a) True (b) False
  5. 5.🔍 One closing tag is missing. Which one?
    <b>I love mangoes.
    <p>My pets</p>
    <em>Rain today</em>
    (a) </b> (b) </p> (c) </strong> (d) </em>
  6. 6.🖼️ Which attribute of <img> describes the picture? (a) width (b) src (c) alt (d) height
  7. 7.💬 How many paragraphs show on the page?
    <p>My best friend</p>
    <!-- <p>The red kite</p> -->
    <!-- <p>Hello, world!</p> -->
  8. 8.🏷️ Which is the closing tag for <strong>? (a) <strong/> (b) </strong> (c) <strong> (d) <\strong>
  9. 9.🔗 Which words do you click on?
    <a href="maths.html">Play games</a>
    (a) maths.html (b) href (c) About us (d) Play games
  10. 10.📝 Does <p> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  11. 11.📄 Where does <p> go: in the head or in the body? (a) in the head (b) in the body
  12. 12.🏷️ Every HTML tag starts with which sign? (a) ( (b) { (c) [ (d) <
  13. 13.📝 You type 5 spaces between two words in a <p>. How does the browser show them? (a) as a dot (b) as 5 spaces (c) as a new line (d) as one space
  14. 14.True or false: <meta charset="utf-8"> goes in the head. (a) False (b) True
  15. 15.🏷️ Is <body> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  16. 16.📝 What does <br> do? (a) makes text bold (b) adds a picture (c) starts a new line (d) makes a list
  17. 17.📋 Which list tag is one item of a list? (a) <ol> (b) <ul> (c) <li>
  18. 18.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Space Facts</title>
    </head>
    <body>
      <h1>Easy snacks</h1>
      <p>Mars is red.</p>
    </body>
    </html>
    (a) index.html (b) Mars is red. (c) Easy snacks (d) Space Facts
  19. 19.🖼️ Which picture file does the browser load?
    <img src="tiger.jpg" alt="A tiger asleep" width="250">
    (a) map.png (b) tiger.jpg (c) A tiger asleep (d) kite.png
  20. 20.📝 On how many lines does the browser show this paragraph?
    <p>Sky is blue<br>Stars shine<br>Roses are red<br>Rivers flow</p>
  21. 21.🏷️ Which is the closing tag for <i>? (a) <\i> (b) </i> (c) <i/> (d) <i>
  22. 22.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Art Gallery</title>
    </head>
    <body>
      <h1>All about me</h1>
      <p>Thanks for visiting.</p>
    </body>
    </html>
    (a) Thanks for visiting. (b) Art Gallery (c) body (d) All about me
  23. 23.🔡 Are HTML tag names usually written in small letters? (a) No (b) Yes
  24. 24.🔗 Which tag makes a clickable link? (a) <link> (b) <a> (c) <img> (d) <p>
  25. 25.💬 Does the browser show comments on the page? (a) No (b) Yes
  26. 26.True or false: <link rel="stylesheet"> goes in the body. (a) False (b) True
  27. 27.💬 How does an HTML comment end? (a) // (b) >> (c) */ (d) -->
  28. 28.🔍 One closing tag is missing. Which one?
    <p>Fun facts
    <em>Rain today</em>
    <u>Hello, world!</u>
    (a) </em> (b) </p> (c) </u> (d) </b>
  29. 29.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>My Hobbies</title>
    </head>
    <body>
      <h1>Welcome!</h1>
      <p>I like to read.</p>
    </body>
    </html>
    (a) Welcome! (b) My Hobbies (c) I like to read. (d) index.html
  30. 30.🔗 Where does this link open?
    <a href="maths.html">School news</a>
    (a) in a new tab (b) in the same tab
  31. 31.True or false: <li> shows bullet points. (a) False (b) True
  32. 32.🔠 Which heading shows the SMALLEST text: <h2>, <h3>, <h1> or <h4>? (a) <h3> (b) <h2> (c) <h4> (d) <h1>
  33. 33.📋 Which tag goes around each item of a list? (a) <ol> (b) <p> (c) <ul> (d) <li>
  34. 34.📝 On how many lines does the browser show this paragraph?
    <p>Stars shine<br>Kites fly high<br>Birds sing<br>Rivers flow<br>Sky is blue</p>
  35. 35.🏷️ Is </h1> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  36. 36.True or false: HTML on its own can run a game loop. (a) False (b) True
  37. 37.Which of these is true of a code editor? (a) opens web pages for us (b) stores a website’s files (c) shows pages from the web (d) saves our .html files
  38. 38.📋 How many items does this list show?
    <ul>
      <li>Mango</li>
      <li>Papaya</li>
      <li>Orange</li>
      <li>Jamun</li>
      <li>Grapes</li>
      <li>Litchi</li>
    </ul>
  39. 39.📄 Where does <h1> go: in the head or in the body? (a) in the body (b) in the head
  40. 40.Which of these is true of a web browser? (a) shows pages from the web (b) is where we type code (c) sends pages over the net (d) answers page requests

Answer key

  1. 3
  2. <ul>
  3. is where we type code
  4. False
  5. </b>
  6. alt
  7. 1
  8. </strong>
  9. Play games
  10. has a closing tag
  11. in the body
  12. <
  13. as one space
  14. True
  15. an opening tag
  16. starts a new line
  17. <li>
  18. Space Facts
  19. tiger.jpg
  20. 4
  21. </i>
  22. All about me
  23. Yes
  24. <a>
  25. No
  26. False
  27. -->
  28. </p>
  29. My Hobbies
  30. in the same tab
  31. False
  32. <h4>
  33. <li>
  34. 5
  35. a closing tag
  36. False
  37. saves our .html files
  38. 6
  39. in the body
  40. shows pages from the web

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