← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 311 · 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) 3 (b) 6 (c) 4 (d) 10
  2. 2.🔗 Which address opens when you click this link?
    <a href="art.html">Play games</a>
    (a) quiz.html (b) Play games (c) art.html (d) news.html
  3. 3.📄 Where does the text of <title> appear? (a) at the bottom (b) on the browser tab (c) in a big heading (d) nowhere
  4. 4.True or false: <li> is an unordered list. (a) False (b) True
  5. 5.🔠 Which tag is the least important heading? (a) <h1> (b) <h3> (c) <h6> (d) <p>
  6. 6.🖼️ Which picture file does the browser load?
    <img src="tiger.jpg" alt="A tiger asleep" width="350">
    (a) A tiger asleep (b) tiger.jpg (c) kite.png (d) map.png
  7. 7.🔗 Which address opens when you click this link?
    <a href="maths.html">Visit the site</a>
    (a) Visit the site (b) art.html (c) maths.html (d) news.html
  8. 8.📄 Can HTML on its own add up two numbers? (a) Yes (b) No
  9. 9.Which of these is an empty tag? (a) <title> (b) <ul> (c) <li> (d) <meta>
  10. 10.Which of these is true of a code editor? (a) shows pages from the web (b) turns HTML into a page (c) stores a website’s files (d) saves our .html files
  11. 11.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Riya’s Recipes</title>
    </head>
    <body>
      <h1>Match report</h1>
      <p>Here is my best one.</p>
    </body>
    </html>
    (a) Match report (b) Here is my best one. (c) Riya’s Recipes (d) index.html
  12. 12.📋 What number does the browser show next to “Papaya”?
    <ol>
      <li>Jamun</li>
      <li>Grapes</li>
      <li>Papaya</li>
      <li>Banana</li>
      <li>Guava</li>
    </ol>
  13. 13.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Class 7 Blog</title>
    </head>
    <body>
      <h1>Welcome!</h1>
      <p>Thanks for visiting.</p>
    </body>
    </html>
    (a) Class 7 Blog (b) Welcome! (c) body (d) Thanks for visiting.
  14. 14.🔍 One closing tag is missing. Which one?
    <h1>My pets
    <b>I love mangoes.</b>
    <u>Our school trip</u>
    (a) </h1> (b) </u> (c) </b> (d) </h2>
  15. 15.🔗 Which words do you click on?
    <a href="maths.html">About us</a>
    (a) href (b) maths.html (c) Contact us (d) About us
  16. 16.Which of these goes in the body? (a) <meta charset="utf-8"> (b) <title> (c) <link rel="stylesheet"> (d) <a>
  17. 17.🔗 What does HyperText mean? (a) secret text (b) text in colour (c) very big text (d) text with links
  18. 18.📝 What do we need to write HTML? (a) a plain text editor (b) a microphone (c) a paintbrush (d) a printer
  19. 19.🔍 Which line is missing its closing tag?
    line 1: <small>Cricket is fun.</small>
    line 2: <h3>Good morning!
    line 3: <strong>I love mangoes.</strong>
    (a) line 1 (b) line 2 (c) line 3
  20. 20.📋 Which list tag is an unordered list? (a) <ol> (b) <ul> (c) <li>
  21. 21.Which of these has a closing tag? (a) <input> (b) <hr> (c) <img> (d) <title>
  22. 22.True or false: <p> is an empty tag. (a) True (b) False
  23. 23.💬 Which text will NOT show on the page?
    <p>Our school trip</p>
    <p>Hello, world!</p>
    <!-- <p>My pets</p> -->
    <p>Fun facts</p>
    (a) Fun facts (b) My pets (c) Our school trip (d) Hello, world!
  24. 24.🔗 Which tag makes a clickable link? (a) <img> (b) <p> (c) <a> (d) <link>
  25. 25.True or false: in <img>, width is read by screen readers. (a) False (b) True
  26. 26.True or false: in <img>, src names the picture file. (a) True (b) False
  27. 27.🧩 An opening tag + content + a closing tag together make an ___. (a) address (b) editor (c) attribute (d) element
  28. 28.📋 What number does the browser show next to “Banana”?
    <ol start="3">
      <li>Papaya</li>
      <li>Jamun</li>
      <li>Banana</li>
    </ol>
  29. 29.🔠 Which heading shows the BIGGEST text: <h4>, <h2>, <h6> or <h1>? (a) <h2> (b) <h4> (c) <h1> (d) <h6>
  30. 30.True or false: <meta> is an empty tag. (a) True (b) False
  31. 31.🖼️ Which attribute of <img> tells which image to load? (a) height (b) src (c) width (d) alt
  32. 32.🌐 Which one sends pages over the net? (a) a code editor (b) a web browser (c) a web server
  33. 33.💬 How many paragraphs show on the page?
    <!-- <p>I love mangoes.</p> -->
    <p>My pets</p>
    <p>Cricket is fun.</p>
    <p>Good morning!</p>
  34. 34.🔠 Which heading shows the BIGGEST text: <h2>, <h6>, <h5> or <h1>? (a) <h5> (b) <h1> (c) <h2> (d) <h6>
  35. 35.📋 Does this list show bullets or numbers?
    <ul>
      <li>Grapes</li>
      <li>Mango</li>
      <li>Papaya</li>
    </ul>
    (a) bullets (b) numbers
  36. 36.Which of these is true of a web server? (a) sends pages over the net (b) opens web pages for us (c) turns HTML into a page (d) shows pages from the web
  37. 37.📝 On how many lines does the browser show this paragraph?
    <p>Stars shine<br>Birds sing</p>
  38. 38.True or false: <ul> is an unordered list. (a) True (b) False
  39. 39.🔢 In a basic web page file, which comes LAST? (a) </html> (b) <head> (c) </head> (d) <!DOCTYPE html>
  40. 40.True or false: a web browser hosts websites online. (a) False (b) True

Answer key

  1. 6
  2. art.html
  3. on the browser tab
  4. False
  5. <h6>
  6. tiger.jpg
  7. maths.html
  8. No
  9. <meta>
  10. saves our .html files
  11. Riya’s Recipes
  12. 3
  13. Welcome!
  14. </h1>
  15. About us
  16. <a>
  17. text with links
  18. a plain text editor
  19. line 2
  20. <ul>
  21. <title>
  22. False
  23. My pets
  24. <a>
  25. False
  26. True
  27. element
  28. 5
  29. <h1>
  30. True
  31. src
  32. a web server
  33. 3
  34. <h1>
  35. bullets
  36. sends pages over the net
  37. 2
  38. True
  39. </html>
  40. False

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