← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 54 · 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 heading shows the SMALLEST text: <h6>, <h2>, <h5> or <h1>? (a) <h1> (b) <h2> (c) <h5> (d) <h6>
  2. 2.True or false: in <img>, width tells which image to load. (a) True (b) False
  3. 3.📱 The screen is 414px wide. What font-size (px) does the paragraph get?
    p {
      font-size: 12px;
    }
    @media (min-width: 480px) {
      p {
        font-size: 16px;
      }
    }
  4. 4.Which of these is a closing tag? (a) <p> (b) <b> (c) <body> (d) </title>
  5. 5.💬 How many paragraphs show on the page?
    <!-- <p>My pets</p> -->
    <!-- <p>I love mangoes.</p> -->
    <p>Hello, world!</p>
  6. 6.🔁 What does i++ do? (a) takes 1 from i (b) adds 1 to i (c) prints i (d) doubles i
  7. 7.📦 In the box model, which part is a solid or dotted edge? (a) padding (b) content (c) border (d) margin
  8. 8.True or false: <td> holds the whole table. (a) False (b) True
  9. 9.♿ Does this help everyone, or make the page harder to use: link text “click here”? (a) helps everyone (b) makes it harder
  10. 10.🖌️ What colour are the letters?
    li {
      background-color: yellow;
      font-size: 32px;
      text-align: right;
      color: green;
    }
    (a) orange (b) yellow (c) green
  11. 11.🌈 Which colour is rgb(255, 255, 0)? (a) black (b) yellow (c) white (d) blue
  12. 12.What is <input type="checkbox"> for? (a) lets you tick many (b) picks a day (c) is for an email address (d) is for one line of words
  13. 13.🌍 What is the protocol in this URL?
    http://learn.example.com/index.html
    (a) learn.example.com (b) http (c) https (d) /index.html
  14. 14.True or false: JavaScript lays out the page. (a) True (b) False
  15. 15.Which of these goes in the body? (a) <title> (b) <link rel="stylesheet"> (c) <style> (d) <img>
  16. 16.🔤 In “HTML”, what does the L stand for? (a) Link (b) Line (c) Language (d) Laptop
  17. 17.🌈 In #002800 the green part is the hex number 28. What is it as a normal number?
  18. 18.🛡️ Online: is it safe to click prize links? (a) safe (b) not safe
  19. 19.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
  20. 20.True or false: <ol> is an ordered list. (a) True (b) False
  21. 21.⚡ What number does this code print?
    let score = 19;
    score = score + 11;
    score = score - 15;
    console.log(score);
  22. 22.✍️ How many declarations (property: value pairs) are in this rule?
    #top {
      font-size: 20px;
      background-color: yellow;
      color: red;
    }
  23. 23.📊 How many heading cells (<th>) does this table have?
    <table>
      <tr><th>Name</th><th>Fruit</th></tr>
      <tr><td>Guava</td><td>Jamun</td></tr>
      <tr><td>Grapes</td><td>Papaya</td></tr>
      <tr><td>Banana</td><td>Papaya</td></tr>
    </table>
  24. 24.📝 What does <br> do? (a) adds a picture (b) starts a new line (c) makes a list (d) makes text bold
  25. 25.🏷️ Every HTML tag starts with which sign? (a) ( (b) { (c) [ (d) <
  26. 26.🔒 What does the lock (HTTPS) in the address bar mean? (a) the data is scrambled (b) the site is fast (c) the site is a game (d) the site is free
  27. 27.💪 Which justify-content value puts boxes in the middle? (a) flex-end (b) flex-start (c) space-between (d) center
  28. 28.🔢 On a typical page, from top to bottom, which comes LAST? (a) <footer> (b) <nav> (c) <header> (d) <main>
  29. 29.What does font-size do? (a) sets the letter colour (b) makes the text bold (c) centres a heading (d) makes letters bigger
  30. 30.Which of these goes in the head? (a) <style> (b) <p> (c) <img> (d) <h1>
  31. 31.💪 Which justify-content value packs boxes at the end? (a) flex-start (b) space-between (c) center (d) flex-end
  32. 32.📊 How many heading cells (<th>) does this table have?
    <table>
      <tr><th>Name</th><th>Fruit</th><th>Price</th></tr>
      <tr><td>Litchi</td><td>Litchi</td><td>Grapes</td></tr>
      <tr><td>Banana</td><td>Grapes</td><td>Mango</td></tr>
    </table>
  33. 33.📝 Which input type sends the form? (a) date (b) radio (c) number (d) submit
  34. 34.💪 Which justify-content value equal gaps, none at ends? (a) center (b) flex-end (c) space-between (d) flex-start
  35. 35.Which of these is a closing tag? (a) </h1> (b) <li> (c) <p> (d) <body>
  36. 36.♿ What does good colour contrast mean? (a) text stands out clearly (b) only red text (c) no colours at all (d) many bright colours
  37. 37.📊 How many cells are in each row?
    <table>
      <tr><td>Mango</td><td>Mango</td><td>Jamun</td><td>Papaya</td></tr>
      <tr><td>Grapes</td><td>Guava</td><td>Grapes</td><td>Mango</td></tr>
      <tr><td>Papaya</td><td>Banana</td><td>Banana</td><td>Jamun</td></tr>
    </table>
  38. 38.🖌️ What colour are the letters?
    h2 {
      font-size: 32px;
      color: orange;
      background-color: blue;
      text-align: right;
    }
    (a) purple (b) blue (c) orange
  39. 39.✍️ In color: blue; which part is the value? (a) color (b) ; (c) blue (d) :
  40. 40.🎯 Which sign starts a class selector? (a) # (b) & (c) . (d) @

Answer key

  1. <h6>
  2. False
  3. 12
  4. </title>
  5. 1
  6. adds 1 to i
  7. border
  8. False
  9. makes it harder
  10. green
  11. yellow
  12. lets you tick many
  13. http
  14. False
  15. <img>
  16. Language
  17. 40
  18. not safe
  19. Yes
  20. True
  21. 15
  22. 3
  23. 2
  24. starts a new line
  25. <
  26. the data is scrambled
  27. center
  28. <footer>
  29. makes letters bigger
  30. <style>
  31. flex-end
  32. 3
  33. submit
  34. space-between
  35. </h1>
  36. text stands out clearly
  37. 4
  38. orange
  39. blue
  40. .

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