← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 793 · 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.📝 What does <p> make? (a) a paragraph (b) a picture (c) a link (d) a table
  2. 2.🔡 Are HTML tag names usually written in small letters? (a) No (b) Yes
  3. 3.Which of these is an empty tag? (a) <ul> (b) <h1> (c) <p> (d) <br>
  4. 4.🏷️ Is <li> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  5. 5.🌐 Which one opens web pages for us? (a) a web server (b) a web browser (c) a code editor
  6. 6.True or false: <li> is an unordered list. (a) False (b) True
  7. 7.📝 What does <hr> draw? (a) a table (b) a line across the page (c) a picture (d) a link
  8. 8.💬 How many paragraphs show on the page?
    <!-- <p>Hello, world!</p> -->
    <p>Good morning!</p>
    <!-- <p>Our school trip</p> -->
    <p>I love mangoes.</p>
    <p>My best friend</p>
  9. 9.🔗 Which address opens when you click this link?
    <a href="games.html">Contact us</a>
    (a) Contact us (b) about.html (c) games.html (d) contact.html
  10. 10.True or false: HTML on its own cannot make a form. (a) False (b) True
  11. 11.🔗 What does target="_blank" do to a link? (a) opens it in a new tab (b) makes it bold (c) hides the link (d) makes it blank
  12. 12.📋 What number does the browser show next to “Mango”?
    <ol start="4">
      <li>Grapes</li>
      <li>Mango</li>
      <li>Banana</li>
    </ol>
  13. 13.🌍 Which program shows a web page to us? (a) a calculator (b) a paint program (c) a web browser (d) a music player
  14. 14.🔗 Which words do you click on?
    <a href="about.html">School news</a>
    (a) Take the quiz (b) School news (c) about.html (d) href
  15. 15.🔢 In a basic web page file, which comes first: “</html>” or “<!DOCTYPE html>”? (a) </html> (b) <!DOCTYPE html>
  16. 16.🔠 Which tag is the least important heading? (a) <h1> (b) <h3> (c) <p> (d) <h6>
  17. 17.💬 Which text will NOT show on the page?
    <p>The red kite</p>
    <!-- <p>Rain today</p> -->
    <p>Good morning!</p>
    <p>Hello, world!</p>
    (a) Hello, world! (b) The red kite (c) Rain today (d) Good morning!
  18. 18.🔤 In “HTML”, what does the L stand for? (a) Link (b) Line (c) Language (d) Laptop
  19. 19.🔍 Which line is missing its closing tag?
    line 1: <em>Hello, world!</em>
    line 2: <h2>Fun facts</h2>
    line 3: <strong>The red kite
    (a) line 3 (b) line 2 (c) line 1
  20. 20.Which of these is true of a code editor? (a) sends pages over the net (b) shows line numbers (c) shows pages from the web (d) answers page requests
  21. 21.🔤 In “HTML”, what do the letters HT stand for? (a) HyperText (b) Hot Tags (c) High Tech (d) Home Text
  22. 22.🔗 Where does this link open?
    <a href="https://example.com">Art corner</a>
    (a) in the same tab (b) in a new tab
  23. 23.🔍 One closing tag is missing. Which one?
    <h2>Hello, world!</h2>
    <i>My best friend
    <h3>Fun facts</h3>
    (a) </h3> (b) </h2> (c) </p> (d) </i>
  24. 24.True or false: <ul> goes inside ul or ol. (a) False (b) True
  25. 25.🔠 Which heading shows the SMALLEST text: <h2>, <h4>, <h3> or <h5>? (a) <h4> (b) <h5> (c) <h3> (d) <h2>
  26. 26.🔗 Which code links to about.html? (a) <a src="about.html"> (b) <a href="about.html"> (c) <link about.html> (d) <a alt="about.html">
  27. 27.True or false: in <img>, alt shows if the image fails. (a) True (b) False
  28. 28.🔠 Which heading shows the BIGGEST text: <h5>, <h1>, <h3> or <h2>? (a) <h5> (b) <h3> (c) <h1> (d) <h2>
  29. 29.📄 Where does <title> go: in the head or in the body? (a) in the head (b) in the body
  30. 30.🖼️ How many pixels wide is the picture drawn?
    <img src="moon.png" alt="The full moon" width="150">
  31. 31.Which of these has a closing tag? (a) <li> (b) <input> (c) <hr> (d) <br>
  32. 32.🔠 How many headings are in this code?
    <h1>My best friend</h1>
    <h3>Rain today</h3>
    <h3>My best friend</h3>
  33. 33.🔢 In a basic web page file, which comes FIRST? (a) <head> (b) </html> (c) <!DOCTYPE html> (d) <body>
  34. 34.🔗 Which words do you click on?
    <a href="news.html">About us</a>
    (a) news.html (b) href (c) Contact us (d) About us
  35. 35.🌐 Which one turns HTML into a page? (a) a web server (b) a code editor (c) a web browser
  36. 36.True or false: <p> has a closing tag. (a) True (b) False
  37. 37.🔗 Which address opens when you click this link?
    <a href="about.html">Visit the site</a>
    (a) https://example.com (b) Visit the site (c) contact.html (d) about.html
  38. 38.🔗 Where does this link open?
    <a href="games.html">Take the quiz</a>
    (a) in the same tab (b) in a new tab
  39. 39.🏷️ Is </li> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  40. 40.🔗 Where does this link open?
    <a href="https://example.com">Play games</a>
    (a) in the same tab (b) in a new tab

Answer key

  1. a paragraph
  2. Yes
  3. <br>
  4. an opening tag
  5. a web browser
  6. False
  7. a line across the page
  8. 3
  9. games.html
  10. False
  11. opens it in a new tab
  12. 5
  13. a web browser
  14. School news
  15. <!DOCTYPE html>
  16. <h6>
  17. Rain today
  18. Language
  19. line 3
  20. shows line numbers
  21. HyperText
  22. in the same tab
  23. </i>
  24. False
  25. <h5>
  26. <a href="about.html">
  27. True
  28. <h1>
  29. in the head
  30. 150
  31. <li>
  32. 3
  33. <!DOCTYPE html>
  34. About us
  35. a web browser
  36. True
  37. about.html
  38. in the same tab
  39. a closing tag
  40. in the same tab

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