← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 882 · 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.📊 How many cells does this table have in all?
    <table>
      <tr><td>Orange</td><td>Guava</td><td>Papaya</td><td>Grapes</td></tr>
      <tr><td>Orange</td><td>Mango</td><td>Litchi</td><td>Litchi</td></tr>
      <tr><td>Grapes</td><td>Guava</td><td>Grapes</td><td>Orange</td></tr>
    </table>
  2. 2.True or false: to meet an online stranger is not safe. (a) True (b) False
  3. 3.Which of these is an empty tag? (a) <h1> (b) <title> (c) <hr> (d) <ul>
  4. 4.⚡ Which JavaScript word repeats code? (a) if (b) let (c) for (d) console.log()
  5. 5.🛡️ Online: is it safe to type a password on http? (a) safe (b) not safe
  6. 6.✍️ Which property is set to 10px in this rule?
    p {
      margin: 10px;
      background-color: yellow;
      width: 300px;
    }
    (a) 10px (b) font-weight (c) padding (d) margin
  7. 7.🎯 Which element does the selector li style? (a) <p id="hero"> (b) <li class="red"> (c) <span class="red"> (d) <div>
  8. 8.🖌️ Which CSS property picks the font style? (a) background-color (b) font-size (c) font-family (d) text-align
  9. 9.🌍 What is the path in this URL?
    https://school.example.in/about.html
    (a) /maths/tables.html (b) school.example.in (c) /about.html (d) https
  10. 10.Which of these is a weak password? (a) S0lar!Pen#8 (b) riya2014 (c) Blue@Tiger_74 (d) Kite_Fl1es@Dawn
  11. 11.🔠 Which heading shows the SMALLEST text: <h6>, <h4>, <h2> or <h1>? (a) <h2> (b) <h6> (c) <h1> (d) <h4>
  12. 12.True or false: <img> goes in the head. (a) False (b) True
  13. 13.💬 Which text will NOT show on the page?
    <!-- <p>Our school trip</p> -->
    <p>The red kite</p>
    <p>Cricket is fun.</p>
    (a) Our school trip (b) Cricket is fun. (c) The red kite
  14. 14.🔍 One closing tag is missing. Which one?
    <h2>Our school trip</h2>
    <u>Cricket is fun.</u>
    <i>Hello, world!
    (a) </strong> (b) </u> (c) </h2> (d) </i>
  15. 15.📋 Which list tag is an ordered list? (a) <ul> (b) <li> (c) <ol>
  16. 16.🔍 One closing tag is missing. Which one?
    <small>The red kite</small>
    <strong>My pets
    <i>Good morning!</i>
    (a) </b> (b) </i> (c) </small> (d) </strong>
  17. 17.💪 How much empty space (px) is before the first box?
    .row {
      display: flex;
      width: 240px;
      justify-content: flex-end;
    }
    Inside are 3 boxes, each 60px wide (no margins).
  18. 18.📋 Does this list show bullets or numbers?
    <ol>
      <li>Grapes</li>
      <li>Jamun</li>
      <li>Mango</li>
    </ol>
    (a) bullets (b) numbers
  19. 19.True or false: <li> goes inside ul or ol. (a) False (b) True
  20. 20.Which of these has a closing tag? (a) <br> (b) <hr> (c) <title> (d) <img>
  21. 21.🌈 Which hex code is blue? (a) #ff0000 (b) #00ffff (c) #0000ff (d) #00ff00
  22. 22.🔁 Which word runs code only when something is true? (a) log (b) if (c) let (d) for
  23. 23.True or false: HTML on its own can pick a random number. (a) True (b) False
  24. 24.🖌️ What colour are the letters?
    h1 {
      color: white;
      background-color: orange;
      text-align: center;
      font-size: 24px;
    }
    (a) orange (b) red (c) white
  25. 25.🖌️ Which CSS property colours behind the text? (a) font-weight (b) font-size (c) font-family (d) background-color
  26. 26.🛡️ Should you share your password with your best friend? (a) Yes (b) No
  27. 27.🎯 Which CSS selector matches this element?
    <h1 class="box" id="top">Hello</h1>
    (a) #intro (b) #box (c) h2 (d) h1
  28. 28.📦 In the box model, which part is the line round the box? (a) margin (b) content (c) border (d) padding
  29. 29.🔒 Is the connection to this address scrambled (encrypted)?
    http://www.example.net/index.html
    (a) Yes (b) No
  30. 30.🔗 Which address opens when you click this link?
    <a href="art.html">School news</a>
    (a) news.html (b) School news (c) quiz.html (d) art.html
  31. 31.🔗 What does target="_blank" do to a link? (a) opens it in a new tab (b) hides the link (c) makes it blank (d) makes it bold
  32. 32.🛡️ Online: is it safe to share your password? (a) safe (b) not safe
  33. 33.✍️ Which property is set to center in this rule?
    #top {
      color: red;
      font-weight: bold;
      text-align: center;
    }
    (a) background-color (b) center (c) text-align (d) margin
  34. 34.🌈 In #0000a6 the blue part is the hex number a6. What is it as a normal number?
  35. 35.🌈 In #rrggbb, which colour do the last two digits give? (a) blue (b) white (c) green (d) red
  36. 36.🔗 Which words do you click on?
    <a href="contact.html">About us</a>
    (a) Contact us (b) About us (c) href (d) contact.html
  37. 37.📊 How many cells does this table have in all?
    <table>
      <tr><td>Grapes</td><td>Guava</td><td>Litchi</td><td>Grapes</td></tr>
      <tr><td>Jamun</td><td>Grapes</td><td>Jamun</td><td>Papaya</td></tr>
    </table>
  38. 38.♿ What does good colour contrast mean? (a) many bright colours (b) text stands out clearly (c) only red text (d) no colours at all
  39. 39.True or false: CSS changes the text size. (a) True (b) False
  40. 40.📱 The screen is 540px wide. What font-size (px) does the paragraph get?
    p {
      font-size: 24px;
    }
    @media (max-width: 600px) {
      p {
        font-size: 22px;
      }
    }

Answer key

  1. 12
  2. True
  3. <hr>
  4. for
  5. not safe
  6. margin
  7. <li class="red">
  8. font-family
  9. /about.html
  10. riya2014
  11. <h6>
  12. False
  13. Our school trip
  14. </i>
  15. <ol>
  16. </strong>
  17. 60
  18. numbers
  19. True
  20. <title>
  21. #0000ff
  22. if
  23. False
  24. white
  25. background-color
  26. No
  27. h1
  28. border
  29. No
  30. art.html
  31. opens it in a new tab
  32. not safe
  33. text-align
  34. 166
  35. blue
  36. About us
  37. 8
  38. text stands out clearly
  39. True
  40. 22

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