← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 674 · 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.Which of these is an opening tag? (a) </b> (b) </h1> (c) </body> (d) <p>
  2. 2.🔠 How many <h1> headings should a page usually have? (a) 6 (b) 1 (c) 3 (d) 10
  3. 3.Which of these is a closing tag? (a) </p> (b) <body> (c) <title> (d) <h1>
  4. 4.🔗 What does target="_blank" do to a link? (a) hides the link (b) makes it bold (c) makes it blank (d) opens it in a new tab
  5. 5.Which of these is true of a web browser? (a) is where we type code (b) colours code to help us (c) shows pages from the web (d) saves our .html files
  6. 6.True or false: a web browser shows pages from the web. (a) True (b) False
  7. 7.🔠 How many headings are in this code?
    <h1>Our school trip</h1>
    <p>Cricket is fun.</p>
    <p>Cricket is fun.</p>
    <h2>I love mangoes.</h2>
  8. 8.🔗 Which words do you click on?
    <a href="art.html">Maths fun</a>
    (a) art.html (b) Art corner (c) href (d) Maths fun
  9. 9.🔗 Which address opens when you click this link?
    <a href="news.html">Visit the site</a>
    (a) news.html (b) Visit the site (c) games.html (d) quiz.html
  10. 10.🌐 Which one answers page requests? (a) a web browser (b) a code editor (c) a web server
  11. 11.📄 Can HTML on its own make links to pages? (a) Yes (b) No
  12. 12.Which of these is an opening tag? (a) </li> (b) <li> (c) </body> (d) </p>
  13. 13.🔍 Which is the odd one out? (a) is where we type code (b) has an address bar (c) saves our .html files (d) colours code to help us
  14. 14.📋 Does this list show bullets or numbers?
    <ol>
      <li>Litchi</li>
      <li>Papaya</li>
      <li>Orange</li>
    </ol>
    (a) bullets (b) numbers
  15. 15.💬 Which text will NOT show on the page?
    <!-- <p>My best friend</p> -->
    <p>Cricket is fun.</p>
    <p>The red kite</p>
    (a) The red kite (b) My best friend (c) Cricket is fun.
  16. 16.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
  17. 17.True or false: <a> goes in the head. (a) True (b) False
  18. 18.Which of these has a closing tag? (a) <ul> (b) <br> (c) <input> (d) <hr>
  19. 19.🔠 How many headings are in this code?
    <h1>The red kite</h1>
    <h4>Fun facts</h4>
    <h2>Cricket is fun.</h2>
    <h3>My pets</h3>
  20. 20.🌐 Which one opens web pages for us? (a) a code editor (b) a web server (c) a web browser
  21. 21.🔗 Which address opens when you click this link?
    <a href="art.html">Maths fun</a>
    (a) quiz.html (b) news.html (c) Maths fun (d) art.html
  22. 22.📋 Which list tag is an ordered list? (a) <li> (b) <ul> (c) <ol>
  23. 23.🔠 Which heading shows the BIGGEST text: <h3>, <h1>, <h2> or <h4>? (a) <h1> (b) <h3> (c) <h2> (d) <h4>
  24. 24.🔗 Which words do you click on?
    <a href="games.html">About us</a>
    (a) href (b) games.html (c) About us (d) Contact us
  25. 25.📝 What do we need to write HTML? (a) a printer (b) a paintbrush (c) a microphone (d) a plain text editor
  26. 26.📋 What number does the browser show next to “Jamun”?
    <ol>
      <li>Papaya</li>
      <li>Grapes</li>
      <li>Litchi</li>
      <li>Jamun</li>
    </ol>
  27. 27.📋 Does this list show bullets or numbers?
    <ol>
      <li>Grapes</li>
      <li>Mango</li>
    </ol>
    (a) numbers (b) bullets
  28. 28.📋 Which list suits a shopping list in any order? (a) <ol> (b) <hr> (c) <ul> (d) <br>
  29. 29.🔗 Which words do you click on?
    <a href="maths.html">About us</a>
    (a) maths.html (b) About us (c) Contact us (d) href
  30. 30.🔠 Which heading shows the SMALLEST text: <h1>, <h3>, <h2> or <h4>? (a) <h4> (b) <h1> (c) <h3> (d) <h2>
  31. 31.📝 Does <h1> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  32. 32.🔍 Which line is missing its closing tag?
    line 1: <b>Hello, world!
    line 2: <strong>Rain today</strong>
    line 3: <h3>My pets</h3>
    (a) line 2 (b) line 3 (c) line 1
  33. 33.📝 Does <b> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  34. 34.🖼️ How many pixels wide is the picture drawn?
    <img src="kite.png" alt="A red kite" width="400">
  35. 35.💬 How does an HTML comment start? (a) # (b) // (c) /* (d) <!--
  36. 36.🔗 Which words do you click on?
    <a href="quiz.html">About us</a>
    (a) Contact us (b) quiz.html (c) href (d) About us
  37. 37.🌍 Which program shows a web page to us? (a) a music player (b) a calculator (c) a web browser (d) a paint program
  38. 38.🔗 Where does this link open?
    <a href="quiz.html">About us</a>
    (a) in a new tab (b) in the same tab
  39. 39.🔗 Which words do you click on?
    <a href="https://example.com">Play games</a>
    (a) href (b) https://example.com (c) Play games (d) About us
  40. 40.💬 How many paragraphs show on the page?
    <!-- <p>Cricket is fun.</p> -->
    <!-- <p>The red kite</p> -->
    <p>Our school trip</p>
    <p>Good morning!</p>
    <!-- <p>Fun facts</p> -->

Answer key

  1. <p>
  2. 1
  3. </p>
  4. opens it in a new tab
  5. shows pages from the web
  6. True
  7. 2
  8. Maths fun
  9. news.html
  10. a web server
  11. Yes
  12. <li>
  13. has an address bar
  14. numbers
  15. My best friend
  16. Yes
  17. False
  18. <ul>
  19. 4
  20. a web browser
  21. art.html
  22. <ol>
  23. <h1>
  24. About us
  25. a plain text editor
  26. 4
  27. numbers
  28. <ul>
  29. About us
  30. <h4>
  31. has a closing tag
  32. line 1
  33. has a closing tag
  34. 400
  35. <!--
  36. About us
  37. a web browser
  38. in the same tab
  39. Play games
  40. 2

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