← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 933 · 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 picture file does the browser load?
    <img src="moon.png" alt="The full moon" width="200">
    (a) fort.jpg (b) The full moon (c) bus.jpg (d) moon.png
  2. 2.🛡️ Before typing a password on a site, check the address starts with ___. (a) http (b) https (c) www (d) ftp
  3. 3.📄 What is the first line of an HTML5 page? (a) <body> (b) <!DOCTYPE html> (c) <html> (d) <head>
  4. 4.♿ Does this help everyone, or make the page harder to use: skipping heading levels? (a) makes it harder (b) helps everyone
  5. 5.💬 Which text will NOT show on the page?
    <p>I love mangoes.</p>
    <!-- <p>My best friend</p> -->
    <p>Rain today</p>
    <p>Fun facts</p>
    (a) My best friend (b) I love mangoes. (c) Fun facts (d) Rain today
  6. 6.🧩 Which language adds space around boxes? (a) HTML (b) JavaScript (c) CSS
  7. 7.✍️ Which sign ends each CSS declaration? (a) . (b) , (c) ; (d) :
  8. 8.📦 How much space across (px) does this box take in all, margin included?
    .box {
      width: 220px;
      padding: 10px;
      border: 3px solid black;
      margin: 15px;
    }
  9. 9.💪 How wide (px) is each gap between two boxes?
    .row {
      display: flex;
      width: 130px;
      justify-content: space-between;
    }
    Inside are 2 boxes, each 40px wide (no margins).
  10. 10.True or false: the URL is the page’s address. (a) True (b) False
  11. 11.🖼️ Which picture file does the browser load?
    <img src="map.png" alt="Map of India" width="150">
    (a) dog.jpg (b) map.png (c) cake.jpg (d) Map of India
  12. 12.🎯 Which CSS selector matches this element?
    <p class="box" id="main">Hello</p>
    (a) .star (b) h1 (c) #box (d) .box
  13. 13.🔍 Which is the odd one out? (a) changes the text size (b) shows a pop-up message (c) adds space around boxes (d) sets colours and fonts
  14. 14.🧩 Which language rounds box corners? (a) HTML (b) CSS (c) JavaScript
  15. 15.True or false: CSS sets colours and fonts. (a) True (b) False
  16. 16.📋 Does this list show bullets or numbers?
    <ol>
      <li>Guava</li>
      <li>Banana</li>
      <li>Grapes</li>
    </ol>
    (a) numbers (b) bullets
  17. 17.🌍 What is the protocol in this URL?
    https://www.example.net/index.html
    (a) https (b) /index.html (c) http (d) www.example.net
  18. 18.🖼️ Which attribute of <img> describes the picture? (a) height (b) src (c) width (d) alt
  19. 19.⚡ What number does this code print?
    let a = 20;
    let b = 37;
    console.log(a + b);
  20. 20.📋 Does this list show bullets or numbers?
    <ul>
      <li>Jamun</li>
      <li>Papaya</li>
      <li>Grapes</li>
    </ul>
    (a) bullets (b) numbers
  21. 21.✍️ Which property is set to bold in this rule?
    h1 {
      font-size: 20px;
      margin: 10px;
      text-align: center;
      font-weight: bold;
    }
    (a) bold (b) font-weight (c) width (d) border
  22. 22.True or false: padding is the gap to other boxes. (a) False (b) True
  23. 23.💬 How many paragraphs show on the page?
    <p>My best friend</p>
    <!-- <p>Hello, world!</p> -->
    <p>Rain today</p>
  24. 24.True or false: <input type="checkbox"> lets you tick many. (a) False (b) True
  25. 25.True or false: <input type="password"> hides what you type. (a) True (b) False
  26. 26.Which of these does CSS do? (a) changes the page live (b) makes a form box (c) adds space around boxes (d) puts a picture on a page
  27. 27.What does justify-content: space-between do? (a) puts boxes in the middle (b) equal gaps, none at ends (c) packs boxes at the start (d) packs boxes at the end
  28. 28.📝 Does <h1> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  29. 29.🔢 In a basic web page file, which comes FIRST? (a) <html> (b) <body> (c) <head> (d) <!DOCTYPE html>
  30. 30.⚡ Which JavaScript word writes in the console? (a) alert() (b) console.log() (c) let (d) for
  31. 31.Which of these is true of a web browser? (a) is where we type code (b) stores a website’s files (c) shows line numbers (d) opens web pages for us
  32. 32.True or false: <th> holds the whole table. (a) True (b) False
  33. 33.🔠 Which heading shows the BIGGEST text: <h2>, <h4>, <h1> or <h6>? (a) <h4> (b) <h1> (c) <h6> (d) <h2>
  34. 34.🖌️ What colour is behind the letters?
    li {
      text-align: left;
      font-size: 28px;
      background-color: green;
      color: blue;
    }
    (a) green (b) blue (c) yellow
  35. 35.⚖️ What colour is the text of this element?
    <h1 class="star" id="top">Hi</h1>
    CSS:
    h1 { color: orange; }
    .star { color: yellow; }
    (a) white (b) yellow (c) green (d) orange
  36. 36.🌗 Is blue on purple easy or hard to read? (a) easy to read (b) hard to read
  37. 37.🚀 Which file should this code go in: <ul><li>Art</li></ul> (a) script.js (b) index.html (c) style.css
  38. 38.📝 At most, how many of these can be chosen at the same time?
    <form>
      <input type="radio" name="colour"> Red
      <input type="radio" name="colour"> Orange
      <input type="radio" name="colour"> Green
    </form>
  39. 39.Which colour pair is hard to read? (a) black on white (b) white on black (c) pink on red (d) white on dark blue
  40. 40.True or false: <footer> holds copyright notes. (a) True (b) False

Answer key

  1. moon.png
  2. https
  3. <!DOCTYPE html>
  4. makes it harder
  5. My best friend
  6. CSS
  7. ;
  8. 276
  9. 50
  10. True
  11. map.png
  12. .box
  13. shows a pop-up message
  14. CSS
  15. True
  16. numbers
  17. https
  18. alt
  19. 57
  20. bullets
  21. font-weight
  22. False
  23. 2
  24. True
  25. True
  26. adds space around boxes
  27. equal gaps, none at ends
  28. has a closing tag
  29. <!DOCTYPE html>
  30. console.log()
  31. opens web pages for us
  32. False
  33. <h1>
  34. green
  35. yellow
  36. hard to read
  37. index.html
  38. 1
  39. pink on red
  40. True

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