← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 924 · 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.🔠 Are headings shown in bold by default? (a) No (b) Yes
  2. 2.Which of these is true of a code editor? (a) saves our .html files (b) hosts websites online (c) answers page requests (d) turns HTML into a page
  3. 3.🖼️ Which tag puts a picture on a page? (a) <pic> (b) <a> (c) <p> (d) <img>
  4. 4.🔠 Which heading shows the BIGGEST text: <h2>, <h3>, <h5> or <h6>? (a) <h3> (b) <h5> (c) <h2> (d) <h6>
  5. 5.Which of these is true of a web server? (a) is where we type code (b) saves our .html files (c) answers page requests (d) opens web pages for us
  6. 6.True or false: a web browser answers page requests. (a) False (b) True
  7. 7.🔠 Which heading shows the BIGGEST text: <h5>, <h6>, <h2> or <h3>? (a) <h5> (b) <h2> (c) <h6> (d) <h3>
  8. 8.True or false: a web browser hosts websites online. (a) False (b) True
  9. 9.True or false: HTML on its own cannot run a game loop. (a) True (b) False
  10. 10.🔍 Which line is missing its closing tag?
    line 1: <small>Hello, world!
    line 2: <h1>The red kite</h1>
    line 3: <u>Fun facts</u>
    (a) line 3 (b) line 2 (c) line 1
  11. 11.🔗 Which tag makes a clickable link? (a) <img> (b) <p> (c) <link> (d) <a>
  12. 12.🔗 Which words do you click on?
    <a href="games.html">About us</a>
    (a) About us (b) href (c) games.html (d) Contact us
  13. 13.📄 Where does the text of <title> appear? (a) at the bottom (b) on the browser tab (c) in a big heading (d) nowhere
  14. 14.🏷️ Is <title> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  15. 15.📋 How many items does this list show?
    <ul>
      <li>Jamun</li>
      <li>Banana</li>
    </ul>
  16. 16.Which of these has a closing tag? (a) <hr> (b) <title> (c) <br> (d) <meta>
  17. 17.💬 How many paragraphs show on the page?
    <p>Fun facts</p>
    <p>The red kite</p>
    <!-- <p>Hello, world!</p> -->
    <p>I love mangoes.</p>
    <p>Good morning!</p>
  18. 18.🖼️ Which attribute of <img> names the picture file? (a) width (b) height (c) src (d) alt
  19. 19.🏷️ Is <b> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  20. 20.📝 What does <br> do? (a) adds a picture (b) starts a new line (c) makes text bold (d) makes a list
  21. 21.💬 How many paragraphs show on the page?
    <p>My pets</p>
    <!-- <p>Fun facts</p> -->
    <!-- <p>Rain today</p> -->
  22. 22.🔍 One closing tag is missing. Which one?
    <h1>My pets
    <h2>My best friend</h2>
    <h3>Good morning!</h3>
    (a) </b> (b) </h1> (c) </h2> (d) </h3>
  23. 23.📋 What number does the browser show next to “Guava”?
    <ol start="9">
      <li>Papaya</li>
      <li>Grapes</li>
      <li>Guava</li>
      <li>Mango</li>
    </ol>
  24. 24.💬 How many paragraphs show on the page?
    <p>Hello, world!</p>
    <p>Our school trip</p>
    <p>My best friend</p>
    <p>Good morning!</p>
    <!-- <p>The red kite</p> -->
  25. 25.Which of these is true of a web server? (a) sends pages over the net (b) is where we type code (c) shows pages from the web (d) has an address bar
  26. 26.🔍 One closing tag is missing. Which one?
    <u>Hello, world!
    <small>Our school trip</small>
    <b>My pets</b>
    (a) </strong> (b) </u> (c) </small> (d) </b>
  27. 27.True or false: <ul> shows bullet points. (a) False (b) True
  28. 28.🏷️ Is </h1> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  29. 29.💬 How many paragraphs show on the page?
    <p>Hello, world!</p>
    <p>My best friend</p>
    <!-- <p>Good morning!</p> -->
  30. 30.🔠 Which heading shows the SMALLEST text: <h2>, <h6>, <h4> or <h5>? (a) <h5> (b) <h6> (c) <h2> (d) <h4>
  31. 31.🔗 Which words do you click on?
    <a href="news.html">About us</a>
    (a) news.html (b) Contact us (c) href (d) About us
  32. 32.📋 How many items does this list show?
    <ol>
      <li>Mango</li>
      <li>Grapes</li>
      <li>Orange</li>
    </ol>
  33. 33.📄 Where does <img> go: in the head or in the body? (a) in the head (b) in the body
  34. 34.🔍 Which is the odd one out? (a) shows pages from the web (b) has an address bar (c) shows line numbers (d) opens web pages for us
  35. 35.🖼️ How many pixels wide is the picture drawn?
    <img src="cake.jpg" alt="Birthday cake" width="400">
  36. 36.🔗 Which words do you click on?
    <a href="games.html">Take the quiz</a>
    (a) Play games (b) href (c) Take the quiz (d) games.html
  37. 37.🖼️ Does <img> need a closing tag? (a) Yes (b) No
  38. 38.🔢 In a basic web page file, which comes first: “<head>” or “</html>”? (a) </html> (b) <head>
  39. 39.🔠 Which tag is used for the main title on a page? (a) <h1> (b) <p> (c) <br> (d) <h6>
  40. 40.🔠 Which tag is the least important heading? (a) <p> (b) <h1> (c) <h6> (d) <h3>

Answer key

  1. Yes
  2. saves our .html files
  3. <img>
  4. <h2>
  5. answers page requests
  6. False
  7. <h2>
  8. False
  9. True
  10. line 1
  11. <a>
  12. About us
  13. on the browser tab
  14. an opening tag
  15. 2
  16. <title>
  17. 4
  18. src
  19. an opening tag
  20. starts a new line
  21. 1
  22. </h1>
  23. 11
  24. 4
  25. sends pages over the net
  26. </u>
  27. True
  28. a closing tag
  29. 2
  30. <h6>
  31. About us
  32. 3
  33. in the body
  34. shows line numbers
  35. 400
  36. Take the quiz
  37. No
  38. <head>
  39. <h1>
  40. <h6>

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