← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 469 · 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.True or false: a web browser saves our .html files. (a) False (b) True
  2. 2.📄 Can HTML on its own make tables? (a) Yes (b) No
  3. 3.🔠 Which heading shows the SMALLEST text: <h2>, <h6>, <h1> or <h3>? (a) <h2> (b) <h3> (c) <h1> (d) <h6>
  4. 4.🔠 Which tag is used for the main title on a page? (a) <p> (b) <h1> (c) <h6> (d) <br>
  5. 5.🔍 Which is the odd one out? (a) turns HTML into a page (b) shows pages from the web (c) has an address bar (d) saves our .html files
  6. 6.🔠 How many headings are in this code?
    <h1>I love mangoes.</h1>
    <p>Cricket is fun.</p>
    <h3>Cricket is fun.</h3>
  7. 7.🔠 How many headings are in this code?
    <h1>Cricket is fun.</h1>
    <p>Fun facts</p>
    <p>I love mangoes.</p>
  8. 8.📝 What does <br> do? (a) starts a new line (b) adds a picture (c) makes text bold (d) makes a list
  9. 9.🏷️ Is </li> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  10. 10.📝 On how many lines does the browser show this paragraph?
    <p>Birds sing<br>Sky is blue</p>
  11. 11.💬 How many paragraphs show on the page?
    <!-- <p>Cricket is fun.</p> -->
    <!-- <p>I love mangoes.</p> -->
    <!-- <p>Good morning!</p> -->
    <p>Rain today</p>
  12. 12.🔗 Which words do you click on?
    <a href="games.html">Take the quiz</a>
    (a) Play games (b) games.html (c) href (d) Take the quiz
  13. 13.🔠 Which heading shows the SMALLEST text: <h6>, <h4>, <h1> or <h3>? (a) <h6> (b) <h4> (c) <h3> (d) <h1>
  14. 14.Which of these is true of a code editor? (a) sends pages over the net (b) shows pages from the web (c) turns HTML into a page (d) saves our .html files
  15. 15.🔠 Which heading shows the SMALLEST text: <h6>, <h2>, <h4> or <h5>? (a) <h6> (b) <h4> (c) <h2> (d) <h5>
  16. 16.True or false: in <img>, alt shows if the image fails. (a) True (b) False
  17. 17.📄 Can HTML on its own show paragraphs? (a) No (b) Yes
  18. 18.📋 Does this list show bullets or numbers?
    <ul>
      <li>Mango</li>
      <li>Grapes</li>
    </ul>
    (a) bullets (b) numbers
  19. 19.📋 Which list tag is an ordered list? (a) <ol> (b) <ul> (c) <li>
  20. 20.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
  21. 21.🔠 How many heading levels does HTML have? (a) 10 (b) 6 (c) 4 (d) 3
  22. 22.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Riya’s Recipes</title>
    </head>
    <body>
      <h1>My drawings</h1>
      <p>I like to read.</p>
    </body>
    </html>
    (a) My drawings (b) Riya’s Recipes (c) I like to read. (d) index.html
  23. 23.📄 Where does <table> go: in the head or in the body? (a) in the head (b) in the body
  24. 24.📄 Where does <title> go: in the head or in the body? (a) in the head (b) in the body
  25. 25.📝 What does <hr> draw? (a) a table (b) a link (c) a picture (d) a line across the page
  26. 26.🔍 Which is the odd one out? (a) has an address bar (b) hosts websites online (c) opens web pages for us (d) shows pages from the web
  27. 27.📋 Which list shows the steps of a recipe best? (a) <hr> (b) <br> (c) <ol> (d) <ul>
  28. 28.🏷️ Is <body> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  29. 29.🔗 Which words do you click on?
    <a href="about.html">School news</a>
    (a) School news (b) Take the quiz (c) href (d) about.html
  30. 30.🔠 Which heading shows the SMALLEST text: <h2>, <h3>, <h1> or <h5>? (a) <h2> (b) <h5> (c) <h1> (d) <h3>
  31. 31.📄 Where does <h1> go: in the head or in the body? (a) in the head (b) in the body
  32. 32.🖼️ Which picture file does the browser load?
    <img src="bus.jpg" alt="Our school bus" width="300">
    (a) bus.jpg (b) fort.jpg (c) Our school bus (d) tiger.jpg
  33. 33.📋 What number does the browser show next to “Litchi”?
    <ol>
      <li>Grapes</li>
      <li>Litchi</li>
      <li>Guava</li>
    </ol>
  34. 34.🏷️ Every HTML tag starts with which sign? (a) { (b) ( (c) [ (d) <
  35. 35.🔍 One closing tag is missing. Which one?
    <small>Rain today
    <i>Cricket is fun.</i>
    <h1>My best friend</h1>
    (a) </p> (b) </h1> (c) </small> (d) </i>
  36. 36.💬 How many paragraphs show on the page?
    <!-- <p>The red kite</p> -->
    <!-- <p>Rain today</p> -->
    <p>Fun facts</p>
    <p>I love mangoes.</p>
  37. 37.🔠 How many headings are in this code?
    <h1>Hello, world!</h1>
    <p>Cricket is fun.</p>
    <p>My pets</p>
  38. 38.🌐 Which one sends pages over the net? (a) a web browser (b) a code editor (c) a web server
  39. 39.📝 How many paragraphs does this code make?
    <p>The red kite</p>
    <h2>Fun facts</h2>
    <h2>Fun facts</h2>
  40. 40.📝 Does <ul> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag

Answer key

  1. False
  2. Yes
  3. <h6>
  4. <h1>
  5. saves our .html files
  6. 2
  7. 1
  8. starts a new line
  9. a closing tag
  10. 2
  11. 1
  12. Take the quiz
  13. <h6>
  14. saves our .html files
  15. <h6>
  16. True
  17. Yes
  18. bullets
  19. <ol>
  20. Yes
  21. 6
  22. Riya’s Recipes
  23. in the body
  24. in the head
  25. a line across the page
  26. hosts websites online
  27. <ol>
  28. an opening tag
  29. School news
  30. <h5>
  31. in the body
  32. bus.jpg
  33. 2
  34. <
  35. </small>
  36. 2
  37. 1
  38. a web server
  39. 1
  40. has a closing tag

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