← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 712 · 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.📄 Can HTML on its own run a game loop? (a) Yes (b) No
  2. 2.Which of these is an opening tag? (a) <h1> (b) </title> (c) </body> (d) </b>
  3. 3.🔗 Where does this link open?
    <a href="quiz.html" target="_blank">Play games</a>
    (a) in the same tab (b) in a new tab
  4. 4.💾 A web page file usually ends with which extension? (a) .mp3 (b) .txt (c) .png (d) .html
  5. 5.🔗 Which address opens when you click this link?
    <a href="games.html">Visit the site</a>
    (a) about.html (b) games.html (c) contact.html (d) Visit the site
  6. 6.🔍 One closing tag is missing. Which one?
    <i>My pets
    <h1>Good morning!</h1>
    <u>Fun facts</u>
    (a) </u> (b) </h1> (c) </p> (d) </i>
  7. 7.💬 How many paragraphs show on the page?
    <p>My best friend</p>
    <!-- <p>Cricket is fun.</p> -->
    <!-- <p>Hello, world!</p> -->
    <!-- <p>Fun facts</p> -->
    <p>Rain today</p>
  8. 8.🔠 Which heading shows the SMALLEST text: <h6>, <h3>, <h4> or <h5>? (a) <h4> (b) <h3> (c) <h5> (d) <h6>
  9. 9.🏷️ Is <b> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  10. 10.🔗 Which address opens when you click this link?
    <a href="maths.html">Take the quiz</a>
    (a) art.html (b) news.html (c) Take the quiz (d) maths.html
  11. 11.🔗 What does target="_blank" do to a link? (a) makes it blank (b) opens it in a new tab (c) hides the link (d) makes it bold
  12. 12.🔗 Which attribute holds the address of a link? (a) href (b) id (c) src (d) alt
  13. 13.📄 Can HTML on its own make links to pages? (a) No (b) Yes
  14. 14.True or false: in <img>, src sets how tall it is. (a) True (b) False
  15. 15.🖼️ Why do we add alt text to an image? (a) to make it bigger (b) to load it faster (c) to describe the image (d) to colour it
  16. 16.🔠 Which heading shows the SMALLEST text: <h2>, <h6>, <h3> or <h5>? (a) <h3> (b) <h5> (c) <h6> (d) <h2>
  17. 17.🔗 Where does this link open?
    <a href="art.html">Art corner</a>
    (a) in the same tab (b) in a new tab
  18. 18.💬 How does an HTML comment start? (a) <!-- (b) /* (c) # (d) //
  19. 19.🔠 Which heading shows the BIGGEST text: <h5>, <h6>, <h1> or <h4>? (a) <h6> (b) <h5> (c) <h4> (d) <h1>
  20. 20.🔍 Which line is missing its closing tag?
    line 1: <h1>Our school trip</h1>
    line 2: <strong>I love mangoes.</strong>
    line 3: <h2>Fun facts
    (a) line 2 (b) line 3 (c) line 1
  21. 21.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="map.png" alt="Map of India" width="200">
    (a) Birthday cake (b) Map of India (c) width (d) map.png
  22. 22.🔍 Which line is missing its closing tag?
    line 1: <h1>The red kite</h1>
    line 2: <h2>My pets</h2>
    line 3: <strong>My best friend
    (a) line 3 (b) line 1 (c) line 2
  23. 23.📋 Which list tag is one item of a list? (a) <ul> (b) <ol> (c) <li>
  24. 24.💬 How many paragraphs show on the page?
    <!-- <p>Cricket is fun.</p> -->
    <!-- <p>Rain today</p> -->
    <p>Our school trip</p>
    <!-- <p>Good morning!</p> -->
  25. 25.True or false: <title> is an empty tag. (a) False (b) True
  26. 26.🔗 Which tag makes a clickable link? (a) <a> (b) <p> (c) <link> (d) <img>
  27. 27.💬 Does the browser show comments on the page? (a) No (b) Yes
  28. 28.Which of these is an opening tag? (a) </b> (b) </li> (c) </title> (d) <body>
  29. 29.True or false: a web server sends pages over the net. (a) False (b) True
  30. 30.Which of these goes in the body? (a) <meta charset="utf-8"> (b) <table> (c) <title> (d) <link rel="stylesheet">
  31. 31.📝 How many paragraphs does this code make?
    <p>Good morning!</p>
    <p>Fun facts</p>
    <p>I love mangoes.</p>
    <p>Good morning!</p>
    <p>Good morning!</p>
  32. 32.🔠 Which heading shows the BIGGEST text: <h1>, <h6>, <h3> or <h2>? (a) <h1> (b) <h6> (c) <h2> (d) <h3>
  33. 33.📋 Which tag goes around each item of a list? (a) <p> (b) <ul> (c) <ol> (d) <li>
  34. 34.🔗 Where does this link open?
    <a href="news.html">Art corner</a>
    (a) in the same tab (b) in a new tab
  35. 35.🖼️ Does <img> need a closing tag? (a) Yes (b) No
  36. 36.🖼️ Which tag puts a picture on a page? (a) <pic> (b) <a> (c) <p> (d) <img>
  37. 37.🌐 Which one stores a website’s files? (a) a web browser (b) a code editor (c) a web server
  38. 38.📋 What number does the browser show next to “Orange”?
    <ol>
      <li>Jamun</li>
      <li>Papaya</li>
      <li>Orange</li>
      <li>Banana</li>
    </ol>
  39. 39.True or false: <img> is an empty tag. (a) False (b) True
  40. 40.📝 Does <p> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag

Answer key

  1. No
  2. <h1>
  3. in a new tab
  4. .html
  5. games.html
  6. </i>
  7. 2
  8. <h6>
  9. an opening tag
  10. maths.html
  11. opens it in a new tab
  12. href
  13. Yes
  14. False
  15. to describe the image
  16. <h6>
  17. in the same tab
  18. <!--
  19. <h1>
  20. line 3
  21. Map of India
  22. line 3
  23. <li>
  24. 1
  25. False
  26. <a>
  27. No
  28. <body>
  29. True
  30. <table>
  31. 5
  32. <h1>
  33. <li>
  34. in the same tab
  35. No
  36. <img>
  37. a web server
  38. 3
  39. True
  40. has a closing tag

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