← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 805 · 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 behind the letters?
    h1 {
      background-color: green;
      text-align: left;
      color: yellow;
      font-size: 24px;
    }
    (a) blue (b) green (c) yellow
  2. 2.📊 In a table, which tag is a row? (a) <td> (b) <tb> (c) <tr> (d) <th>
  3. 3.⚖️ Which selector is the strongest? (a) an id selector (b) a class selector (c) an element selector
  4. 4.♿ A part of the page is under a <h1> heading. Which tag should its sub-heading use? (a) <h6> (b) <h3> (c) <h5> (d) <h2>
  5. 5.True or false: the server sends the page back. (a) True (b) False
  6. 6.🌍 What is the protocol in this URL?
    http://www.example.net/news/today.html
    (a) /news/today.html (b) www.example.net (c) https (d) http
  7. 7.🌈 How many pairs of hex digits are in a colour like #ff8800? (a) 4 (b) 3 (c) 6 (d) 2
  8. 8.Which of these is a closing tag? (a) <body> (b) <h1> (c) </p> (d) <p>
  9. 9.🔍 Which is the odd one out? (a) hosts websites online (b) sends pages over the net (c) answers page requests (d) shows pages from the web
  10. 10.True or false: CSS makes a form box. (a) False (b) True
  11. 11.🔗 Which attribute holds the address of a link? (a) id (b) src (c) alt (d) href
  12. 12.True or false: <caption> holds the whole table. (a) True (b) False
  13. 13.What does justify-content: flex-end do? (a) packs boxes at the end (b) equal gaps, none at ends (c) puts boxes in the middle (d) packs boxes at the start
  14. 14.📝 How many <input> tags are in this form?
    <form>
      <input type="text">
      <input type="email">
      <input type="submit" value="Send">
    </form>
  15. 15.🎯 What kind of selector is #end? (a) an element selector (b) an id selector (c) a class selector
  16. 16.Which colour pair is easy to read? (a) pink on red (b) yellow on white (c) black on white (d) light grey on white
  17. 17.🔍 Which is the odd one out? (a) reacts to a button click (b) counts down a timer (c) lays out the page (d) shows a pop-up message
  18. 18.True or false: “tiny grey text” helps everyone use the page. (a) False (b) True
  19. 19.🌈 Which colour is #ff0000? (a) magenta (b) bright green (c) red (d) yellow
  20. 20.🔠 Which heading shows the BIGGEST text: <h1>, <h5>, <h3> or <h6>? (a) <h3> (b) <h5> (c) <h1> (d) <h6>
  21. 21.Which of these is true of a code editor? (a) stores a website’s files (b) shows pages from the web (c) turns HTML into a page (d) colours code to help us
  22. 22.📊 How many rows does this table have?
    <table>
      <tr><th>Name</th><th>Fruit</th></tr>
      <tr><td>Orange</td><td>Litchi</td></tr>
    </table>
  23. 23.🔍 Which is the odd one out? (a) sends pages over the net (b) shows pages from the web (c) has an address bar (d) turns HTML into a page
  24. 24.📋 How many items does this list show?
    <ol>
      <li>Grapes</li>
      <li>Mango</li>
      <li>Litchi</li>
    </ol>
  25. 25.🧭 Is <footer> semantic or not semantic? (a) not semantic (b) semantic
  26. 26.What does font-size do? (a) makes letters bigger (b) makes the text bold (c) centres a heading (d) colours behind the text
  27. 27.🛡️ Online: is it safe to share your OTP? (a) safe (b) not safe
  28. 28.🔁 What does this code print?
    let marks = 30;
    if (marks >= 41) {
      console.log("Pass");
    } else {
      console.log("Try again");
    }
    (a) Pass (b) Try again
  29. 29.🔢 On a typical page, from top to bottom, what comes right after “<header>”? (a) <main> (b) <footer> (c) <nav>
  30. 30.True or false: to think before you post is not safe. (a) True (b) False
  31. 31.🔍 Which line is missing its closing tag?
    line 1: <small>Cricket is fun.
    line 2: <p>My best friend</p>
    line 3: <h1>My pets</h1>
    (a) line 1 (b) line 2 (c) line 3
  32. 32.⚡ Which JavaScript word repeats code? (a) console.log() (b) let (c) for (d) if
  33. 33.📋 Which list tag shows 1, 2, 3 numbers? (a) <ol> (b) <ul> (c) <li>
  34. 34.🖌️ Which CSS property sets the letter colour? (a) background-color (b) font-size (c) text-align (d) color
  35. 35.💪 How wide (px) is each gap between two boxes?
    .row {
      display: flex;
      width: 160px;
      justify-content: space-between;
    }
    Inside are 2 boxes, each 50px wide (no margins).
  36. 36.🔠 Which heading shows the SMALLEST text: <h6>, <h3>, <h1> or <h4>? (a) <h3> (b) <h6> (c) <h1> (d) <h4>
  37. 37.💪 Which justify-content value packs boxes at the start? (a) center (b) space-between (c) flex-start (d) flex-end
  38. 38.💬 How many paragraphs show on the page?
    <!-- <p>My best friend</p> -->
    <!-- <p>My pets</p> -->
    <!-- <p>Hello, world!</p> -->
    <p>Fun facts</p>
  39. 39.🔢 To build and share your first web page, which comes LAST? (a) publish it online (b) write the HTML (c) add CSS styles (d) plan what to show
  40. 40.⚖️ What colour is the text of this element?
    <p class="note" id="end">Hi</p>
    CSS:
    #end { color: yellow; }
    #end { color: blue; }
    (a) green (b) red (c) yellow (d) blue

Answer key

  1. green
  2. <tr>
  3. an id selector
  4. <h2>
  5. True
  6. http
  7. 3
  8. </p>
  9. shows pages from the web
  10. False
  11. href
  12. False
  13. packs boxes at the end
  14. 3
  15. an id selector
  16. black on white
  17. lays out the page
  18. False
  19. red
  20. <h1>
  21. colours code to help us
  22. 2
  23. sends pages over the net
  24. 3
  25. semantic
  26. makes letters bigger
  27. not safe
  28. Try again
  29. <nav>
  30. False
  31. line 1
  32. for
  33. <ol>
  34. color
  35. 60
  36. <h6>
  37. flex-start
  38. 1
  39. publish it online
  40. blue

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