← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 962 · 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.⚖️ What colour is the text of this element?
    <p class="big" id="top">Hi</p>
    CSS:
    .big { color: purple; }
    .big { color: white; }
    (a) purple (b) white (c) red (d) blue
  2. 2.💪 How much empty space (px) is before the first box?
    .row {
      display: flex;
      width: 240px;
      justify-content: flex-end;
    }
    Inside are 2 boxes, each 80px wide (no margins).
  3. 3.🌍 What does a web address (URL) tell the browser? (a) your password (b) where the page is (c) the page colour (d) how old you are
  4. 4.📝 Which input type lets you tick many? (a) radio (b) password (c) checkbox (d) text
  5. 5.True or false: in <img>, height tells which image to load. (a) False (b) True
  6. 6.🚀 Which file should this code go in: score = score + 1; (a) style.css (b) script.js (c) index.html
  7. 7.📊 How many rows does this table have?
    <table>
      <tr><td>Banana</td><td>Jamun</td><td>Jamun</td></tr>
      <tr><td>Mango</td><td>Banana</td><td>Orange</td></tr>
    </table>
  8. 8.📱 The screen is 1366px wide. Does the rule inside @media apply?
    p {
      font-size: 20px;
    }
    @media (max-width: 1024px) {
      p {
        font-size: 18px;
      }
    }
    (a) No (b) Yes
  9. 9.True or false: <li> lists steps in order. (a) True (b) False
  10. 10.🏷️ Is <p> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  11. 11.🔢 When you open a web page, which comes first: “you type the URL” or “DNS finds the server”? (a) DNS finds the server (b) you type the URL
  12. 12.🔗 Which address opens when you click this link?
    <a href="games.html">Play games</a>
    (a) about.html (b) contact.html (c) Play games (d) games.html
  13. 13.True or false: #top is a class selector. (a) False (b) True
  14. 14.True or false: <input type="radio"> lets you pick only one. (a) False (b) True
  15. 15.📊 Which tag makes a heading cell? (a) <td> (b) <th> (c) <tr> (d) <table>
  16. 16.🔗 Which address opens when you click this link?
    <a href="about.html">Play games</a>
    (a) https://example.com (b) Play games (c) contact.html (d) about.html
  17. 17.📝 What does <br> do? (a) makes a list (b) starts a new line (c) makes text bold (d) adds a picture
  18. 18.🧩 Which language checks a quiz answer? (a) HTML (b) CSS (c) JavaScript
  19. 19.🔠 Which heading shows the BIGGEST text: <h6>, <h1>, <h4> or <h2>? (a) <h6> (b) <h4> (c) <h2> (d) <h1>
  20. 20.🌗 Is white on dark blue easy or hard to read? (a) easy to read (b) hard to read
  21. 21.🌍 Which one asks for a web page? (a) the server (b) the browser (c) HTTPS (d) the URL
  22. 22.💪 How much empty space (px) is before the first box?
    .row {
      display: flex;
      width: 400px;
      justify-content: center;
    }
    Inside are 4 boxes, each 80px wide (no margins).
  23. 23.📝 At most, how many of these can be chosen at the same time?
    <form>
      <input type="checkbox" name="fruit"> Banana
      <input type="checkbox" name="fruit"> Guava
      <input type="checkbox" name="fruit"> Papaya
      <input type="checkbox" name="fruit"> Litchi
      <input type="checkbox" name="fruit"> Mango
    </form>
  24. 24.Which of these goes in the head? (a) <title> (b) <h1> (c) <a> (d) <img>
  25. 25.🔠 Which tag is used for the main title on a page? (a) <p> (b) <br> (c) <h1> (d) <h6>
  26. 26.🔍 Which line is missing its closing tag?
    line 1: <em>Fun facts</em>
    line 2: <small>My best friend</small>
    line 3: <b>My pets
    (a) line 3 (b) line 2 (c) line 1
  27. 27.📝 Which tag makes a big box for many lines of text? (a) <input> (b) <br> (c) <p> (d) <textarea>
  28. 28.🌈 In #rrggbb, which colour do the last two digits give? (a) white (b) green (c) red (d) blue
  29. 29.🌗 Is dark grey on white easy or hard to read? (a) easy to read (b) hard to read
  30. 30.Which of these is an opening tag? (a) </b> (b) </li> (c) <p> (d) </title>
  31. 31.True or false: <b> has a closing tag. (a) True (b) False
  32. 32.🖼️ Which attribute of <img> sets how wide it is? (a) height (b) src (c) width (d) alt
  33. 33.⚖️ Which selector is the weakest? (a) a class selector (b) an element selector (c) an id selector
  34. 34.✍️ Which property is set to red in this rule?
    body {
      color: red;
      border: 2px solid;
      font-weight: bold;
    }
    (a) text-align (b) font-size (c) color (d) red
  35. 35.Which of these is true of a web browser? (a) stores a website’s files (b) sends pages over the net (c) hosts websites online (d) has an address bar
  36. 36.✍️ How many declarations (property: value pairs) are in this rule?
    p {
      border: 2px solid;
    }
  37. 37.📦 How wide (px) is this box from the outer edge of its left border to the outer edge of its right border?
    .box {
      width: 280px;
      padding: 25px;
      border: 1px solid black;
      margin: 10px;
    }
  38. 38.🖌️ What colour is behind the letters?
    h1 {
      font-size: 36px;
      background-color: yellow;
      color: purple;
      text-align: left;
    }
    (a) red (b) yellow (c) purple
  39. 39.⚡ What does this code show?
    let name = "Meera";
    alert("Welcome, " + name + "!");
    (a) Welcome, Meera! (b) name (c) Meera (d) Welcome, name!
  40. 40.💪 How much empty space (px) is before the first box?
    .row {
      display: flex;
      width: 250px;
      justify-content: flex-end;
    }
    Inside are 4 boxes, each 60px wide (no margins).

Answer key

  1. white
  2. 80
  3. where the page is
  4. checkbox
  5. False
  6. script.js
  7. 2
  8. No
  9. False
  10. an opening tag
  11. you type the URL
  12. games.html
  13. False
  14. True
  15. <th>
  16. about.html
  17. starts a new line
  18. JavaScript
  19. <h1>
  20. easy to read
  21. the browser
  22. 40
  23. 5
  24. <title>
  25. <h1>
  26. line 3
  27. <textarea>
  28. blue
  29. easy to read
  30. <p>
  31. True
  32. width
  33. an element selector
  34. color
  35. has an address bar
  36. 1
  37. 332
  38. yellow
  39. Welcome, Meera!
  40. 10

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