← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 700 · 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.🛡️ Online: is it safe to log out on shared PCs? (a) safe (b) not safe
  2. 2.🌈 Which colour of light is strongest in rgb(109, 215, 58)? (a) blue (b) red (c) green
  3. 3.What does color do? (a) centres a heading (b) makes the text bold (c) colours behind the text (d) sets the letter colour
  4. 4.🔗 Which address opens when you click this link?
    <a href="https://example.com">School news</a>
    (a) art.html (b) https://example.com (c) School news (d) maths.html
  5. 5.📝 At most, how many of these can be chosen at the same time?
    <form>
      <input type="radio" name="fruit"> Mango
      <input type="radio" name="fruit"> Guava
      <input type="radio" name="fruit"> Papaya
      <input type="radio" name="fruit"> Banana
      <input type="radio" name="fruit"> Litchi
    </form>
  6. 6.🌈 Hex digits go 0 to 9, then A to which letter? (a) J (b) G (c) Z (d) F
  7. 7.🔗 Which tag makes a clickable link? (a) <p> (b) <img> (c) <a> (d) <link>
  8. 8.⚖️ Which selector is the weakest? (a) an id selector (b) a class selector (c) an element selector
  9. 9.📄 Where does the text of <title> appear? (a) nowhere (b) in a big heading (c) at the bottom (d) on the browser tab
  10. 10.True or false: a web browser has an address bar. (a) True (b) False
  11. 11.🌍 What is the protocol in this URL?
    http://school.example.in/index.html
    (a) http (b) /index.html (c) school.example.in (d) https
  12. 12.🏷️ Which is the closing tag for <p>? (a) <\p> (b) <p/> (c) <p> (d) </p>
  13. 13.⚡ Which JavaScript word writes in the console? (a) for (b) if (c) console.log() (d) let
  14. 14.⚖️ What colour is the text of this element?
    <h1 class="red" id="end">Hi</h1>
    CSS:
    #end { color: red; }
    .red { color: purple; }
    h1 { color: white; }
    (a) black (b) purple (c) red (d) white
  15. 15.🖼️ How many pixels wide is the picture drawn?
    <img src="cake.jpg" alt="Birthday cake" width="250">
  16. 16.📄 Can HTML on its own make links to pages? (a) Yes (b) No
  17. 17.♿ Does this help everyone, or make the page harder to use: images with no alt? (a) helps everyone (b) makes it harder
  18. 18.🔁 What is the LAST number this code prints?
    for (let i = 0; i < 20; i = i + 4) {
      console.log(i);
    }
  19. 19.True or false: img is an element selector. (a) False (b) True
  20. 20.📦 How much space across (px) does this box take in all, margin included?
    .box {
      width: 150px;
      padding: 15px;
      border: 1px solid black;
      margin: 10px;
    }
  21. 21.🔠 Which tag is the least important heading? (a) <h6> (b) <p> (c) <h3> (d) <h1>
  22. 22.🏷️ Is <body> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  23. 23.📦 How much space across (px) does this box take in all, margin included?
    .box {
      width: 80px;
      padding: 30px;
      border: 4px solid black;
      margin: 0px;
    }
  24. 24.⚖️ What colour is the text of this element?
    <p class="red" id="intro">Hi</p>
    CSS:
    .red { color: orange; }
    #intro { color: red; }
    (a) red (b) green (c) orange (d) yellow
  25. 25.💬 How many paragraphs show on the page?
    <!-- <p>Rain today</p> -->
    <p>My pets</p>
    <!-- <p>Good morning!</p> -->
    <p>Our school trip</p>
    <p>Hello, world!</p>
  26. 26.📋 Which list shows the steps of a recipe best? (a) <ol> (b) <hr> (c) <ul> (d) <br>
  27. 27.🛡️ Online: is it safe to check for https first? (a) safe (b) not safe
  28. 28.True or false: to check for https first is not safe. (a) True (b) False
  29. 29.📝 Does <title> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  30. 30.📱 max-width: 600px applies when the screen is ___. (a) turned off (b) 600px or wider (c) exactly 1000px (d) 600px or narrower
  31. 31.True or false: <ol> lists things in any order. (a) True (b) False
  32. 32.🎯 Which element does the selector p style? (a) <li id="main"> (b) <p class="red"> (c) <h1> (d) <h2 class="red">
  33. 33.📱 The screen is 1100px wide. What font-size (px) does the paragraph get?
    p {
      font-size: 16px;
    }
    @media (min-width: 600px) {
      p {
        font-size: 24px;
      }
    }
  34. 34.📋 Does this list show bullets or numbers?
    <ol>
      <li>Banana</li>
      <li>Jamun</li>
    </ol>
    (a) numbers (b) bullets
  35. 35.💬 How many paragraphs show on the page?
    <p>Good morning!</p>
    <!-- <p>My pets</p> -->
    <p>Our school trip</p>
  36. 36.Which of these goes in the body? (a) <ul> (b) <meta charset="utf-8"> (c) <link rel="stylesheet"> (d) <title>
  37. 37.🏷️ Is <b> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  38. 38.🖌️ Which CSS property colours behind the text? (a) font-weight (b) font-size (c) background-color (d) text-align
  39. 39.🏷️ Is <li> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  40. 40.⚖️ What colour is the text of this element?
    <h2 class="star" id="top">Hi</h2>
    CSS:
    .star { color: black; }
    .star { color: green; }
    (a) red (b) black (c) green (d) yellow

Answer key

  1. safe
  2. green
  3. sets the letter colour
  4. https://example.com
  5. 1
  6. F
  7. <a>
  8. an element selector
  9. on the browser tab
  10. True
  11. http
  12. </p>
  13. console.log()
  14. red
  15. 250
  16. Yes
  17. makes it harder
  18. 16
  19. True
  20. 202
  21. <h6>
  22. an opening tag
  23. 148
  24. red
  25. 3
  26. <ol>
  27. safe
  28. False
  29. has a closing tag
  30. 600px or narrower
  31. False
  32. <p class="red">
  33. 24
  34. numbers
  35. 2
  36. <ul>
  37. an opening tag
  38. background-color
  39. an opening tag
  40. green

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