← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 725 · 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 text will NOT show on the page?
    <p>My pets</p>
    <!-- <p>The red kite</p> -->
    <p>Our school trip</p>
    (a) My pets (b) Our school trip (c) The red kite
  2. 2.🔗 Which words do you click on?
    <a href="about.html">Play games</a>
    (a) Play games (b) href (c) About us (d) about.html
  3. 3.🔍 Which is the odd one out? (a) answers page requests (b) opens web pages for us (c) sends pages over the net (d) hosts websites online
  4. 4.🔠 Which heading shows the BIGGEST text: <h5>, <h2>, <h6> or <h1>? (a) <h5> (b) <h6> (c) <h1> (d) <h2>
  5. 5.🏷️ Is </p> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  6. 6.💬 Which text will NOT show on the page?
    <p>Cricket is fun.</p>
    <p>The red kite</p>
    <!-- <p>Hello, world!</p> -->
    <p>Fun facts</p>
    (a) The red kite (b) Fun facts (c) Cricket is fun. (d) Hello, world!
  7. 7.🖼️ Which picture file does the browser load?
    <img src="kite.png" alt="A red kite" width="50">
    (a) kite.png (b) A red kite (c) cake.jpg (d) map.png
  8. 8.🔗 Which words do you click on?
    <a href="games.html">Contact us</a>
    (a) games.html (b) Visit the site (c) Contact us (d) href
  9. 9.📛 In <a href="x.html">, what is href? (a) an attribute (b) an element name (c) a closing tag (d) a comment
  10. 10.💬 Which text will NOT show on the page?
    <p>Rain today</p>
    <p>My pets</p>
    <!-- <p>The red kite</p> -->
    (a) The red kite (b) My pets (c) Rain today
  11. 11.True or false: HTML on its own cannot make bullet lists. (a) False (b) True
  12. 12.Which of these is an empty tag? (a) <li> (b) <ul> (c) <p> (d) <br>
  13. 13.🏷️ Every HTML tag starts with which sign? (a) ( (b) [ (c) { (d) <
  14. 14.🔠 Which heading shows the BIGGEST text: <h1>, <h2>, <h5> or <h3>? (a) <h5> (b) <h3> (c) <h1> (d) <h2>
  15. 15.True or false: a code editor turns HTML into a page. (a) False (b) True
  16. 16.📝 How many paragraphs does this code make?
    <p>My best friend</p>
    <h2>Our school trip</h2>
    <p>I love mangoes.</p>
    <h2>My pets</h2>
    <h2>The red kite</h2>
  17. 17.📝 Does <br> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  18. 18.Which of these goes in the head? (a) <a> (b) <meta charset="utf-8"> (c) <p> (d) <table>
  19. 19.Which of these is true of a web browser? (a) is where we type code (b) answers page requests (c) stores a website’s files (d) turns HTML into a page
  20. 20.🔍 Which line is missing its closing tag?
    line 1: <h3>Cricket is fun.
    line 2: <b>Our school trip</b>
    line 3: <h1>Rain today</h1>
    (a) line 3 (b) line 1 (c) line 2
  21. 21.🔠 Which heading shows the SMALLEST text: <h1>, <h4>, <h6> or <h2>? (a) <h4> (b) <h1> (c) <h2> (d) <h6>
  22. 22.🔠 Which heading shows the SMALLEST text: <h1>, <h6>, <h2> or <h5>? (a) <h1> (b) <h5> (c) <h6> (d) <h2>
  23. 23.💬 How many paragraphs show on the page?
    <p>Good morning!</p>
    <p>Cricket is fun.</p>
    <p>I love mangoes.</p>
    <!-- <p>Hello, world!</p> -->
  24. 24.Which of these goes in the head? (a) <style> (b) <table> (c) <p> (d) <img>
  25. 25.🔠 How many <h1> headings should a page usually have? (a) 10 (b) 1 (c) 3 (d) 6
  26. 26.📄 Where does <p> go: in the head or in the body? (a) in the body (b) in the head
  27. 27.🔡 Are HTML tag names usually written in small letters? (a) No (b) Yes
  28. 28.📄 What is the first line of an HTML5 page? (a) <!DOCTYPE html> (b) <html> (c) <body> (d) <head>
  29. 29.True or false: <li> is an unordered list. (a) False (b) True
  30. 30.True or false: in <img>, src tells which image to load. (a) True (b) False
  31. 31.📝 How many paragraphs does this code make?
    <p>Our school trip</p>
    <p>Our school trip</p>
    <h2>Fun facts</h2>
    <p>The red kite</p>
    <p>Fun facts</p>
    <p>Cricket is fun.</p>
  32. 32.🔠 Which heading shows the SMALLEST text: <h2>, <h6>, <h1> or <h3>? (a) <h1> (b) <h6> (c) <h3> (d) <h2>
  33. 33.📄 Where does <h1> go: in the head or in the body? (a) in the head (b) in the body
  34. 34.True or false: <ul> shows bullet points. (a) True (b) False
  35. 35.Which of these is true of a web browser? (a) hosts websites online (b) opens web pages for us (c) sends pages over the net (d) shows line numbers
  36. 36.True or false: <li> is an ordered list. (a) True (b) False
  37. 37.🔠 Which heading shows the BIGGEST text: <h6>, <h1>, <h4> or <h3>? (a) <h1> (b) <h3> (c) <h4> (d) <h6>
  38. 38.🔗 Where does this link open?
    <a href="art.html" target="_blank">Art corner</a>
    (a) in a new tab (b) in the same tab
  39. 39.🔗 Which address opens when you click this link?
    <a href="art.html">Maths fun</a>
    (a) art.html (b) Maths fun (c) news.html (d) quiz.html
  40. 40.💬 How many paragraphs show on the page?
    <!-- <p>Hello, world!</p> -->
    <p>My pets</p>
    <p>Rain today</p>
    <p>I love mangoes.</p>
    <!-- <p>My best friend</p> -->

Answer key

  1. The red kite
  2. Play games
  3. opens web pages for us
  4. <h1>
  5. a closing tag
  6. Hello, world!
  7. kite.png
  8. Contact us
  9. an attribute
  10. The red kite
  11. False
  12. <br>
  13. <
  14. <h1>
  15. False
  16. 2
  17. an empty tag
  18. <meta charset="utf-8">
  19. turns HTML into a page
  20. line 1
  21. <h6>
  22. <h6>
  23. 3
  24. <style>
  25. 1
  26. in the body
  27. Yes
  28. <!DOCTYPE html>
  29. False
  30. True
  31. 5
  32. <h6>
  33. in the body
  34. True
  35. opens web pages for us
  36. False
  37. <h1>
  38. in a new tab
  39. art.html
  40. 3

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