← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 645 · 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.🔢 In a basic web page file, which comes FIRST? (a) <head> (b) <!DOCTYPE html> (c) </body> (d) <html>
  2. 2.Which of these is an empty tag? (a) <meta> (b) <h1> (c) <p> (d) <li>
  3. 3.🌐 Which one saves our .html files? (a) a web browser (b) a web server (c) a code editor
  4. 4.🔠 Which heading shows the BIGGEST text: <h6>, <h2>, <h3> or <h1>? (a) <h1> (b) <h3> (c) <h2> (d) <h6>
  5. 5.🔗 Which code links to about.html? (a) <a href="about.html"> (b) <link about.html> (c) <a src="about.html"> (d) <a alt="about.html">
  6. 6.📋 Which list tag lists things in any order? (a) <li> (b) <ol> (c) <ul>
  7. 7.📋 Which list tag is an unordered list? (a) <ul> (b) <ol> (c) <li>
  8. 8.🔢 In a basic web page file, which comes first: “<body>” or “</head>”? (a) <body> (b) </head>
  9. 9.🖼️ How many pixels wide is the picture drawn?
    <img src="moon.png" alt="The full moon" width="250">
  10. 10.🖼️ Why do we add alt text to an image? (a) to load it faster (b) to colour it (c) to describe the image (d) to make it bigger
  11. 11.📄 Can HTML on its own show paragraphs? (a) Yes (b) No
  12. 12.True or false: <br> has a closing tag. (a) False (b) True
  13. 13.🏷️ Which is the closing tag for <b>? (a) <b/> (b) <\b> (c) </b> (d) <b>
  14. 14.📝 What does <hr> draw? (a) a table (b) a link (c) a picture (d) a line across the page
  15. 15.💬 Which text will NOT show on the page?
    <p>Rain today</p>
    <p>Good morning!</p>
    <!-- <p>Our school trip</p> -->
    (a) Good morning! (b) Rain today (c) Our school trip
  16. 16.🔗 Which address opens when you click this link?
    <a href="games.html">Take the quiz</a>
    (a) contact.html (b) Take the quiz (c) games.html (d) about.html
  17. 17.📋 Does this list show bullets or numbers?
    <ul>
      <li>Papaya</li>
      <li>Guava</li>
    </ul>
    (a) bullets (b) numbers
  18. 18.🔠 How many <h1> headings should a page usually have? (a) 3 (b) 1 (c) 10 (d) 6
  19. 19.📋 Does this list show bullets or numbers?
    <ol>
      <li>Jamun</li>
      <li>Orange</li>
      <li>Grapes</li>
    </ol>
    (a) bullets (b) numbers
  20. 20.🔗 Where does this link open?
    <a href="news.html">Contact us</a>
    (a) in a new tab (b) in the same tab
  21. 21.📋 Does this list show bullets or numbers?
    <ul>
      <li>Orange</li>
      <li>Grapes</li>
      <li>Papaya</li>
    </ul>
    (a) numbers (b) bullets
  22. 22.🔠 Are headings shown in bold by default? (a) Yes (b) No
  23. 23.📋 Does this list show bullets or numbers?
    <ol>
      <li>Grapes</li>
      <li>Mango</li>
      <li>Papaya</li>
    </ol>
    (a) bullets (b) numbers
  24. 24.📝 What does <p> make? (a) a paragraph (b) a picture (c) a table (d) a link
  25. 25.📋 Does this list show bullets or numbers?
    <ol>
      <li>Grapes</li>
      <li>Mango</li>
    </ol>
    (a) numbers (b) bullets
  26. 26.🏷️ Which is the closing tag for <strong>? (a) <\strong> (b) <strong/> (c) </strong> (d) <strong>
  27. 27.🔗 Which words do you click on?
    <a href="maths.html">Art corner</a>
    (a) maths.html (b) School news (c) Art corner (d) href
  28. 28.📝 How many paragraphs does this code make?
    <p>Fun facts</p>
    <p>The red kite</p>
    <p>Cricket is fun.</p>
    <p>Our school trip</p>
    <p>Cricket is fun.</p>
    <p>Cricket is fun.</p>
  29. 29.True or false: <li> is an unordered list. (a) True (b) False
  30. 30.💬 How many paragraphs show on the page?
    <!-- <p>I love mangoes.</p> -->
    <p>Our school trip</p>
    <p>Rain today</p>
    <p>My pets</p>
  31. 31.🔡 Are HTML tag names usually written in small letters? (a) No (b) Yes
  32. 32.🔤 In “HTML”, what do the letters HT stand for? (a) Home Text (b) High Tech (c) HyperText (d) Hot Tags
  33. 33.📋 How many items does this list show?
    <ul>
      <li>Jamun</li>
      <li>Banana</li>
    </ul>
  34. 34.Which of these goes in the head? (a) <h1> (b) <a> (c) <p> (d) <link rel="stylesheet">
  35. 35.💬 Does the browser show comments on the page? (a) Yes (b) No
  36. 36.🔠 How many heading levels does HTML have? (a) 10 (b) 3 (c) 4 (d) 6
  37. 37.🏷️ Which is the closing tag for <u>? (a) <u> (b) <u/> (c) </u> (d) <\u>
  38. 38.Which of these is an opening tag? (a) </title> (b) </li> (c) </b> (d) <h1>
  39. 39.🖼️ How many pixels wide is the picture drawn?
    <img src="cake.jpg" alt="Birthday cake" width="300">
  40. 40.🔠 How many headings are in this code?
    <h1>Rain today</h1>
    <h4>The red kite</h4>
    <h4>Good morning!</h4>

Answer key

  1. <!DOCTYPE html>
  2. <meta>
  3. a code editor
  4. <h1>
  5. <a href="about.html">
  6. <ul>
  7. <ul>
  8. </head>
  9. 250
  10. to describe the image
  11. Yes
  12. False
  13. </b>
  14. a line across the page
  15. Our school trip
  16. games.html
  17. bullets
  18. 1
  19. numbers
  20. in the same tab
  21. bullets
  22. Yes
  23. numbers
  24. a paragraph
  25. numbers
  26. </strong>
  27. Art corner
  28. 6
  29. False
  30. 3
  31. Yes
  32. HyperText
  33. 2
  34. <link rel="stylesheet">
  35. No
  36. 6
  37. </u>
  38. <h1>
  39. 300
  40. 3

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