← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 116 · 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.True or false: <ul> shows bullet points. (a) False (b) True
  2. 2.📝 On how many lines does the browser show this paragraph?
    <p>Sky is blue<br>Birds sing<br>Rivers flow</p>
  3. 3.🔗 Which words do you click on?
    <a href="art.html">Art corner</a>
    (a) School news (b) art.html (c) Art corner (d) href
  4. 4.🔍 One closing tag is missing. Which one?
    <h1>Our school trip</h1>
    <em>Cricket is fun.
    <u>My best friend</u>
    (a) </u> (b) </em> (c) </p> (d) </h1>
  5. 5.🖼️ Which tag puts a picture on a page? (a) <img> (b) <a> (c) <p> (d) <pic>
  6. 6.🔗 Where does this link open?
    <a href="about.html">Take the quiz</a>
    (a) in a new tab (b) in the same tab
  7. 7.💬 Which text will NOT show on the page?
    <!-- <p>My best friend</p> -->
    <p>Rain today</p>
    <p>Cricket is fun.</p>
    (a) Cricket is fun. (b) Rain today (c) My best friend
  8. 8.🔠 Which heading shows the SMALLEST text: <h6>, <h2>, <h3> or <h4>? (a) <h4> (b) <h6> (c) <h2> (d) <h3>
  9. 9.📋 What number does the browser show next to “Litchi”?
    <ol>
      <li>Banana</li>
      <li>Orange</li>
      <li>Litchi</li>
    </ol>
  10. 10.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="kite.png" alt="A red kite" width="400">
    (a) width (b) kite.png (c) A red kite (d) Map of India
  11. 11.🔍 Which line is missing its closing tag?
    line 1: <i>Fun facts</i>
    line 2: <b>Cricket is fun.</b>
    line 3: <h3>Good morning!
    (a) line 3 (b) line 1 (c) line 2
  12. 12.📄 Can HTML on its own make a form? (a) No (b) Yes
  13. 13.📄 Can HTML on its own pick a random number? (a) Yes (b) No
  14. 14.💬 How does an HTML comment start? (a) /* (b) # (c) // (d) <!--
  15. 15.📄 Can HTML on its own make headings? (a) Yes (b) No
  16. 16.📋 How many items does this list show?
    <ol>
      <li>Orange</li>
      <li>Jamun</li>
      <li>Banana</li>
      <li>Papaya</li>
    </ol>
  17. 17.🔍 Which is the odd one out? (a) sends pages over the net (b) answers page requests (c) hosts websites online (d) saves our .html files
  18. 18.📄 Where does <img> go: in the head or in the body? (a) in the head (b) in the body
  19. 19.📄 Where does the text of <title> appear? (a) at the bottom (b) nowhere (c) on the browser tab (d) in a big heading
  20. 20.🔗 Where does this link open?
    <a href="art.html">Play games</a>
    (a) in the same tab (b) in a new tab
  21. 21.🔍 One closing tag is missing. Which one?
    <p>Fun facts
    <i>My best friend</i>
    <h1>Cricket is fun.</h1>
    (a) </i> (b) </p> (c) </strong> (d) </h1>
  22. 22.True or false: a web server sends pages over the net. (a) False (b) True
  23. 23.🔍 One closing tag is missing. Which one?
    <small>Hello, world!</small>
    <i>My best friend</i>
    <h3>My pets
    (a) </i> (b) </b> (c) </h3> (d) </small>
  24. 24.🏷️ Is </body> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  25. 25.📋 Which list tag is an unordered list? (a) <ol> (b) <li> (c) <ul>
  26. 26.💬 How many paragraphs show on the page?
    <!-- <p>Cricket is fun.</p> -->
    <!-- <p>My pets</p> -->
    <p>Our school trip</p>
  27. 27.💬 Which text will NOT show on the page?
    <p>Rain today</p>
    <!-- <p>My pets</p> -->
    <p>Good morning!</p>
    (a) Rain today (b) Good morning! (c) My pets
  28. 28.🌍 Which program shows a web page to us? (a) a music player (b) a web browser (c) a calculator (d) a paint program
  29. 29.🔠 Which tag is the least important heading? (a) <h1> (b) <h3> (c) <p> (d) <h6>
  30. 30.📝 What does <hr> draw? (a) a line across the page (b) a table (c) a link (d) a picture
  31. 31.📝 How many paragraphs does this code make?
    <p>My best friend</p>
    <p>Fun facts</p>
    <p>My pets</p>
  32. 32.🖼️ 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
  33. 33.🔠 How many <h1> headings should a page usually have? (a) 10 (b) 6 (c) 1 (d) 3
  34. 34.🔠 How many headings are in this code?
    <h1>Cricket is fun.</h1>
    <h4>My best friend</h4>
    <p>My pets</p>
    <p>My best friend</p>
    <p>Hello, world!</p>
  35. 35.🔗 Which tag makes a clickable link? (a) <link> (b) <p> (c) <img> (d) <a>
  36. 36.True or false: <title> goes in the body. (a) False (b) True
  37. 37.💬 Which text will NOT show on the page?
    <p>Good morning!</p>
    <p>Cricket is fun.</p>
    <!-- <p>I love mangoes.</p> -->
    (a) Cricket is fun. (b) I love mangoes. (c) Good morning!
  38. 38.📄 Can HTML on its own make bullet lists? (a) No (b) Yes
  39. 39.🔗 Which address opens when you click this link?
    <a href="maths.html">School news</a>
    (a) School news (b) news.html (c) art.html (d) maths.html
  40. 40.💬 How many paragraphs show on the page?
    <!-- <p>Hello, world!</p> -->
    <!-- <p>Good morning!</p> -->
    <!-- <p>Cricket is fun.</p> -->
    <p>Our school trip</p>
    <!-- <p>My best friend</p> -->

Answer key

  1. True
  2. 3
  3. Art corner
  4. </em>
  5. <img>
  6. in the same tab
  7. My best friend
  8. <h6>
  9. 3
  10. A red kite
  11. line 3
  12. Yes
  13. No
  14. <!--
  15. Yes
  16. 4
  17. saves our .html files
  18. in the body
  19. on the browser tab
  20. in the same tab
  21. </p>
  22. True
  23. </h3>
  24. a closing tag
  25. <ul>
  26. 1
  27. My pets
  28. a web browser
  29. <h6>
  30. a line across the page
  31. 3
  32. to describe the image
  33. 1
  34. 2
  35. <a>
  36. False
  37. I love mangoes.
  38. Yes
  39. maths.html
  40. 1

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