← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 809 · 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 colour of light is strongest in rgb(51, 249, 107)? (a) green (b) blue (c) red
  2. 2.🌍 What is the protocol in this URL?
    http://school.example.in/art/gallery.html
    (a) school.example.in (b) https (c) /art/gallery.html (d) http
  3. 3.🔢 To build and share your first web page, what comes right after “plan what to show”? (a) add CSS styles (b) publish it online (c) write the HTML (d) test in a browser
  4. 4.📱 The screen is 320px wide. Does the rule inside @media apply?
    p {
      font-size: 16px;
    }
    @media (max-width: 600px) {
      p {
        font-size: 14px;
      }
    }
    (a) No (b) Yes
  5. 5.🎯 Which element does the selector .star style? (a) <li class="star"> (b) <div class="note"> (c) <li class="menu"> (d) <li id="star">
  6. 6.🖼️ How many pixels wide is the picture drawn?
    <img src="map.png" alt="Map of India" width="250">
  7. 7.📝 Which input type picks a day? (a) radio (b) email (c) text (d) date
  8. 8.📋 Which list shows the steps of a recipe best? (a) <hr> (b) <ol> (c) <ul> (d) <br>
  9. 9.🔢 On a typical page, from top to bottom, which comes first: “<main>” or “<footer>”? (a) <footer> (b) <main>
  10. 10.🌗 Is white on black easy or hard to read? (a) easy to read (b) hard to read
  11. 11.💪 How wide (px) is each gap between two boxes?
    .row {
      display: flex;
      width: 260px;
      justify-content: space-between;
    }
    Inside are 3 boxes, each 80px wide (no margins).
  12. 12.📝 Which tag holds a whole form? (a) <form> (b) <ol> (c) <table> (d) <input>
  13. 13.⚖️ 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
  14. 14.🖌️ Which CSS property makes the text bold? (a) font-size (b) background-color (c) font-family (d) font-weight
  15. 15.📝 On how many lines does the browser show this paragraph?
    <p>Birds sing<br>Rivers flow</p>
  16. 16.🧭 Who is helped most by semantic tags? (a) only the server (b) nobody (c) screen-reader users (d) only the printer
  17. 17.🌍 Which one sends the page back? (a) the server (b) the browser (c) HTTPS (d) the URL
  18. 18.💪 How wide (px) is each gap between two boxes?
    .row {
      display: flex;
      width: 260px;
      justify-content: space-between;
    }
    Inside are 4 boxes, each 50px wide (no margins).
  19. 19.🖌️ Which CSS property sets the letter colour? (a) color (b) font-family (c) font-weight (d) text-align
  20. 20.📊 Which tag gives the table a title? (a) <td> (b) <th> (c) <tr> (d) <caption>
  21. 21.🔢 In a basic web page file, which comes first: “<head>” or “</head>”? (a) </head> (b) <head>
  22. 22.🌈 Which colour is rgb(0, 0, 255)? (a) bright green (b) white (c) red (d) blue
  23. 23.📄 Can HTML on its own pick a random number? (a) Yes (b) No
  24. 24.📦 How much space top to bottom (px) does this box take in all, margin included?
    .box {
      height: 70px;
      padding: 5px;
      border: 4px solid black;
      margin: 15px;
    }
  25. 25.📊 Which tag makes one table row? (a) <table> (b) <tr> (c) <td> (d) <caption>
  26. 26.🎯 Which CSS selector matches this element?
    <h1 class="box" id="main">Hello</h1>
    (a) h2 (b) h1 (c) .main (d) #logo
  27. 27.✍️ How many declarations (property: value pairs) are in this rule?
    #top {
      background-color: yellow;
    }
  28. 28.♿ Is this heading order correct (no level skipped)?
    <h1> → <h3> → <h2> → <h2>
    (a) Yes (b) No
  29. 29.True or false: in <img>, alt describes the picture. (a) True (b) False
  30. 30.🎯 Which sign starts an id selector? (a) @ (b) # (c) & (d) .
  31. 31.🔍 Which is the odd one out? (a) rounds box corners (b) changes the text size (c) lays out the page (d) checks a quiz answer
  32. 32.🔢 To build and share your first web page, which comes LAST? (a) write the HTML (b) publish it online (c) test in a browser (d) add CSS styles
  33. 33.🔐 Is password a strong or a weak password? (a) strong (b) weak
  34. 34.🔡 Are HTML tag names usually written in small letters? (a) Yes (b) No
  35. 35.🔗 Which attribute holds the address of a link? (a) id (b) alt (c) href (d) src
  36. 36.🔗 Which code links to about.html? (a) <link about.html> (b) <a src="about.html"> (c) <a alt="about.html"> (d) <a href="about.html">
  37. 37.🔠 How many heading levels does HTML have? (a) 10 (b) 6 (c) 4 (d) 3
  38. 38.📊 How many heading cells (<th>) does this table have?
    <table>
      <tr><th>Name</th><th>Fruit</th><th>Price</th></tr>
      <tr><td>Mango</td><td>Papaya</td><td>Grapes</td></tr>
    </table>
  39. 39.🌈 Hex digits go 0 to 9, then A to which letter? (a) G (b) Z (c) F (d) J
  40. 40.🖌️ How big is the text, in px?
    li {
      font-size: 20px;
      color: purple;
      text-align: left;
      background-color: black;
    }

Answer key

  1. green
  2. http
  3. write the HTML
  4. Yes
  5. <li class="star">
  6. 250
  7. date
  8. <ol>
  9. <main>
  10. easy to read
  11. 10
  12. <form>
  13. the later one
  14. font-weight
  15. 2
  16. screen-reader users
  17. the server
  18. 20
  19. color
  20. <caption>
  21. <head>
  22. blue
  23. No
  24. 118
  25. <tr>
  26. h1
  27. 1
  28. No
  29. True
  30. #
  31. checks a quiz answer
  32. publish it online
  33. weak
  34. Yes
  35. href
  36. <a href="about.html">
  37. 6
  38. 3
  39. F
  40. 20

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