← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 224 · 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 one opens web pages for us? (a) a web browser (b) a code editor (c) a web server
  2. 2.🔐 Is 111111 a strong or a weak password? (a) strong (b) weak
  3. 3.🌈 In #rrggbb, which colour do the first two digits give? (a) blue (b) red (c) green (d) black
  4. 4.🛡️ Before typing a password on a site, check the address starts with ___. (a) http (b) ftp (c) www (d) https
  5. 5.📝 How many paragraphs does this code make?
    <p>Cricket is fun.</p>
    <p>My pets</p>
    <p>My best friend</p>
  6. 6.True or false: <ul><li>Art</li></ul> goes in style.css. (a) False (b) True
  7. 7.🖼️ Which picture file does the browser load?
    <img src="tiger.jpg" alt="A tiger asleep" width="200">
    (a) tiger.jpg (b) map.png (c) kite.png (d) A tiger asleep
  8. 8.🔐 Is Blue@Tiger_74 a strong or a weak password? (a) strong (b) weak
  9. 9.Which of these is true of a web server? (a) colours code to help us (b) saves our .html files (c) has an address bar (d) stores a website’s files
  10. 10.🔗 Which attribute holds the address of a link? (a) src (b) href (c) alt (d) id
  11. 11.💪 How much empty space (px) is before the first box?
    .row {
      display: flex;
      width: 240px;
      justify-content: flex-end;
    }
    Inside are 3 boxes, each 60px wide (no margins).
  12. 12.📝 How many paragraphs does this code make?
    <p>Good morning!</p>
    <p>Rain today</p>
    <h2>Rain today</h2>
    <p>My pets</p>
  13. 13.True or false: in <img>, src describes the picture. (a) False (b) True
  14. 14.💪 How much empty space (px) is before the first box?
    .row {
      display: flex;
      width: 300px;
      justify-content: center;
    }
    Inside are 2 boxes, each 100px wide (no margins).
  15. 15.📝 Does <input> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  16. 16.📦 How much space across (px) does this box take in all, margin included?
    .box {
      width: 150px;
      padding: 20px;
      border: 4px solid black;
      margin: 5px;
    }
  17. 17.🔐 Is Rain#Drop_42! a strong or a weak password? (a) weak (b) strong
  18. 18.Which of these is safe to do online? (a) use a strong password (b) share your OTP (c) click prize links (d) type a password on http
  19. 19.🔠 Which heading shows the SMALLEST text: <h1>, <h2>, <h4> or <h6>? (a) <h2> (b) <h1> (c) <h4> (d) <h6>
  20. 20.⚖️ What colour is the text of this element?
    <p class="menu" id="hero">Hi</p>
    CSS:
    .menu { color: white; }
    #hero { color: black; }
    p { color: orange; }
    (a) purple (b) white (c) black (d) orange
  21. 21.📝 How many paragraphs does this code make?
    <p>Rain today</p>
    <p>Our school trip</p>
    <p>I love mangoes.</p>
    <p>Rain today</p>
  22. 22.True or false: HTML on its own cannot run a game loop. (a) False (b) True
  23. 23.🔁 What does this code print?
    let age = 16;
    if (age >= 6) {
      console.log("teen");
    } else {
      console.log("child");
    }
    (a) child (b) teen
  24. 24.📝 Which input type picks a day? (a) email (b) submit (c) password (d) date
  25. 25.🔗 What does target="_blank" do to a link? (a) makes it blank (b) makes it bold (c) hides the link (d) opens it in a new tab
  26. 26.📝 On how many lines does the browser show this paragraph?
    <p>Sky is blue<br>Roses are red</p>
  27. 27.True or false: in <img>, alt describes the picture. (a) True (b) False
  28. 28.🔠 Which heading shows the BIGGEST text: <h5>, <h2>, <h1> or <h3>? (a) <h5> (b) <h1> (c) <h3> (d) <h2>
  29. 29.🌐 Which one turns HTML into a page? (a) a code editor (b) a web server (c) a web browser
  30. 30.True or false: <p> goes in the body. (a) True (b) False
  31. 31.🎯 Which CSS selector matches this element?
    <h1 class="red" id="top">Hello</h1>
    (a) h2 (b) h1 (c) .top (d) .box
  32. 32.📱 The screen is 1366px wide. What font-size (px) does the paragraph get?
    p {
      font-size: 12px;
    }
    @media (min-width: 768px) {
      p {
        font-size: 20px;
      }
    }
  33. 33.🔢 When you open a web page, which comes first: “the server sends files” or “you type the URL”? (a) you type the URL (b) the server sends files
  34. 34.🏷️ What does a closing tag have that an opening tag does not? (a) a slash / (b) a hash # (c) a dollar $ (d) a dot .
  35. 35.🔠 Which tag is used for the main title on a page? (a) <h6> (b) <h1> (c) <p> (d) <br>
  36. 36.📊 How many rows does this table have?
    <table>
      <tr><th>Name</th><th>Fruit</th><th>Price</th><th>Day</th></tr>
      <tr><td>Papaya</td><td>Jamun</td><td>Banana</td><td>Litchi</td></tr>
      <tr><td>Guava</td><td>Guava</td><td>Mango</td><td>Papaya</td></tr>
    </table>
  37. 37.📄 Can HTML on its own run a game loop? (a) Yes (b) No
  38. 38.🧭 Who is helped most by semantic tags? (a) nobody (b) only the server (c) only the printer (d) screen-reader users
  39. 39.True or false: in <img>, width tells which image to load. (a) False (b) True
  40. 40.♿ Does this help everyone, or make the page harder to use: use big enough text? (a) helps everyone (b) makes it harder

Answer key

  1. a web browser
  2. weak
  3. red
  4. https
  5. 3
  6. False
  7. tiger.jpg
  8. strong
  9. stores a website’s files
  10. href
  11. 60
  12. 3
  13. False
  14. 50
  15. an empty tag
  16. 208
  17. strong
  18. use a strong password
  19. <h6>
  20. black
  21. 4
  22. True
  23. teen
  24. date
  25. opens it in a new tab
  26. 2
  27. True
  28. <h1>
  29. a web browser
  30. True
  31. h1
  32. 20
  33. you type the URL
  34. a slash /
  35. <h1>
  36. 3
  37. No
  38. screen-reader users
  39. False
  40. helps everyone

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