← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 707 · 40 questions
TalentJR

Code tip (Read it like a browser): Find the topic: HTML, CSS, JavaScript or how the web works. Read the code line by line, the way a browser would. For sums and loops, write each step down and check it again.

NameDateTime takenScore ___ / 40
  1. 1.📋 Which list tag lists things in any order? (a) <li> (b) <ol> (c) <ul>
  2. 2.True or false: <img src="cat.png"> goes in script.js. (a) False (b) True
  3. 3.🖌️ How big is the text, in px?
    p {
      background-color: black;
      color: green;
      font-size: 16px;
      text-align: left;
    }
  4. 4.What does justify-content: flex-start do? (a) packs boxes at the start (b) packs boxes at the end (c) puts boxes in the middle (d) equal gaps, none at ends
  5. 5.📊 How many heading cells (<th>) does this table have?
    <table>
      <tr><th>Name</th><th>Fruit</th></tr>
      <tr><td>Mango</td><td>Guava</td></tr>
    </table>
  6. 6.What does justify-content: center do? (a) packs boxes at the start (b) equal gaps, none at ends (c) puts boxes in the middle (d) packs boxes at the end
  7. 7.⚖️ Which selector is the weakest? (a) a class selector (b) an element selector (c) an id selector
  8. 8.🚀 Which file should this code go in: .box { padding: 8px; } (a) script.js (b) style.css (c) index.html
  9. 9.♿ Who uses a screen reader? (a) only coders (b) only teachers (c) only robots (d) people who are blind
  10. 10.🧭 Which semantic tag holds a side box of tips? (a) <footer> (b) <main> (c) <aside> (d) <article>
  11. 11.🔠 Which heading shows the SMALLEST text: <h4>, <h6>, <h2> or <h5>? (a) <h5> (b) <h2> (c) <h4> (d) <h6>
  12. 12.🚀 Which file should this code go in: p { color: red; } (a) style.css (b) index.html (c) script.js
  13. 13.True or false: in <img>, height sets how tall it is. (a) True (b) False
  14. 14.True or false: <input type="date"> picks a day. (a) True (b) False
  15. 15.🔡 Are HTML tag names usually written in small letters? (a) Yes (b) No
  16. 16.⚖️ Two rules with the same selector set a colour. Which one wins? (a) the first one (b) neither (c) the later one (d) the shorter one
  17. 17.🔗 Which address opens when you click this link?
    <a href="art.html">Play games</a>
    (a) art.html (b) quiz.html (c) Play games (d) news.html
  18. 18.🔗 Which tag makes a clickable link? (a) <img> (b) <p> (c) <link> (d) <a>
  19. 19.🎯 Can many elements share the same class? (a) Yes (b) No
  20. 20.🖼️ Which picture file does the browser load?
    <img src="cake.jpg" alt="Birthday cake" width="50">
    (a) dog.jpg (b) moon.png (c) cake.jpg (d) Birthday cake
  21. 21.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="moon.png" alt="The full moon" width="200">
    (a) Our school bus (b) The full moon (c) moon.png (d) width
  22. 22.♿ What does good colour contrast mean? (a) many bright colours (b) no colours at all (c) text stands out clearly (d) only red text
  23. 23.⚡ A JavaScript file usually ends with which extension? (a) .jpg (b) .js (c) .html (d) .css
  24. 24.Which of these goes in the head? (a) <h1> (b) <a> (c) <meta charset="utf-8"> (d) <ul>
  25. 25.🔠 How many heading levels does HTML have? (a) 6 (b) 10 (c) 3 (d) 4
  26. 26.📋 Does this list show bullets or numbers?
    <ol>
      <li>Litchi</li>
      <li>Guava</li>
    </ol>
    (a) bullets (b) numbers
  27. 27.🧱 HTML gives a web page its ___. (a) colours (b) speed (c) sound (d) structure
  28. 28.📝 How many paragraphs does this code make?
    <p>Fun facts</p>
    <p>Our school trip</p>
    <p>Our school trip</p>
  29. 29.💬 Can anyone read your comments by viewing the page source? (a) Yes (b) No
  30. 30.True or false: <article> holds a news story. (a) False (b) True
  31. 31.🏷️ Is <li> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  32. 32.Which of these is true of <main>? (a) holds one blog post (b) helps you move around (c) is the page’s key part (d) sits at the very top
  33. 33.🔗 Which address opens when you click this link?
    <a href="contact.html">About us</a>
    (a) maths.html (b) https://example.com (c) About us (d) contact.html
  34. 34.🔢 In a basic web page file, which comes FIRST? (a) <html> (b) </head> (c) </html> (d) <!DOCTYPE html>
  35. 35.📱 The screen is 414px wide. What font-size (px) does the paragraph get?
    p {
      font-size: 20px;
    }
    @media (max-width: 1024px) {
      p {
        font-size: 18px;
      }
    }
  36. 36.🔠 Which heading shows the BIGGEST text: <h1>, <h2>, <h4> or <h3>? (a) <h4> (b) <h2> (c) <h3> (d) <h1>
  37. 37.📋 Does this list show bullets or numbers?
    <ul>
      <li>Orange</li>
      <li>Papaya</li>
      <li>Mango</li>
    </ul>
    (a) numbers (b) bullets
  38. 38.Which of these is true of <aside>? (a) is the page’s key part (b) holds the main content (c) holds a side box of tips (d) sits at the very top
  39. 39.🌈 Which hex code is magenta? (a) #00ffff (b) #000000 (c) #ff00ff (d) #00ff00
  40. 40.♿ Does this help everyone, or make the page harder to use: images with no alt? (a) helps everyone (b) makes it harder

Answer key

  1. <ul>
  2. False
  3. 16
  4. packs boxes at the start
  5. 2
  6. puts boxes in the middle
  7. an element selector
  8. style.css
  9. people who are blind
  10. <aside>
  11. <h6>
  12. style.css
  13. True
  14. True
  15. Yes
  16. the later one
  17. art.html
  18. <a>
  19. Yes
  20. cake.jpg
  21. The full moon
  22. text stands out clearly
  23. .js
  24. <meta charset="utf-8">
  25. 6
  26. numbers
  27. structure
  28. 3
  29. Yes
  30. True
  31. an opening tag
  32. is the page’s key part
  33. contact.html
  34. <!DOCTYPE html>
  35. 18
  36. <h1>
  37. bullets
  38. holds a side box of tips
  39. #ff00ff
  40. makes it harder

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