← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 808 · 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 true of a web server? (a) saves our .html files (b) has an address bar (c) turns HTML into a page (d) sends pages over the net
  2. 2.📝 Does <b> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  3. 3.💬 How many paragraphs show on the page?
    <!-- <p>I love mangoes.</p> -->
    <p>Fun facts</p>
    <p>The red kite</p>
    <!-- <p>My best friend</p> -->
  4. 4.📄 Can HTML on its own pick a random number? (a) No (b) Yes
  5. 5.📝 How many paragraphs does this code make?
    <p>Rain today</p>
    <h2>The red kite</h2>
    <p>Rain today</p>
  6. 6.🔗 Which words do you click on?
    <a href="about.html">Visit the site</a>
    (a) about.html (b) href (c) Maths fun (d) Visit the site
  7. 7.True or false: a code editor opens web pages for us. (a) False (b) True
  8. 8.🔠 Which heading shows the BIGGEST text: <h1>, <h2>, <h6> or <h3>? (a) <h2> (b) <h6> (c) <h1> (d) <h3>
  9. 9.🏷️ What does a closing tag have that an opening tag does not? (a) a slash / (b) a dot . (c) a hash # (d) a dollar $
  10. 10.🏷️ Which is the closing tag for <i>? (a) <i> (b) <i/> (c) </i> (d) <\i>
  11. 11.📋 Which tag goes around each item of a list? (a) <li> (b) <ol> (c) <p> (d) <ul>
  12. 12.🔍 Which line is missing its closing tag?
    line 1: <u>Good morning!</u>
    line 2: <p>My pets</p>
    line 3: <b>The red kite
    (a) line 3 (b) line 2 (c) line 1
  13. 13.🔠 Which heading shows the SMALLEST text: <h2>, <h5>, <h1> or <h4>? (a) <h5> (b) <h1> (c) <h2> (d) <h4>
  14. 14.💬 Which text will NOT show on the page?
    <!-- <p>Our school trip</p> -->
    <p>Rain today</p>
    <p>Cricket is fun.</p>
    <p>Fun facts</p>
    (a) Rain today (b) Our school trip (c) Fun facts (d) Cricket is fun.
  15. 15.🔍 Which is the odd one out? (a) has an address bar (b) turns HTML into a page (c) shows pages from the web (d) sends pages over the net
  16. 16.🔠 Which heading shows the SMALLEST text: <h5>, <h2>, <h4> or <h1>? (a) <h4> (b) <h5> (c) <h1> (d) <h2>
  17. 17.True or false: <p> goes in the head. (a) False (b) True
  18. 18.🔗 Which address opens when you click this link?
    <a href="news.html">Play games</a>
    (a) quiz.html (b) Play games (c) news.html (d) games.html
  19. 19.📝 How many paragraphs does this code make?
    <p>The red kite</p>
    <h2>I love mangoes.</h2>
    <h2>Hello, world!</h2>
    <h2>The red kite</h2>
  20. 20.Which of these is true of a web browser? (a) stores a website’s files (b) answers page requests (c) shows line numbers (d) opens web pages for us
  21. 21.True or false: <p> goes in the body. (a) True (b) False
  22. 22.📋 Does this list show bullets or numbers?
    <ol>
      <li>Jamun</li>
      <li>Orange</li>
      <li>Litchi</li>
    </ol>
    (a) numbers (b) bullets
  23. 23.🏷️ Is <h1> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  24. 24.📝 On how many lines does the browser show this paragraph?
    <p>Stars shine<br>Roses are red</p>
  25. 25.True or false: <h1> is an empty tag. (a) False (b) True
  26. 26.True or false: in <img>, src names the picture file. (a) True (b) False
  27. 27.Which of these is an empty tag? (a) <p> (b) <b> (c) <br> (d) <title>
  28. 28.🔠 Which heading shows the SMALLEST text: <h2>, <h5>, <h6> or <h4>? (a) <h6> (b) <h2> (c) <h5> (d) <h4>
  29. 29.🔍 Which line is missing its closing tag?
    line 1: <em>Good morning!</em>
    line 2: <i>Rain today
    line 3: <h1>The red kite</h1>
    (a) line 2 (b) line 1 (c) line 3
  30. 30.📝 What does <hr> draw? (a) a picture (b) a line across the page (c) a table (d) a link
  31. 31.📝 What does <p> make? (a) a link (b) a paragraph (c) a table (d) a picture
  32. 32.True or false: <br> is an empty tag. (a) False (b) True
  33. 33.🔠 Which heading shows the SMALLEST text: <h2>, <h4>, <h5> or <h6>? (a) <h5> (b) <h2> (c) <h6> (d) <h4>
  34. 34.🔗 Which words do you click on?
    <a href="news.html">Art corner</a>
    (a) School news (b) news.html (c) href (d) Art corner
  35. 35.🔠 How many <h1> headings should a page usually have? (a) 1 (b) 10 (c) 3 (d) 6
  36. 36.📝 On how many lines does the browser show this paragraph?
    <p>Sky is blue<br>Kites fly high<br>Stars shine<br>Rivers flow</p>
  37. 37.🖼️ Why do we add alt text to an image? (a) to make it bigger (b) to colour it (c) to load it faster (d) to describe the image
  38. 38.📋 Which list tag lists things in any order? (a) <li> (b) <ol> (c) <ul>
  39. 39.True or false: HTML on its own can make bullet lists. (a) False (b) True
  40. 40.🔍 One closing tag is missing. Which one?
    <h3>I love mangoes.</h3>
    <p>Cricket is fun.</p>
    <i>Fun facts
    (a) </p> (b) </i> (c) </h3> (d) </u>

Answer key

  1. sends pages over the net
  2. has a closing tag
  3. 2
  4. No
  5. 2
  6. Visit the site
  7. False
  8. <h1>
  9. a slash /
  10. </i>
  11. <li>
  12. line 3
  13. <h5>
  14. Our school trip
  15. sends pages over the net
  16. <h5>
  17. False
  18. news.html
  19. 1
  20. opens web pages for us
  21. True
  22. numbers
  23. an opening tag
  24. 2
  25. False
  26. True
  27. <br>
  28. <h6>
  29. line 2
  30. a line across the page
  31. a paragraph
  32. True
  33. <h6>
  34. Art corner
  35. 1
  36. 4
  37. to describe the image
  38. <ul>
  39. True
  40. </i>

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