← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 433 · 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: <ol> is an unordered list. (a) False (b) True
  2. 2.Which of these is an opening tag? (a) </body> (b) </title> (c) <title> (d) </p>
  3. 3.🔍 One closing tag is missing. Which one?
    <h1>My best friend</h1>
    <strong>Fun facts</strong>
    <h3>I love mangoes.
    (a) </h2> (b) </h1> (c) </strong> (d) </h3>
  4. 4.📋 How many items does this list show?
    <ol>
      <li>Litchi</li>
      <li>Mango</li>
      <li>Jamun</li>
      <li>Grapes</li>
    </ol>
  5. 5.🌐 Which one has an address bar? (a) a web server (b) a web browser (c) a code editor
  6. 6.Which of these is true of a web browser? (a) sends pages over the net (b) opens web pages for us (c) is where we type code (d) hosts websites online
  7. 7.🔗 Which words do you click on?
    <a href="about.html">About us</a>
    (a) about.html (b) Contact us (c) About us (d) href
  8. 8.🔡 Are HTML tag names usually written in small letters? (a) Yes (b) No
  9. 9.True or false: <hr> has a closing tag. (a) False (b) True
  10. 10.🔠 Which heading shows the SMALLEST text: <h4>, <h6>, <h3> or <h1>? (a) <h3> (b) <h1> (c) <h4> (d) <h6>
  11. 11.🔗 Which words do you click on?
    <a href="art.html">School news</a>
    (a) art.html (b) Take the quiz (c) href (d) School news
  12. 12.🔗 Which tag makes a clickable link? (a) <img> (b) <link> (c) <a> (d) <p>
  13. 13.🏷️ Which is the closing tag for <b>? (a) </b> (b) <\b> (c) <b> (d) <b/>
  14. 14.Which of these has a closing tag? (a) <meta> (b) <h1> (c) <hr> (d) <input>
  15. 15.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="cake.jpg" alt="Birthday cake" width="400">
    (a) width (b) A happy dog (c) Birthday cake (d) cake.jpg
  16. 16.💬 How many paragraphs show on the page?
    <!-- <p>My best friend</p> -->
    <p>Good morning!</p>
    <p>My pets</p>
    <p>Hello, world!</p>
    <!-- <p>Cricket is fun.</p> -->
  17. 17.📋 Which list tag shows bullet points? (a) <ol> (b) <ul> (c) <li>
  18. 18.🔠 How many headings are in this code?
    <h1>Hello, world!</h1>
    <h3>Rain today</h3>
    <p>Cricket is fun.</p>
  19. 19.🔠 How many headings are in this code?
    <h1>I love mangoes.</h1>
    <p>I love mangoes.</p>
    <p>I love mangoes.</p>
    <h4>I love mangoes.</h4>
    <p>Rain today</p>
  20. 20.💬 How many paragraphs show on the page?
    <p>Our school trip</p>
    <p>My pets</p>
    <!-- <p>Hello, world!</p> -->
    <p>The red kite</p>
    <p>I love mangoes.</p>
  21. 21.📄 Can HTML on its own make bullet lists? (a) Yes (b) No
  22. 22.🏷️ Which is the closing tag for <h1>? (a) <\h1> (b) </h1> (c) <h1> (d) <h1/>
  23. 23.True or false: <li> is an empty tag. (a) True (b) False
  24. 24.📄 Where does <img> go: in the head or in the body? (a) in the body (b) in the head
  25. 25.🏷️ Which is the closing tag for <p>? (a) </p> (b) <p/> (c) <\p> (d) <p>
  26. 26.💬 Why do coders write comments? (a) to leave notes (b) to show pictures (c) to make links (d) to add colour
  27. 27.🖼️ Which tag puts a picture on a page? (a) <pic> (b) <img> (c) <a> (d) <p>
  28. 28.📄 Which part holds everything you see on the page? (a) the doctype (b) the title (c) the head (d) the body
  29. 29.🔗 Where does this link open?
    <a href="news.html">About us</a>
    (a) in a new tab (b) in the same tab
  30. 30.💬 Can anyone read your comments by viewing the page source? (a) Yes (b) No
  31. 31.🔠 Which heading shows the SMALLEST text: <h5>, <h2>, <h4> or <h1>? (a) <h4> (b) <h2> (c) <h1> (d) <h5>
  32. 32.🔠 Which heading shows the BIGGEST text: <h3>, <h4>, <h5> or <h2>? (a) <h5> (b) <h2> (c) <h4> (d) <h3>
  33. 33.📝 On how many lines does the browser show this paragraph?
    <p>Stars shine<br>Roses are red</p>
  34. 34.📝 On how many lines does the browser show this paragraph?
    <p>Roses are red<br>Birds sing</p>
  35. 35.True or false: a web browser stores a website’s files. (a) False (b) True
  36. 36.🌐 Which one colours code to help us? (a) a web server (b) a code editor (c) a web browser
  37. 37.🔍 One closing tag is missing. Which one?
    <h2>Fun facts
    <strong>Rain today</strong>
    <small>Our school trip</small>
    (a) </h2> (b) </small> (c) </em> (d) </strong>
  38. 38.🔗 Where does this link open?
    <a href="maths.html">Play games</a>
    (a) in the same tab (b) in a new tab
  39. 39.🔠 How many <h1> headings should a page usually have? (a) 3 (b) 10 (c) 1 (d) 6
  40. 40.🔍 Which is the odd one out? (a) shows line numbers (b) turns HTML into a page (c) shows pages from the web (d) has an address bar

Answer key

  1. False
  2. <title>
  3. </h3>
  4. 4
  5. a web browser
  6. opens web pages for us
  7. About us
  8. Yes
  9. False
  10. <h6>
  11. School news
  12. <a>
  13. </b>
  14. <h1>
  15. Birthday cake
  16. 3
  17. <ul>
  18. 2
  19. 2
  20. 4
  21. Yes
  22. </h1>
  23. False
  24. in the body
  25. </p>
  26. to leave notes
  27. <img>
  28. the body
  29. in the same tab
  30. Yes
  31. <h5>
  32. <h2>
  33. 2
  34. 2
  35. False
  36. a code editor
  37. </h2>
  38. in the same tab
  39. 1
  40. shows line numbers

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