← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 938 · 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 paragraphs show on the page?
    <p>The red kite</p>
    <!-- <p>Our school trip</p> -->
    <p>I love mangoes.</p>
  2. 2.🏷️ Which is the closing tag for <i>? (a) <\i> (b) </i> (c) <i/> (d) <i>
  3. 3.🔍 Which is the odd one out? (a) is where we type code (b) opens web pages for us (c) turns HTML into a page (d) has an address bar
  4. 4.🌐 Which one is where we type code? (a) a web browser (b) a web server (c) a code editor
  5. 5.📝 Does <br> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  6. 6.True or false: <p> has a closing tag. (a) True (b) False
  7. 7.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>My Hobbies</title>
    </head>
    <body>
      <h1>Match report</h1>
      <p>Mars is red.</p>
    </body>
    </html>
    (a) Mars is red. (b) Match report (c) My Hobbies (d) body
  8. 8.📋 Does this list show bullets or numbers?
    <ol>
      <li>Grapes</li>
      <li>Papaya</li>
      <li>Guava</li>
    </ol>
    (a) numbers (b) bullets
  9. 9.True or false: <ul> is an empty tag. (a) True (b) False
  10. 10.🔗 Which tag makes a clickable link? (a) <p> (b) <a> (c) <img> (d) <link>
  11. 11.🌐 Which one has an address bar? (a) a code editor (b) a web server (c) a web browser
  12. 12.📋 How many items does this list show?
    <ul>
      <li>Mango</li>
      <li>Jamun</li>
      <li>Guava</li>
      <li>Litchi</li>
    </ul>
  13. 13.Which of these is an empty tag? (a) <ul> (b) <h1> (c) <title> (d) <meta>
  14. 14.🔠 Which heading shows the SMALLEST text: <h5>, <h2>, <h4> or <h6>? (a) <h5> (b) <h6> (c) <h2> (d) <h4>
  15. 15.🔍 One closing tag is missing. Which one?
    <h3>My pets</h3>
    <p>Hello, world!
    <i>Fun facts</i>
    (a) </p> (b) </i> (c) </small> (d) </h3>
  16. 16.🔍 Which line is missing its closing tag?
    line 1: <h2>Good morning!</h2>
    line 2: <h1>Rain today</h1>
    line 3: <p>Hello, world!
    (a) line 2 (b) line 1 (c) line 3
  17. 17.True or false: in <img>, src names the picture file. (a) True (b) False
  18. 18.📋 Which tag goes around each item of a list? (a) <li> (b) <ul> (c) <ol> (d) <p>
  19. 19.🏷️ Is </b> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  20. 20.🌐 Which one stores a website’s files? (a) a code editor (b) a web server (c) a web browser
  21. 21.🖼️ How many pixels wide is the picture drawn?
    <img src="moon.png" alt="The full moon" width="100">
  22. 22.🔠 How many headings are in this code?
    <h1>Cricket is fun.</h1>
    <p>Our school trip</p>
    <h2>Cricket is fun.</h2>
    <p>My pets</p>
  23. 23.📋 Which list tag lists things in any order? (a) <ol> (b) <li> (c) <ul>
  24. 24.🖼️ Which tag puts a picture on a page? (a) <p> (b) <a> (c) <pic> (d) <img>
  25. 25.📄 Where does <ul> go: in the head or in the body? (a) in the head (b) in the body
  26. 26.💬 How many paragraphs show on the page?
    <p>My best friend</p>
    <!-- <p>My pets</p> -->
    <p>Hello, world!</p>
  27. 27.🔠 Which heading shows the SMALLEST text: <h1>, <h4>, <h2> or <h5>? (a) <h1> (b) <h5> (c) <h4> (d) <h2>
  28. 28.🔠 How many heading levels does HTML have? (a) 4 (b) 3 (c) 6 (d) 10
  29. 29.Which of these is an opening tag? (a) </p> (b) <p> (c) </body> (d) </title>
  30. 30.🔗 Where does this link open?
    <a href="games.html" target="_blank">About us</a>
    (a) in the same tab (b) in a new tab
  31. 31.🔍 Which line is missing its closing tag?
    line 1: <i>My pets</i>
    line 2: <u>I love mangoes.</u>
    line 3: <h3>Our school trip
    (a) line 1 (b) line 3 (c) line 2
  32. 32.🔢 In a basic web page file, which comes first: “</head>” or “<body>”? (a) <body> (b) </head>
  33. 33.🔠 Are headings shown in bold by default? (a) No (b) Yes
  34. 34.📋 How many items does this list show?
    <ol>
      <li>Banana</li>
      <li>Jamun</li>
      <li>Mango</li>
    </ol>
  35. 35.🔠 How many <h1> headings should a page usually have? (a) 1 (b) 3 (c) 10 (d) 6
  36. 36.True or false: a code editor hosts websites online. (a) True (b) False
  37. 37.📋 What number does the browser show next to “Banana”?
    <ol start="8">
      <li>Mango</li>
      <li>Banana</li>
      <li>Guava</li>
    </ol>
  38. 38.🔗 Which address opens when you click this link?
    <a href="games.html">About us</a>
    (a) about.html (b) contact.html (c) About us (d) games.html
  39. 39.📄 Can HTML on its own make a form? (a) Yes (b) No
  40. 40.📝 What does <hr> draw? (a) a link (b) a line across the page (c) a table (d) a picture

Answer key

  1. 2
  2. </i>
  3. is where we type code
  4. a code editor
  5. an empty tag
  6. True
  7. Match report
  8. numbers
  9. False
  10. <a>
  11. a web browser
  12. 4
  13. <meta>
  14. <h6>
  15. </p>
  16. line 3
  17. True
  18. <li>
  19. a closing tag
  20. a web server
  21. 100
  22. 2
  23. <ul>
  24. <img>
  25. in the body
  26. 2
  27. <h5>
  28. 6
  29. <p>
  30. in a new tab
  31. line 3
  32. </head>
  33. Yes
  34. 3
  35. 1
  36. False
  37. 9
  38. games.html
  39. Yes
  40. a line across the page

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