← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 855 · 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.🔠 Which heading shows the SMALLEST text: <h2>, <h6>, <h4> or <h3>? (a) <h6> (b) <h2> (c) <h3> (d) <h4>
  2. 2.🔍 One closing tag is missing. Which one?
    <h1>My best friend
    <h3>Cricket is fun.</h3>
    <h2>My pets</h2>
    (a) </em> (b) </h1> (c) </h2> (d) </h3>
  3. 3.🔗 Which address opens when you click this link?
    <a href="contact.html">About us</a>
    (a) About us (b) contact.html (c) https://example.com (d) maths.html
  4. 4.📝 Does <h1> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  5. 5.🏷️ Which is the closing tag for <h3>? (a) </h3> (b) <h3> (c) <\h3> (d) <h3/>
  6. 6.🧩 An opening tag + content + a closing tag together make an ___. (a) editor (b) element (c) address (d) attribute
  7. 7.Which of these is true of a web server? (a) opens web pages for us (b) shows pages from the web (c) sends pages over the net (d) turns HTML into a page
  8. 8.🔤 In “HTML”, what do the letters HT stand for? (a) Home Text (b) Hot Tags (c) HyperText (d) High Tech
  9. 9.🔠 Which heading shows the SMALLEST text: <h1>, <h4>, <h3> or <h5>? (a) <h5> (b) <h1> (c) <h3> (d) <h4>
  10. 10.True or false: <title> goes in the head. (a) False (b) True
  11. 11.🖼️ Which attribute of <img> names the picture file? (a) alt (b) width (c) src (d) height
  12. 12.🖼️ Which picture file does the browser load?
    <img src="fort.jpg" alt="An old fort" width="50">
    (a) fort.jpg (b) An old fort (c) kite.png (d) tiger.jpg
  13. 13.📋 Which list tag lists steps in order? (a) <li> (b) <ol> (c) <ul>
  14. 14.🔗 Which words do you click on?
    <a href="games.html">Art corner</a>
    (a) School news (b) games.html (c) Art corner (d) href
  15. 15.🔠 Which heading shows the BIGGEST text: <h5>, <h4>, <h2> or <h1>? (a) <h5> (b) <h1> (c) <h2> (d) <h4>
  16. 16.🏷️ HTML marks up text using ___. (a) tags (b) wires (c) pixels (d) keys
  17. 17.🔠 Which heading shows the BIGGEST text: <h3>, <h6>, <h2> or <h4>? (a) <h6> (b) <h3> (c) <h4> (d) <h2>
  18. 18.💬 How many paragraphs show on the page?
    <!-- <p>The red kite</p> -->
    <p>Our school trip</p>
    <p>Cricket is fun.</p>
  19. 19.🔍 One closing tag is missing. Which one?
    <i>Cricket is fun.</i>
    <u>I love mangoes.</u>
    <h3>Our school trip
    (a) </u> (b) </h2> (c) </h3> (d) </i>
  20. 20.🔍 Which is the odd one out? (a) turns HTML into a page (b) shows pages from the web (c) opens web pages for us (d) stores a website’s files
  21. 21.📄 Can HTML on its own make links to pages? (a) No (b) Yes
  22. 22.📝 Does <hr> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  23. 23.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Cricket Club</title>
    </head>
    <body>
      <h1>Welcome!</h1>
      <p>We won by 5 runs.</p>
    </body>
    </html>
    (a) We won by 5 runs. (b) Cricket Club (c) body (d) Welcome!
  24. 24.🔍 One closing tag is missing. Which one?
    <p>Cricket is fun.</p>
    <em>My best friend</em>
    <i>Our school trip
    (a) </h1> (b) </em> (c) </p> (d) </i>
  25. 25.🔍 Which line is missing its closing tag?
    line 1: <i>I love mangoes.</i>
    line 2: <em>Hello, world!
    line 3: <u>The red kite</u>
    (a) line 1 (b) line 2 (c) line 3
  26. 26.🔗 Which words do you click on?
    <a href="games.html">Take the quiz</a>
    (a) games.html (b) href (c) Take the quiz (d) Play games
  27. 27.🌍 Which program shows a web page to us? (a) a calculator (b) a paint program (c) a web browser (d) a music player
  28. 28.🔠 Are headings shown in bold by default? (a) No (b) Yes
  29. 29.📋 Does this list show bullets or numbers?
    <ol>
      <li>Mango</li>
      <li>Banana</li>
    </ol>
    (a) bullets (b) numbers
  30. 30.🔠 Which heading shows the SMALLEST text: <h4>, <h3>, <h2> or <h5>? (a) <h5> (b) <h2> (c) <h3> (d) <h4>
  31. 31.True or false: <p> goes in the body. (a) True (b) False
  32. 32.🔤 In “HTML”, what does the L stand for? (a) Link (b) Laptop (c) Language (d) Line
  33. 33.📝 What does <br> do? (a) makes a list (b) makes text bold (c) starts a new line (d) adds a picture
  34. 34.🔠 How many headings are in this code?
    <h1>The red kite</h1>
    <h2>Hello, world!</h2>
    <h2>Good morning!</h2>
    <p>The red kite</p>
  35. 35.📄 Where does <h1> go: in the head or in the body? (a) in the body (b) in the head
  36. 36.🔠 Which heading shows the BIGGEST text: <h2>, <h5>, <h4> or <h6>? (a) <h4> (b) <h2> (c) <h5> (d) <h6>
  37. 37.📝 How many paragraphs does this code make?
    <p>My pets</p>
    <p>Fun facts</p>
    <p>My best friend</p>
    <p>My pets</p>
  38. 38.True or false: in <img>, src shows if the image fails. (a) True (b) False
  39. 39.💬 Which text will NOT show on the page?
    <p>Good morning!</p>
    <!-- <p>I love mangoes.</p> -->
    <p>Hello, world!</p>
    <p>My pets</p>
    (a) Hello, world! (b) Good morning! (c) I love mangoes. (d) My pets
  40. 40.📝 What does <p> make? (a) a paragraph (b) a picture (c) a table (d) a link

Answer key

  1. <h6>
  2. </h1>
  3. contact.html
  4. has a closing tag
  5. </h3>
  6. element
  7. sends pages over the net
  8. HyperText
  9. <h5>
  10. True
  11. src
  12. fort.jpg
  13. <ol>
  14. Art corner
  15. <h1>
  16. tags
  17. <h2>
  18. 2
  19. </h3>
  20. stores a website’s files
  21. Yes
  22. an empty tag
  23. Welcome!
  24. </i>
  25. line 2
  26. Take the quiz
  27. a web browser
  28. Yes
  29. numbers
  30. <h5>
  31. True
  32. Language
  33. starts a new line
  34. 3
  35. in the body
  36. <h2>
  37. 4
  38. False
  39. I love mangoes.
  40. a paragraph

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