← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 140 · 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.✍️ What is the selector in this CSS rule?
    .note {
      text-align: center;
      width: 300px;
    }
    (a) text-align (b) .note (c) #top (d) 300px
  2. 2.📋 What number does the browser show next to “Litchi”?
    <ol start="3">
      <li>Guava</li>
      <li>Banana</li>
      <li>Orange</li>
      <li>Litchi</li>
    </ol>
  3. 3.Which of these has a closing tag? (a) <ul> (b) <img> (c) <br> (d) <hr>
  4. 4.🔒 What does the lock (HTTPS) in the address bar mean? (a) the site is a game (b) the site is free (c) the site is fast (d) the data is scrambled
  5. 5.⚡ What number does this code print?
    let coins = 8;
    coins = coins + 18;
    coins = coins - 3;
    console.log(coins);
  6. 6.🔠 Which heading shows the SMALLEST text: <h1>, <h5>, <h2> or <h4>? (a) <h1> (b) <h4> (c) <h5> (d) <h2>
  7. 7.📦 In the box model, which part is the gap to other boxes? (a) border (b) margin (c) padding (d) content
  8. 8.🔠 Which heading shows the BIGGEST text: <h3>, <h6>, <h4> or <h1>? (a) <h1> (b) <h6> (c) <h3> (d) <h4>
  9. 9.🖌️ How big is the text, in px?
    li {
      background-color: orange;
      text-align: right;
      font-size: 20px;
      color: green;
    }
  10. 10.✍️ Which property is set to italic in this rule?
    li {
      font-style: italic;
      border: 2px solid;
      font-size: 20px;
    }
    (a) font-style (b) italic (c) font-size (d) color
  11. 11.True or false: <header> holds the menu of links. (a) True (b) False
  12. 12.🚀 What is the home page file of a website usually called? (a) main.png (b) home.css (c) start.js (d) index.html
  13. 13.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Art Gallery</title>
    </head>
    <body>
      <h1>Welcome!</h1>
      <p>I like to read.</p>
    </body>
    </html>
    (a) I like to read. (b) Art Gallery (c) index.html (d) Welcome!
  14. 14.🌈 Which colour is rgb(255, 0, 255)? (a) white (b) black (c) magenta (d) red
  15. 15.💪 How wide (px) is each gap between two boxes?
    .row {
      display: flex;
      width: 290px;
      justify-content: space-between;
    }
    Inside are 4 boxes, each 50px wide (no margins).
  16. 16.True or false: <ul><li>Art</li></ul> goes in index.html. (a) True (b) False
  17. 17.✍️ What value is given to font-style in this rule?
    p {
      font-style: italic;
      padding: 8px;
      color: red;
    }
    (a) 20px (b) italic (c) font-style (d) red
  18. 18.♿ Does this help everyone, or make the page harder to use: add alt text to images? (a) helps everyone (b) makes it harder
  19. 19.🔍 Which is the odd one out? (a) reacts to a button click (b) puts a picture on a page (c) changes the page live (d) counts down a timer
  20. 20.🌈 What is the biggest number one colour can have in rgb()? (a) 100 (b) 99 (c) 1000 (d) 255
  21. 21.Which of these is a strong password? (a) abcd1234 (b) qwerty (c) Chai$Cup_19x (d) password
  22. 22.🖼️ Which picture file does the browser load?
    <img src="kite.png" alt="A red kite" width="250">
    (a) map.png (b) cake.jpg (c) kite.png (d) A red kite
  23. 23.💬 How many paragraphs show on the page?
    <p>I love mangoes.</p>
    <!-- <p>Cricket is fun.</p> -->
    <!-- <p>Fun facts</p> -->
  24. 24.📋 Which list tag shows bullet points? (a) <ol> (b) <ul> (c) <li>
  25. 25.🎯 What kind of selector is h1? (a) a class selector (b) an element selector (c) an id selector
  26. 26.💪 Which justify-content value equal gaps, none at ends? (a) flex-end (b) center (c) flex-start (d) space-between
  27. 27.💬 Which text will NOT show on the page?
    <!-- <p>My pets</p> -->
    <p>I love mangoes.</p>
    <p>Rain today</p>
    <p>Fun facts</p>
    (a) My pets (b) Fun facts (c) I love mangoes. (d) Rain today
  28. 28.📊 Are <th> cells shown bold and centred by default? (a) No (b) Yes
  29. 29.📊 How many rows does this table have?
    <table>
      <tr><td>Grapes</td><td>Jamun</td><td>Orange</td><td>Papaya</td></tr>
      <tr><td>Jamun</td><td>Grapes</td><td>Papaya</td><td>Mango</td></tr>
    </table>
  30. 30.🔢 On a typical page, from top to bottom, which comes LAST? (a) <main> (b) <footer> (c) <nav> (d) <header>
  31. 31.True or false: <input type="checkbox"> lets you tick many. (a) False (b) True
  32. 32.🔢 In a basic web page file, which comes first: “</body>” or “<!DOCTYPE html>”? (a) <!DOCTYPE html> (b) </body>
  33. 33.🔁 How many times does this code print “Well done”?
    for (let i = 1; i < 3; i++) {
      console.log("Well done");
    }
  34. 34.📋 What number does the browser show next to “Guava”?
    <ol start="8">
      <li>Litchi</li>
      <li>Guava</li>
      <li>Jamun</li>
      <li>Grapes</li>
    </ol>
  35. 35.📋 Does this list show bullets or numbers?
    <ul>
      <li>Grapes</li>
      <li>Orange</li>
    </ul>
    (a) numbers (b) bullets
  36. 36.Which of these does JavaScript do? (a) puts a picture on a page (b) makes a link (c) shows a pop-up message (d) gives the page structure
  37. 37.⚡ What number does this code print?
    let a = 4;
    let b = 4;
    console.log(a * b);
  38. 38.📋 How many items does this list show?
    <ol>
      <li>Guava</li>
      <li>Mango</li>
      <li>Jamun</li>
      <li>Banana</li>
      <li>Papaya</li>
      <li>Litchi</li>
    </ol>
  39. 39.📊 How many heading cells (<th>) does this table have?
    <table>
      <tr><th>Name</th><th>Fruit</th></tr>
      <tr><td>Guava</td><td>Mango</td></tr>
    </table>
  40. 40.🌈 Which colour is rgb(255, 255, 255)? (a) cyan (b) white (c) yellow (d) red

Answer key

  1. .note
  2. 6
  3. <ul>
  4. the data is scrambled
  5. 23
  6. <h5>
  7. margin
  8. <h1>
  9. 20
  10. font-style
  11. False
  12. index.html
  13. Art Gallery
  14. magenta
  15. 30
  16. True
  17. italic
  18. helps everyone
  19. puts a picture on a page
  20. 255
  21. Chai$Cup_19x
  22. kite.png
  23. 1
  24. <ul>
  25. an element selector
  26. space-between
  27. My pets
  28. Yes
  29. 2
  30. <footer>
  31. True
  32. <!DOCTYPE html>
  33. 2
  34. 9
  35. bullets
  36. shows a pop-up message
  37. 16
  38. 6
  39. 2
  40. white

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