← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 151 · 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 picture file does the browser load?
    <img src="bus.jpg" alt="Our school bus" width="200">
    (a) tiger.jpg (b) fort.jpg (c) bus.jpg (d) Our school bus
  2. 2.📝 How many paragraphs does this code make?
    <p>Rain today</p>
    <p>My best friend</p>
    <p>Good morning!</p>
    <p>The red kite</p>
    <p>My best friend</p>
  3. 3.📝 How many paragraphs does this code make?
    <p>My best friend</p>
    <p>Good morning!</p>
    <p>Fun facts</p>
    <p>Our school trip</p>
    <p>Our school trip</p>
    <h2>Our school trip</h2>
  4. 4.📝 What does <br> do? (a) starts a new line (b) makes a list (c) adds a picture (d) makes text bold
  5. 5.🌐 Which one opens web pages for us? (a) a web browser (b) a web server (c) a code editor
  6. 6.🔠 Which heading shows the SMALLEST text: <h6>, <h2>, <h1> or <h4>? (a) <h4> (b) <h6> (c) <h2> (d) <h1>
  7. 7.🔠 Which heading shows the BIGGEST text: <h2>, <h6>, <h3> or <h1>? (a) <h1> (b) <h3> (c) <h2> (d) <h6>
  8. 8.True or false: <title> goes in the head. (a) False (b) True
  9. 9.Which of these is a closing tag? (a) </title> (b) <body> (c) <b> (d) <p>
  10. 10.🏷️ Is </h1> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  11. 11.🔗 Which tag makes a clickable link? (a) <img> (b) <link> (c) <p> (d) <a>
  12. 12.🔗 What does target="_blank" do to a link? (a) makes it blank (b) opens it in a new tab (c) makes it bold (d) hides the link
  13. 13.Which of these is a closing tag? (a) <p> (b) </h1> (c) <li> (d) <title>
  14. 14.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Class 7 Blog</title>
    </head>
    <body>
      <h1>My drawings</h1>
      <p>Thanks for visiting.</p>
    </body>
    </html>
    (a) Class 7 Blog (b) My drawings (c) index.html (d) Thanks for visiting.
  15. 15.🔤 In “HTML”, what does the M stand for? (a) Modern (b) Mouse (c) Markup (d) Machine
  16. 16.Which of these is true of a web browser? (a) colours code to help us (b) opens web pages for us (c) stores a website’s files (d) hosts websites online
  17. 17.🏷️ Is <li> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  18. 18.🔢 In a basic web page file, which comes LAST? (a) </head> (b) <html> (c) </html> (d) <body>
  19. 19.🏷️ Every HTML tag starts with which sign? (a) [ (b) < (c) ( (d) {
  20. 20.📋 Which list tag shows 1, 2, 3 numbers? (a) <ol> (b) <ul> (c) <li>
  21. 21.True or false: <li> is an unordered list. (a) True (b) False
  22. 22.🔠 Which heading shows the BIGGEST text: <h2>, <h6>, <h1> or <h3>? (a) <h2> (b) <h3> (c) <h1> (d) <h6>
  23. 23.📛 In <a href="x.html">, what is href? (a) an element name (b) an attribute (c) a closing tag (d) a comment
  24. 24.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="kite.png" alt="A red kite" width="300">
    (a) kite.png (b) A red kite (c) width (d) Map of India
  25. 25.🖼️ Which tag puts a picture on a page? (a) <pic> (b) <img> (c) <a> (d) <p>
  26. 26.🌐 Which one colours code to help us? (a) a code editor (b) a web browser (c) a web server
  27. 27.True or false: HTML on its own can make tables. (a) True (b) False
  28. 28.💬 Which text will NOT show on the page?
    <!-- <p>Fun facts</p> -->
    <p>Hello, world!</p>
    <p>Cricket is fun.</p>
    <p>The red kite</p>
    (a) Fun facts (b) Cricket is fun. (c) The red kite (d) Hello, world!
  29. 29.📝 On how many lines does the browser show this paragraph?
    <p>Birds sing<br>Kites fly high</p>
  30. 30.🏷️ Which is the closing tag for <b>? (a) </b> (b) <b> (c) <b/> (d) <\b>
  31. 31.🔗 Which words do you click on?
    <a href="contact.html">Art corner</a>
    (a) contact.html (b) School news (c) href (d) Art corner
  32. 32.📝 What does <p> make? (a) a link (b) a table (c) a picture (d) a paragraph
  33. 33.True or false: <li> is an empty tag. (a) True (b) False
  34. 34.🔤 In “HTML”, what does the L stand for? (a) Laptop (b) Language (c) Link (d) Line
  35. 35.🔍 One closing tag is missing. Which one?
    <h1>My pets</h1>
    <h3>Cricket is fun.</h3>
    <em>Our school trip
    (a) </h1> (b) </small> (c) </em> (d) </h3>
  36. 36.🔠 Which heading shows the BIGGEST text: <h5>, <h2>, <h3> or <h1>? (a) <h3> (b) <h2> (c) <h1> (d) <h5>
  37. 37.🔗 Which address opens when you click this link?
    <a href="about.html">Contact us</a>
    (a) contact.html (b) Contact us (c) about.html (d) https://example.com
  38. 38.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="cake.jpg" alt="Birthday cake" width="350">
    (a) cake.jpg (b) Birthday cake (c) width (d) A happy dog
  39. 39.True or false: <ul> has a closing tag. (a) False (b) True
  40. 40.🖼️ Does <img> need a closing tag? (a) No (b) Yes

Answer key

  1. bus.jpg
  2. 5
  3. 5
  4. starts a new line
  5. a web browser
  6. <h6>
  7. <h1>
  8. True
  9. </title>
  10. a closing tag
  11. <a>
  12. opens it in a new tab
  13. </h1>
  14. Class 7 Blog
  15. Markup
  16. opens web pages for us
  17. an opening tag
  18. </html>
  19. <
  20. <ol>
  21. False
  22. <h1>
  23. an attribute
  24. A red kite
  25. <img>
  26. a code editor
  27. True
  28. Fun facts
  29. 2
  30. </b>
  31. Art corner
  32. a paragraph
  33. False
  34. Language
  35. </em>
  36. <h1>
  37. about.html
  38. Birthday cake
  39. True
  40. No

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