← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 373 · 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>Fun facts</p>
    <p>Good morning!</p>
    <p>The red kite</p>
    <!-- <p>My pets</p> -->
  2. 2.📋 Which list tag is an unordered list? (a) <ol> (b) <li> (c) <ul>
  3. 3.🏷️ Is <title> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  4. 4.True or false: a code editor shows pages from the web. (a) False (b) True
  5. 5.🔗 Which words do you click on?
    <a href="news.html">Maths fun</a>
    (a) news.html (b) href (c) Maths fun (d) Art corner
  6. 6.🔠 Are headings shown in bold by default? (a) No (b) Yes
  7. 7.📄 Where does <meta charset="utf-8"> go: in the head or in the body? (a) in the head (b) in the body
  8. 8.📝 What does <p> make? (a) a link (b) a paragraph (c) a picture (d) a table
  9. 9.🔗 Which attribute holds the address of a link? (a) id (b) alt (c) href (d) src
  10. 10.🏷️ Is </body> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  11. 11.🔗 Where does this link open?
    <a href="about.html">School news</a>
    (a) in a new tab (b) in the same tab
  12. 12.True or false: <title> goes in the body. (a) True (b) False
  13. 13.🏷️ Which is the closing tag for <u>? (a) <\u> (b) <u> (c) </u> (d) <u/>
  14. 14.🔗 Which tag makes a clickable link? (a) <link> (b) <p> (c) <a> (d) <img>
  15. 15.🌐 Which one sends pages over the net? (a) a code editor (b) a web browser (c) a web server
  16. 16.💬 Which text will NOT show on the page?
    <p>I love mangoes.</p>
    <!-- <p>Our school trip</p> -->
    <p>My pets</p>
    <p>Hello, world!</p>
    (a) My pets (b) I love mangoes. (c) Our school trip (d) Hello, world!
  17. 17.True or false: a web server stores a website’s files. (a) True (b) False
  18. 18.Which of these is an empty tag? (a) <input> (b) <p> (c) <h1> (d) <title>
  19. 19.💬 Why do coders write comments? (a) to show pictures (b) to leave notes (c) to add colour (d) to make links
  20. 20.📋 Does this list show bullets or numbers?
    <ul>
      <li>Guava</li>
      <li>Banana</li>
      <li>Orange</li>
    </ul>
    (a) bullets (b) numbers
  21. 21.Which of these is true of a code editor? (a) stores a website’s files (b) colours code to help us (c) turns HTML into a page (d) shows pages from the web
  22. 22.🔗 What does HyperText mean? (a) secret text (b) text with links (c) very big text (d) text in colour
  23. 23.📝 Does <img> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  24. 24.🔢 In a basic web page file, which comes first: “</body>” or “<html>”? (a) </body> (b) <html>
  25. 25.🔠 Which heading shows the SMALLEST text: <h1>, <h4>, <h2> or <h6>? (a) <h2> (b) <h1> (c) <h6> (d) <h4>
  26. 26.🖼️ Which attribute of <img> describes the picture? (a) width (b) src (c) alt (d) height
  27. 27.Which of these goes in the head? (a) <p> (b) <link rel="stylesheet"> (c) <table> (d) <h1>
  28. 28.🔠 Which tag is the least important heading? (a) <h6> (b) <p> (c) <h1> (d) <h3>
  29. 29.📄 Where does <title> go: in the head or in the body? (a) in the body (b) in the head
  30. 30.🔠 How many headings are in this code?
    <h1>Rain today</h1>
    <h2>I love mangoes.</h2>
    <p>My pets</p>
  31. 31.📝 What do we need to write HTML? (a) a printer (b) a microphone (c) a plain text editor (d) a paintbrush
  32. 32.📄 Can HTML on its own make links to pages? (a) Yes (b) No
  33. 33.🔗 Where does this link open?
    <a href="games.html">Visit the site</a>
    (a) in a new tab (b) in the same tab
  34. 34.🔗 Which address opens when you click this link?
    <a href="quiz.html">Contact us</a>
    (a) Contact us (b) games.html (c) about.html (d) quiz.html
  35. 35.Which of these is an opening tag? (a) </li> (b) </h1> (c) <p> (d) </body>
  36. 36.🔗 Which code links to about.html? (a) <a src="about.html"> (b) <a href="about.html"> (c) <a alt="about.html"> (d) <link about.html>
  37. 37.💬 Can anyone read your comments by viewing the page source? (a) Yes (b) No
  38. 38.True or false: <li> shows 1, 2, 3 numbers. (a) False (b) True
  39. 39.🌐 Which one shows pages from the web? (a) a code editor (b) a web browser (c) a web server
  40. 40.🔠 Which heading shows the BIGGEST text: <h4>, <h5>, <h1> or <h2>? (a) <h4> (b) <h1> (c) <h5> (d) <h2>

Answer key

  1. 3
  2. <ul>
  3. an opening tag
  4. False
  5. Maths fun
  6. Yes
  7. in the head
  8. a paragraph
  9. href
  10. a closing tag
  11. in the same tab
  12. False
  13. </u>
  14. <a>
  15. a web server
  16. Our school trip
  17. True
  18. <input>
  19. to leave notes
  20. bullets
  21. colours code to help us
  22. text with links
  23. an empty tag
  24. <html>
  25. <h6>
  26. alt
  27. <link rel="stylesheet">
  28. <h6>
  29. in the head
  30. 2
  31. a plain text editor
  32. Yes
  33. in the same tab
  34. quiz.html
  35. <p>
  36. <a href="about.html">
  37. Yes
  38. False
  39. a web browser
  40. <h1>

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