← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 803 · 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.📊 How many cells does this table have in all?
    <table>
      <tr><td>Banana</td><td>Banana</td></tr>
      <tr><td>Papaya</td><td>Grapes</td></tr>
      <tr><td>Banana</td><td>Orange</td></tr>
    </table>
  2. 2.🚀 What is the home page file of a website usually called? (a) home.css (b) main.png (c) start.js (d) index.html
  3. 3.True or false: .big is a class selector. (a) True (b) False
  4. 4.What is <input type="email"> for? (a) lets you tick many (b) picks a day (c) is for an email address (d) lets you pick only one
  5. 5.📋 Which list tag is one item of a list? (a) <ol> (b) <ul> (c) <li>
  6. 6.💪 How much empty space (px) is before the first box?
    .row {
      display: flex;
      width: 240px;
      justify-content: center;
    }
    Inside are 4 boxes, each 40px wide (no margins).
  7. 7.📦 How wide (px) is this box from the outer edge of its left border to the outer edge of its right border?
    .box {
      width: 260px;
      padding: 15px;
      border: 4px solid black;
      margin: 20px;
    }
  8. 8.🎯 Which CSS selector matches this element?
    <h2 class="note" id="top">Hello</h2>
    (a) h2 (b) #intro (c) li (d) .top
  9. 9.🖼️ Why do we add alt text to an image? (a) to colour it (b) to describe the image (c) to load it faster (d) to make it bigger
  10. 10.📋 Which list tag lists things in any order? (a) <li> (b) <ol> (c) <ul>
  11. 11.💪 Which justify-content value puts boxes in the middle? (a) flex-end (b) space-between (c) center (d) flex-start
  12. 12.⚖️ Which selector is the strongest? (a) an element selector (b) a class selector (c) an id selector
  13. 13.🔢 On a typical page, from top to bottom, what comes right after “<header>”? (a) <footer> (b) <nav> (c) <main>
  14. 14.📋 Does this list show bullets or numbers?
    <ul>
      <li>Guava</li>
      <li>Papaya</li>
    </ul>
    (a) bullets (b) numbers
  15. 15.True or false: a web server colours code to help us. (a) True (b) False
  16. 16.🔢 To build and share your first web page, which comes FIRST? (a) add CSS styles (b) plan what to show (c) test in a browser (d) write the HTML
  17. 17.🌈 Which colour is #00ff00? (a) yellow (b) cyan (c) bright green (d) black
  18. 18.⚖️ What colour is the text of this element?
    <h1 class="menu" id="hero">Hi</h1>
    CSS:
    h1 { color: red; }
    h1 { color: green; }
    (a) orange (b) green (c) red (d) black
  19. 19.✍️ Which sign ends each CSS declaration? (a) , (b) . (c) : (d) ;
  20. 20.🧩 Which language checks a quiz answer? (a) CSS (b) HTML (c) JavaScript
  21. 21.📋 How many items does this list show?
    <ul>
      <li>Litchi</li>
      <li>Guava</li>
      <li>Grapes</li>
      <li>Banana</li>
    </ul>
  22. 22.🔠 How many headings are in this code?
    <h1>Fun facts</h1>
    <h4>I love mangoes.</h4>
    <p>My best friend</p>
    <h3>Hello, world!</h3>
    <h4>Fun facts</h4>
  23. 23.📝 Does <ul> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  24. 24.📝 Which tag makes a big box for many lines of text? (a) <input> (b) <textarea> (c) <p> (d) <br>
  25. 25.🔁 When does the else part run? (a) when if is false (b) never (c) always (d) when if is true
  26. 26.♿ A part of the page is under a <h4> heading. Which tag should its sub-heading use? (a) <h5> (b) <h2> (c) <h1> (d) <h3>
  27. 27.📋 What number does the browser show next to “Jamun”?
    <ol start="2">
      <li>Guava</li>
      <li>Mango</li>
      <li>Jamun</li>
    </ol>
  28. 28.🎯 Can many elements share the same class? (a) Yes (b) No
  29. 29.📄 Which part holds everything you see on the page? (a) the title (b) the doctype (c) the head (d) the body
  30. 30.🔗 Where does this link open?
    <a href="maths.html" target="_blank">Art corner</a>
    (a) in the same tab (b) in a new tab
  31. 31.🧩 Which language counts down a timer? (a) HTML (b) JavaScript (c) CSS
  32. 32.True or false: to share your password is not safe. (a) False (b) True
  33. 33.📋 How many items does this list show?
    <ul>
      <li>Mango</li>
      <li>Banana</li>
    </ul>
  34. 34.🌗 Is blue on purple easy or hard to read? (a) easy to read (b) hard to read
  35. 35.🔁 How many times does this code print “Hello”?
    for (let i = 1; i <= 8; i++) {
      console.log("Hello");
    }
  36. 36.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Art Gallery</title>
    </head>
    <body>
      <h1>Planets</h1>
      <p>Here is my best one.</p>
    </body>
    </html>
    (a) Here is my best one. (b) Planets (c) Art Gallery (d) body
  37. 37.🔐 Is 111111 a strong or a weak password? (a) strong (b) weak
  38. 38.⚡ A JavaScript file usually ends with which extension? (a) .html (b) .css (c) .jpg (d) .js
  39. 39.🌈 Which colour of light is strongest in rgb(73, 42, 227)? (a) green (b) red (c) blue
  40. 40.📄 Where does <p> go: in the head or in the body? (a) in the body (b) in the head

Answer key

  1. 6
  2. index.html
  3. True
  4. is for an email address
  5. <li>
  6. 40
  7. 298
  8. h2
  9. to describe the image
  10. <ul>
  11. center
  12. an id selector
  13. <nav>
  14. bullets
  15. False
  16. plan what to show
  17. bright green
  18. green
  19. ;
  20. JavaScript
  21. 4
  22. 4
  23. has a closing tag
  24. <textarea>
  25. when if is false
  26. <h5>
  27. 4
  28. Yes
  29. the body
  30. in a new tab
  31. JavaScript
  32. True
  33. 2
  34. hard to read
  35. 8
  36. Planets
  37. weak
  38. .js
  39. blue
  40. in the body

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