← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 794 · 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.🔗 Which words do you click on?
    <a href="contact.html">Take the quiz</a>
    (a) contact.html (b) Take the quiz (c) Play games (d) href
  2. 2.📝 On how many lines does the browser show this paragraph?
    <p>Sky is blue<br>Kites fly high<br>Birds sing</p>
  3. 3.🔤 In “HTML”, what does the L stand for? (a) Language (b) Laptop (c) Line (d) Link
  4. 4.🔗 Which attribute holds the address of a link? (a) src (b) id (c) href (d) alt
  5. 5.🔗 Where does this link open?
    <a href="games.html">Art corner</a>
    (a) in a new tab (b) in the same tab
  6. 6.🔠 Which heading shows the BIGGEST text: <h1>, <h4>, <h6> or <h5>? (a) <h1> (b) <h4> (c) <h5> (d) <h6>
  7. 7.📋 Which tag goes around each item of a list? (a) <ul> (b) <ol> (c) <p> (d) <li>
  8. 8.🏷️ Which is the closing tag for <b>? (a) </b> (b) <\b> (c) <b> (d) <b/>
  9. 9.📝 How many paragraphs does this code make?
    <p>Cricket is fun.</p>
    <p>Good morning!</p>
    <h2>My pets</h2>
  10. 10.📋 Which list tag goes inside ul or ol? (a) <ol> (b) <li> (c) <ul>
  11. 11.📋 What number does the browser show next to “Litchi”?
    <ol>
      <li>Orange</li>
      <li>Mango</li>
      <li>Litchi</li>
    </ol>
  12. 12.📋 Which list tag shows bullet points? (a) <ol> (b) <li> (c) <ul>
  13. 13.🔗 Which address opens when you click this link?
    <a href="about.html">Play games</a>
    (a) https://example.com (b) about.html (c) contact.html (d) Play games
  14. 14.🖼️ Does <img> need a closing tag? (a) Yes (b) No
  15. 15.📋 What number does the browser show next to “Banana”?
    <ol start="2">
      <li>Mango</li>
      <li>Litchi</li>
      <li>Banana</li>
      <li>Papaya</li>
    </ol>
  16. 16.True or false: <ul> has a closing tag. (a) False (b) True
  17. 17.📋 Does this list show bullets or numbers?
    <ol>
      <li>Orange</li>
      <li>Papaya</li>
    </ol>
    (a) numbers (b) bullets
  18. 18.📄 Where does the text of <title> appear? (a) nowhere (b) in a big heading (c) at the bottom (d) on the browser tab
  19. 19.🔍 Which is the odd one out? (a) stores a website’s files (b) shows pages from the web (c) opens web pages for us (d) turns HTML into a page
  20. 20.🖼️ Which tag puts a picture on a page? (a) <a> (b) <pic> (c) <img> (d) <p>
  21. 21.🔠 How many headings are in this code?
    <h1>The red kite</h1>
    <p>Good morning!</p>
    <p>My pets</p>
    <p>My best friend</p>
  22. 22.🔠 Which heading shows the SMALLEST text: <h4>, <h2>, <h3> or <h5>? (a) <h3> (b) <h4> (c) <h2> (d) <h5>
  23. 23.📄 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>Here is my best one.</p>
    </body>
    </html>
    (a) Here is my best one. (b) Class 7 Blog (c) index.html (d) All about me
  24. 24.🔗 Which address opens when you click this link?
    <a href="games.html">Play games</a>
    (a) Play games (b) games.html (c) contact.html (d) about.html
  25. 25.🔍 One closing tag is missing. Which one?
    <h1>Good morning!</h1>
    <p>My best friend
    <small>Cricket is fun.</small>
    (a) </p> (b) </i> (c) </small> (d) </h1>
  26. 26.🔗 Which address opens when you click this link?
    <a href="about.html">School news</a>
    (a) contact.html (b) https://example.com (c) about.html (d) School news
  27. 27.🔗 Which words do you click on?
    <a href="art.html">Play games</a>
    (a) Play games (b) art.html (c) href (d) About us
  28. 28.🏷️ Which is the closing tag for <em>? (a) <\em> (b) </em> (c) <em/> (d) <em>
  29. 29.💬 How many paragraphs show on the page?
    <!-- <p>My best friend</p> -->
    <!-- <p>The red kite</p> -->
    <!-- <p>Cricket is fun.</p> -->
    <p>Hello, world!</p>
    <p>My pets</p>
  30. 30.🔗 Which code links to about.html? (a) <link about.html> (b) <a href="about.html"> (c) <a alt="about.html"> (d) <a src="about.html">
  31. 31.📋 Which list tag lists things in any order? (a) <li> (b) <ol> (c) <ul>
  32. 32.🌐 Which one turns HTML into a page? (a) a web server (b) a web browser (c) a code editor
  33. 33.📄 Which part holds everything you see on the page? (a) the title (b) the body (c) the doctype (d) the head
  34. 34.📝 On how many lines does the browser show this paragraph?
    <p>Sky is blue<br>Kites fly high<br>Stars shine<br>Birds sing</p>
  35. 35.💬 How many paragraphs show on the page?
    <!-- <p>Fun facts</p> -->
    <!-- <p>My best friend</p> -->
    <p>I love mangoes.</p>
    <!-- <p>Cricket is fun.</p> -->
    <p>Our school trip</p>
  36. 36.🔗 Which address opens when you click this link?
    <a href="art.html">Contact us</a>
    (a) art.html (b) news.html (c) quiz.html (d) Contact us
  37. 37.🔗 Where does this link open?
    <a href="about.html" target="_blank">About us</a>
    (a) in the same tab (b) in a new tab
  38. 38.Which of these is true of a code editor? (a) saves our .html files (b) hosts websites online (c) opens web pages for us (d) turns HTML into a page
  39. 39.🔡 Are HTML tag names usually written in small letters? (a) Yes (b) No
  40. 40.💬 How does an HTML comment end? (a) */ (b) // (c) >> (d) -->

Answer key

  1. Take the quiz
  2. 3
  3. Language
  4. href
  5. in the same tab
  6. <h1>
  7. <li>
  8. </b>
  9. 2
  10. <li>
  11. 3
  12. <ul>
  13. about.html
  14. No
  15. 4
  16. True
  17. numbers
  18. on the browser tab
  19. stores a website’s files
  20. <img>
  21. 1
  22. <h5>
  23. Class 7 Blog
  24. games.html
  25. </p>
  26. about.html
  27. Play games
  28. </em>
  29. 2
  30. <a href="about.html">
  31. <ul>
  32. a web browser
  33. the body
  34. 4
  35. 2
  36. art.html
  37. in a new tab
  38. saves our .html files
  39. Yes
  40. -->

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