← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 968 · 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.True or false: to download from pop-ups is not safe. (a) False (b) True
  2. 2.🔢 In a basic web page file, which comes FIRST? (a) <head> (b) <!DOCTYPE html> (c) </head> (d) </body>
  3. 3.📄 Can HTML on its own count button clicks? (a) Yes (b) No
  4. 4.✍️ How many declarations (property: value pairs) are in this rule?
    #top {
      width: 300px;
      padding: 8px;
      font-size: 20px;
    }
  5. 5.📦 How wide (px) is this box from the outer edge of its left border to the outer edge of its right border?
    .box {
      width: 270px;
      padding: 25px;
      border: 1px solid black;
      margin: 0px;
    }
  6. 6.🌍 What is the path in this URL?
    https://www.example.com/news/today.html
    (a) www.example.com (b) /games/chess.html (c) https (d) /news/today.html
  7. 7.📱 The screen is 700px wide. What font-size (px) does the paragraph get?
    p {
      font-size: 12px;
    }
    @media (max-width: 600px) {
      p {
        font-size: 10px;
      }
    }
  8. 8.True or false: the server stores the site’s files. (a) True (b) False
  9. 9.📋 Which list suits a shopping list in any order? (a) <br> (b) <ol> (c) <ul> (d) <hr>
  10. 10.Which of these goes in the body? (a) <style> (b) <h1> (c) <title> (d) <link rel="stylesheet">
  11. 11.True or false: <h1> goes in the head. (a) False (b) True
  12. 12.🎯 Which sign starts a class selector? (a) & (b) # (c) . (d) @
  13. 13.💪 How wide (px) is each gap between two boxes?
    .row {
      display: flex;
      width: 360px;
      justify-content: space-between;
    }
    Inside are 3 boxes, each 100px wide (no margins).
  14. 14.✍️ Which sign goes between a property and its value? (a) ; (b) = (c) : (d) -
  15. 15.🌍 Which one is the page’s address? (a) the server (b) HTTPS (c) the URL (d) the browser
  16. 16.True or false: <td> makes a heading cell. (a) False (b) True
  17. 17.📄 Can HTML on its own pick a random number? (a) Yes (b) No
  18. 18.📝 What does <br> do? (a) makes a list (b) makes text bold (c) starts a new line (d) adds a picture
  19. 19.🌈 In #006700 the green part is the hex number 67. What is it as a normal number?
  20. 20.🔗 Where does this link open?
    <a href="games.html">Contact us</a>
    (a) in the same tab (b) in a new tab
  21. 21.🔠 Which heading shows the BIGGEST text: <h1>, <h6>, <h2> or <h5>? (a) <h2> (b) <h1> (c) <h5> (d) <h6>
  22. 22.📱 The screen is 820px wide. Does the rule inside @media apply?
    p {
      font-size: 16px;
    }
    @media (max-width: 600px) {
      p {
        font-size: 12px;
      }
    }
    (a) No (b) Yes
  23. 23.📋 Does this list show bullets or numbers?
    <ul>
      <li>Orange</li>
      <li>Jamun</li>
      <li>Banana</li>
    </ul>
    (a) bullets (b) numbers
  24. 24.True or false: <ul> is one item of a list. (a) True (b) False
  25. 25.🎯 Which element does the selector .red style? (a) <p id="red"> (b) <p class="box"> (c) <h1 class="star"> (d) <p class="red">
  26. 26.🔁 How many times does this code print “Hello”?
    for (let i = 0; i < 5; i++) {
      console.log("Hello");
    }
  27. 27.What does font-weight do? (a) makes the text bold (b) picks the font style (c) colours behind the text (d) makes letters bigger
  28. 28.⚖️ What colour is the text of this element?
    <p class="big" id="main">Hi</p>
    CSS:
    p { color: white; }
    p { color: black; }
    (a) white (b) blue (c) black (d) purple
  29. 29.True or false: in <img>, src names the picture file. (a) False (b) True
  30. 30.🔍 Which is the odd one out? (a) adds space around boxes (b) sets colours and fonts (c) changes the text size (d) changes the page live
  31. 31.🎯 Which element does the selector .red style? (a) <div class="box"> (b) <div id="red"> (c) <span class="star"> (d) <div class="red">
  32. 32.🏷️ HTML marks up text using ___. (a) tags (b) wires (c) keys (d) pixels
  33. 33.📋 What number does the browser show next to “Jamun”?
    <ol start="2">
      <li>Banana</li>
      <li>Orange</li>
      <li>Mango</li>
      <li>Guava</li>
      <li>Jamun</li>
    </ol>
  34. 34.True or false: <input> has a closing tag. (a) True (b) False
  35. 35.💬 How many paragraphs show on the page?
    <p>I love mangoes.</p>
    <!-- <p>My pets</p> -->
    <!-- <p>Hello, world!</p> -->
    <!-- <p>My best friend</p> -->
  36. 36.True or false: JavaScript rounds box corners. (a) True (b) False
  37. 37.True or false: <ol> is an unordered list. (a) False (b) True
  38. 38.⚖️ What colour is the text of this element?
    <h2 class="big" id="end">Hi</h2>
    CSS:
    #end { color: black; }
    h2 { color: orange; }
    (a) orange (b) yellow (c) black (d) green
  39. 39.🏷️ Which is the closing tag for <em>? (a) <\em> (b) <em/> (c) </em> (d) <em>
  40. 40.⚡ What number does this code print?
    let a = 4;
    let b = 10;
    console.log(a * b);

Answer key

  1. True
  2. <!DOCTYPE html>
  3. No
  4. 3
  5. 322
  6. /news/today.html
  7. 12
  8. True
  9. <ul>
  10. <h1>
  11. False
  12. .
  13. 30
  14. :
  15. the URL
  16. False
  17. No
  18. starts a new line
  19. 103
  20. in the same tab
  21. <h1>
  22. No
  23. bullets
  24. False
  25. <p class="red">
  26. 5
  27. makes the text bold
  28. black
  29. True
  30. changes the page live
  31. <div class="red">
  32. tags
  33. 6
  34. False
  35. 1
  36. False
  37. False
  38. black
  39. </em>
  40. 40

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