← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 370 · 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) 10 (b) 6 (c) 4 (d) 3
  2. 2.🔠 Which heading shows the SMALLEST text: <h2>, <h1>, <h4> or <h3>? (a) <h3> (b) <h4> (c) <h1> (d) <h2>
  3. 3.📋 Which list tag shows 1, 2, 3 numbers? (a) <li> (b) <ul> (c) <ol>
  4. 4.📋 Which list shows the steps of a recipe best? (a) <ul> (b) <ol> (c) <hr> (d) <br>
  5. 5.📄 Which part holds everything you see on the page? (a) the doctype (b) the head (c) the body (d) the title
  6. 6.💾 A web page file usually ends with which extension? (a) .html (b) .mp3 (c) .png (d) .txt
  7. 7.📝 How many paragraphs does this code make?
    <p>The red kite</p>
    <h2>My pets</h2>
    <h2>Fun facts</h2>
    <p>The red kite</p>
  8. 8.🔍 Which is the odd one out? (a) turns HTML into a page (b) has an address bar (c) is where we type code (d) shows pages from the web
  9. 9.🔍 One closing tag is missing. Which one?
    <b>Good morning!</b>
    <small>I love mangoes.
    <strong>Fun facts</strong>
    (a) </strong> (b) </h3> (c) </small> (d) </b>
  10. 10.🖼️ How many pixels wide is the picture drawn?
    <img src="map.png" alt="Map of India" width="250">
  11. 11.🔠 Which tag is used for the main title on a page? (a) <h6> (b) <p> (c) <br> (d) <h1>
  12. 12.📄 Where does <p> go: in the head or in the body? (a) in the body (b) in the head
  13. 13.💬 How many paragraphs show on the page?
    <!-- <p>My best friend</p> -->
    <!-- <p>Our school trip</p> -->
    <p>I love mangoes.</p>
  14. 14.📄 Where does <table> go: in the head or in the body? (a) in the body (b) in the head
  15. 15.🖼️ Why do we add alt text to an image? (a) to make it bigger (b) to colour it (c) to load it faster (d) to describe the image
  16. 16.🔠 Which heading shows the BIGGEST text: <h2>, <h1>, <h4> or <h3>? (a) <h2> (b) <h4> (c) <h1> (d) <h3>
  17. 17.🌐 Which one answers page requests? (a) a code editor (b) a web browser (c) a web server
  18. 18.True or false: <b> is an empty tag. (a) True (b) False
  19. 19.📄 Where does <link rel="stylesheet"> go: in the head or in the body? (a) in the body (b) in the head
  20. 20.💬 Which text will NOT show on the page?
    <p>Hello, world!</p>
    <p>Rain today</p>
    <!-- <p>My pets</p> -->
    <p>Fun facts</p>
    (a) Rain today (b) Hello, world! (c) My pets (d) Fun facts
  21. 21.💬 How does an HTML comment end? (a) --> (b) */ (c) // (d) >>
  22. 22.🔗 Which tag makes a clickable link? (a) <img> (b) <link> (c) <a> (d) <p>
  23. 23.📄 Can HTML on its own pick a random number? (a) No (b) Yes
  24. 24.True or false: in <img>, alt tells which image to load. (a) False (b) True
  25. 25.💬 How many paragraphs show on the page?
    <!-- <p>Rain today</p> -->
    <p>Our school trip</p>
    <p>Cricket is fun.</p>
  26. 26.🌐 Which one has an address bar? (a) a code editor (b) a web browser (c) a web server
  27. 27.Which of these is true of a web server? (a) turns HTML into a page (b) stores a website’s files (c) shows line numbers (d) saves our .html files
  28. 28.🔢 In a basic web page file, which comes first: “<html>” or “<head>”? (a) <html> (b) <head>
  29. 29.🔡 Are HTML tag names usually written in small letters? (a) Yes (b) No
  30. 30.🔗 Which address opens when you click this link?
    <a href="games.html">Take the quiz</a>
    (a) games.html (b) Take the quiz (c) contact.html (d) about.html
  31. 31.🖼️ Which picture file does the browser load?
    <img src="kite.png" alt="A red kite" width="400">
    (a) kite.png (b) cake.jpg (c) map.png (d) A red kite
  32. 32.🖼️ How many pixels wide is the picture drawn?
    <img src="moon.png" alt="The full moon" width="50">
  33. 33.💬 How many paragraphs show on the page?
    <!-- <p>Cricket is fun.</p> -->
    <p>Our school trip</p>
    <!-- <p>My pets</p> -->
    <p>Fun facts</p>
    <!-- <p>Good morning!</p> -->
  34. 34.🌐 Which one is where we type code? (a) a code editor (b) a web browser (c) a web server
  35. 35.🏷️ Is </li> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  36. 36.True or false: <img> is an empty tag. (a) False (b) True
  37. 37.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Class 7 Blog</title>
    </head>
    <body>
      <h1>All about me</h1>
      <p>We won by 5 runs.</p>
    </body>
    </html>
    (a) We won by 5 runs. (b) Class 7 Blog (c) All about me (d) index.html
  38. 38.🔗 Where does this link open?
    <a href="maths.html">About us</a>
    (a) in a new tab (b) in the same tab
  39. 39.🏷️ Is </h1> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  40. 40.True or false: <ul> is an ordered list. (a) True (b) False

Answer key

  1. 6
  2. <h4>
  3. <ol>
  4. <ol>
  5. the body
  6. .html
  7. 2
  8. is where we type code
  9. </small>
  10. 250
  11. <h1>
  12. in the body
  13. 1
  14. in the body
  15. to describe the image
  16. <h1>
  17. a web server
  18. False
  19. in the head
  20. My pets
  21. -->
  22. <a>
  23. No
  24. False
  25. 2
  26. a web browser
  27. stores a website’s files
  28. <html>
  29. Yes
  30. games.html
  31. kite.png
  32. 50
  33. 2
  34. a code editor
  35. a closing tag
  36. True
  37. Class 7 Blog
  38. in the same tab
  39. a closing tag
  40. False

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