← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 209 · 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.🏷️ Is </title> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  2. 2.True or false: HTML on its own cannot make tables. (a) False (b) True
  3. 3.🌐 Which one turns HTML into a page? (a) a web browser (b) a web server (c) a code editor
  4. 4.💬 How many paragraphs show on the page?
    <p>Our school trip</p>
    <p>My best friend</p>
    <!-- <p>Cricket is fun.</p> -->
    <!-- <p>Fun facts</p> -->
    <p>Hello, world!</p>
  5. 5.💬 Which text will NOT show on the page?
    <p>Rain today</p>
    <p>Cricket is fun.</p>
    <p>Good morning!</p>
    <!-- <p>Our school trip</p> -->
    (a) Cricket is fun. (b) Good morning! (c) Rain today (d) Our school trip
  6. 6.💬 How many paragraphs show on the page?
    <!-- <p>Fun facts</p> -->
    <!-- <p>My best friend</p> -->
    <!-- <p>Hello, world!</p> -->
    <p>My pets</p>
    <p>Rain today</p>
  7. 7.True or false: in <img>, src describes the picture. (a) False (b) True
  8. 8.Which of these is a closing tag? (a) <b> (b) <title> (c) <p> (d) </li>
  9. 9.🌐 Which one stores a website’s files? (a) a code editor (b) a web browser (c) a web server
  10. 10.📄 Where does <meta charset="utf-8"> go: in the head or in the body? (a) in the body (b) in the head
  11. 11.🔠 Which heading shows the SMALLEST text: <h5>, <h3>, <h1> or <h4>? (a) <h4> (b) <h3> (c) <h1> (d) <h5>
  12. 12.🔠 How many headings are in this code?
    <h1>The red kite</h1>
    <p>Fun facts</p>
    <h2>Fun facts</h2>
    <p>I love mangoes.</p>
  13. 13.📄 Where does the text of <title> appear? (a) on the browser tab (b) nowhere (c) at the bottom (d) in a big heading
  14. 14.💬 Can anyone read your comments by viewing the page source? (a) Yes (b) No
  15. 15.🖼️ Which tag puts a picture on a page? (a) <a> (b) <img> (c) <p> (d) <pic>
  16. 16.📋 What number does the browser show next to “Litchi”?
    <ol start="4">
      <li>Banana</li>
      <li>Mango</li>
      <li>Litchi</li>
      <li>Jamun</li>
      <li>Guava</li>
    </ol>
  17. 17.📛 In <a href="x.html">, what is href? (a) a closing tag (b) an attribute (c) a comment (d) an element name
  18. 18.💬 How many paragraphs show on the page?
    <!-- <p>Hello, world!</p> -->
    <p>The red kite</p>
    <!-- <p>Our school trip</p> -->
    <p>My best friend</p>
    <!-- <p>I love mangoes.</p> -->
  19. 19.Which of these has a closing tag? (a) <br> (b) <input> (c) <hr> (d) <li>
  20. 20.True or false: <ul> goes inside ul or ol. (a) True (b) False
  21. 21.🖼️ Does <img> need a closing tag? (a) No (b) Yes
  22. 22.🔠 Which heading shows the SMALLEST text: <h5>, <h1>, <h6> or <h3>? (a) <h6> (b) <h5> (c) <h3> (d) <h1>
  23. 23.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="tiger.jpg" alt="A tiger asleep" width="200">
    (a) tiger.jpg (b) width (c) A tiger asleep (d) A red kite
  24. 24.Which of these is true of a web server? (a) saves our .html files (b) answers page requests (c) is where we type code (d) opens web pages for us
  25. 25.🔠 Which heading shows the BIGGEST text: <h6>, <h3>, <h4> or <h1>? (a) <h1> (b) <h6> (c) <h4> (d) <h3>
  26. 26.🔠 How many headings are in this code?
    <h1>Good morning!</h1>
    <p>I love mangoes.</p>
    <h2>Cricket is fun.</h2>
    <p>The red kite</p>
  27. 27.📝 What does <p> make? (a) a table (b) a picture (c) a link (d) a paragraph
  28. 28.Which of these is true of a code editor? (a) shows line numbers (b) hosts websites online (c) shows pages from the web (d) answers page requests
  29. 29.🔗 Which address opens when you click this link?
    <a href="games.html">Art corner</a>
    (a) Art corner (b) about.html (c) contact.html (d) games.html
  30. 30.📝 You type 5 spaces between two words in a <p>. How does the browser show them? (a) as a dot (b) as one space (c) as 5 spaces (d) as a new line
  31. 31.🔢 In a basic web page file, which comes first: “</body>” or “<head>”? (a) <head> (b) </body>
  32. 32.📋 What number does the browser show next to “Orange”?
    <ol start="5">
      <li>Jamun</li>
      <li>Guava</li>
      <li>Papaya</li>
      <li>Orange</li>
      <li>Grapes</li>
    </ol>
  33. 33.🔗 Which tag makes a clickable link? (a) <a> (b) <link> (c) <p> (d) <img>
  34. 34.📄 Where does <title> go: in the head or in the body? (a) in the head (b) in the body
  35. 35.📋 What number does the browser show next to “Guava”?
    <ol start="9">
      <li>Papaya</li>
      <li>Guava</li>
      <li>Banana</li>
    </ol>
  36. 36.True or false: <title> has a closing tag. (a) False (b) True
  37. 37.🖼️ Which attribute of <img> names the picture file? (a) height (b) alt (c) src (d) width
  38. 38.🔢 In a basic web page file, which comes LAST? (a) </html> (b) </body> (c) <body> (d) <html>
  39. 39.📝 Does <br> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  40. 40.True or false: HTML on its own cannot show paragraphs. (a) False (b) True

Answer key

  1. a closing tag
  2. False
  3. a web browser
  4. 3
  5. Our school trip
  6. 2
  7. False
  8. </li>
  9. a web server
  10. in the head
  11. <h5>
  12. 2
  13. on the browser tab
  14. Yes
  15. <img>
  16. 6
  17. an attribute
  18. 2
  19. <li>
  20. False
  21. No
  22. <h6>
  23. A tiger asleep
  24. answers page requests
  25. <h1>
  26. 2
  27. a paragraph
  28. shows line numbers
  29. games.html
  30. as one space
  31. <head>
  32. 8
  33. <a>
  34. in the head
  35. 10
  36. True
  37. src
  38. </html>
  39. an empty tag
  40. False

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