← HTML basics test lesson New set →

HTML Worksheet: Practice Test

HTML and CSS lesson 10: HTML basics test · Set 701 · 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>Hello, world!</p> -->
    <p>Our school trip</p>
    <p>My pets</p>
    <p>I love mangoes.</p>
    (a) Hello, world! (b) My pets (c) Our school trip (d) I love mangoes.
  2. 2.🔠 Which heading shows the SMALLEST text: <h1>, <h4>, <h5> or <h6>? (a) <h6> (b) <h5> (c) <h1> (d) <h4>
  3. 3.📝 What does <hr> draw? (a) a picture (b) a link (c) a line across the page (d) a table
  4. 4.📋 Does this list show bullets or numbers?
    <ul>
      <li>Jamun</li>
      <li>Grapes</li>
    </ul>
    (a) numbers (b) bullets
  5. 5.🔗 Which words do you click on?
    <a href="games.html">About us</a>
    (a) Contact us (b) About us (c) href (d) games.html
  6. 6.💬 Which text will NOT show on the page?
    <!-- <p>Our school trip</p> -->
    <p>Fun facts</p>
    <p>I love mangoes.</p>
    <p>Cricket is fun.</p>
    (a) I love mangoes. (b) Cricket is fun. (c) Fun facts (d) Our school trip
  7. 7.📄 What is the first line of an HTML5 page? (a) <head> (b) <body> (c) <html> (d) <!DOCTYPE html>
  8. 8.🔍 One closing tag is missing. Which one?
    <strong>Hello, world!</strong>
    <small>Cricket is fun.
    <p>I love mangoes.</p>
    (a) </h1> (b) </small> (c) </p> (d) </strong>
  9. 9.Which of these is true of a web server? (a) colours code to help us (b) sends pages over the net (c) turns HTML into a page (d) has an address bar
  10. 10.True or false: <li> is one item of a list. (a) True (b) False
  11. 11.🔗 Which words do you click on?
    <a href="news.html">Take the quiz</a>
    (a) href (b) news.html (c) Take the quiz (d) Play games
  12. 12.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Art Gallery</title>
    </head>
    <body>
      <h1>Planets</h1>
      <p>I like to read.</p>
    </body>
    </html>
    (a) I like to read. (b) Art Gallery (c) body (d) Planets
  13. 13.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="bus.jpg" alt="Our school bus" width="400">
    (a) width (b) Our school bus (c) bus.jpg (d) An old fort
  14. 14.True or false: a code editor has an address bar. (a) False (b) True
  15. 15.🔠 Which heading shows the SMALLEST text: <h5>, <h1>, <h6> or <h3>? (a) <h5> (b) <h3> (c) <h1> (d) <h6>
  16. 16.🔠 How many heading levels does HTML have? (a) 6 (b) 10 (c) 3 (d) 4
  17. 17.🔠 How many headings are in this code?
    <h1>Hello, world!</h1>
    <p>Good morning!</p>
    <p>My pets</p>
    <p>The red kite</p>
  18. 18.📝 How many paragraphs does this code make?
    <p>Hello, world!</p>
    <p>My best friend</p>
    <p>Cricket is fun.</p>
    <h2>The red kite</h2>
  19. 19.True or false: <a> goes in the body. (a) False (b) True
  20. 20.🔠 Which heading shows the BIGGEST text: <h1>, <h5>, <h4> or <h6>? (a) <h5> (b) <h1> (c) <h6> (d) <h4>
  21. 21.True or false: in <img>, width describes the picture. (a) True (b) False
  22. 22.🌐 Which one colours code to help us? (a) a web server (b) a code editor (c) a web browser
  23. 23.📛 In <a href="x.html">, what is href? (a) a comment (b) a closing tag (c) an element name (d) an attribute
  24. 24.🏷️ Is </title> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  25. 25.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
  26. 26.💬 How many paragraphs show on the page?
    <!-- <p>Our school trip</p> -->
    <p>Cricket is fun.</p>
    <!-- <p>My pets</p> -->
  27. 27.🔠 Which heading shows the BIGGEST text: <h5>, <h4>, <h3> or <h1>? (a) <h5> (b) <h1> (c) <h3> (d) <h4>
  28. 28.📝 How many paragraphs does this code make?
    <p>Our school trip</p>
    <h2>Cricket is fun.</h2>
    <h2>The red kite</h2>
    <h2>Our school trip</h2>
    <p>My best friend</p>
    <h2>Hello, world!</h2>
  29. 29.🔗 Which address opens when you click this link?
    <a href="quiz.html">Art corner</a>
    (a) games.html (b) Art corner (c) about.html (d) quiz.html
  30. 30.🔠 Which heading shows the SMALLEST text: <h2>, <h1>, <h5> or <h3>? (a) <h2> (b) <h3> (c) <h5> (d) <h1>
  31. 31.True or false: <input> has a closing tag. (a) False (b) True
  32. 32.🏷️ Every HTML tag starts with which sign? (a) [ (b) < (c) ( (d) {
  33. 33.Which of these is true of a web server? (a) is where we type code (b) opens web pages for us (c) stores a website’s files (d) shows pages from the web
  34. 34.📄 Can HTML on its own pick a random number? (a) No (b) Yes
  35. 35.📋 Which list tag is one item of a list? (a) <li> (b) <ol> (c) <ul>
  36. 36.🔍 Which is the odd one out? (a) hosts websites online (b) answers page requests (c) sends pages over the net (d) colours code to help us
  37. 37.🖼️ Does <img> need a closing tag? (a) No (b) Yes
  38. 38.🔠 Are headings shown in bold by default? (a) No (b) Yes
  39. 39.🌐 Which one is where we type code? (a) a code editor (b) a web server (c) a web browser
  40. 40.📝 How many paragraphs does this code make?
    <p>The red kite</p>
    <h2>Rain today</h2>
    <h2>Our school trip</h2>
    <h2>Hello, world!</h2>
    <p>Hello, world!</p>
    <p>Good morning!</p>

Answer key

  1. Hello, world!
  2. <h6>
  3. a line across the page
  4. bullets
  5. About us
  6. Our school trip
  7. <!DOCTYPE html>
  8. </small>
  9. sends pages over the net
  10. True
  11. Take the quiz
  12. Planets
  13. Our school bus
  14. False
  15. <h6>
  16. 6
  17. 1
  18. 3
  19. True
  20. <h1>
  21. False
  22. a code editor
  23. an attribute
  24. a closing tag
  25. Yes
  26. 1
  27. <h1>
  28. 2
  29. quiz.html
  30. <h5>
  31. False
  32. <
  33. stores a website’s files
  34. No
  35. <li>
  36. colours code to help us
  37. No
  38. Yes
  39. a code editor
  40. 3

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