← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 880 · 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 is the odd one out? (a) turns HTML into a page (b) has an address bar (c) shows line numbers (d) opens web pages for us
  2. 2.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="moon.png" alt="The full moon" width="350">
    (a) moon.png (b) Our school bus (c) width (d) The full moon
  3. 3.🔍 Which is the odd one out? (a) puts a picture on a page (b) gives the page structure (c) sets colours and fonts (d) makes a form box
  4. 4.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="dog.jpg" alt="A happy dog" width="350">
    (a) A happy dog (b) width (c) dog.jpg (d) The full moon
  5. 5.📊 Which tag makes a heading cell? (a) <th> (b) <table> (c) <td> (d) <tr>
  6. 6.🌍 What is the path in this URL?
    http://kids.example.org/art/gallery.html
    (a) /art/gallery.html (b) /news/today.html (c) http (d) kids.example.org
  7. 7.🎯 Which CSS selector matches this element?
    <h2 class="big" id="top">Hello</h2>
    (a) h2 (b) #intro (c) .red (d) #big
  8. 8.Which of these is not safe to do online? (a) log out on shared PCs (b) use a nickname in games (c) share your OTP (d) check for https first
  9. 9.📦 How much space top to bottom (px) does this box take in all, margin included?
    .box {
      height: 50px;
      padding: 30px;
      border: 5px solid black;
      margin: 5px;
    }
  10. 10.🌈 In #rrggbb, which colour do the first two digits give? (a) green (b) red (c) black (d) blue
  11. 11.💬 Which text will NOT show on the page?
    <!-- <p>Fun facts</p> -->
    <p>Good morning!</p>
    <p>Rain today</p>
    <p>The red kite</p>
    (a) The red kite (b) Rain today (c) Fun facts (d) Good morning!
  12. 12.📝 Which tag holds a whole form? (a) <table> (b) <form> (c) <input> (d) <ol>
  13. 13.📊 How many cells does this table have in all?
    <table>
      <tr><td>Papaya</td><td>Grapes</td><td>Litchi</td></tr>
      <tr><td>Banana</td><td>Orange</td><td>Guava</td></tr>
      <tr><td>Banana</td><td>Mango</td><td>Orange</td></tr>
      <tr><td>Orange</td><td>Mango</td><td>Orange</td></tr>
    </table>
  14. 14.🔒 What does the lock (HTTPS) in the address bar mean? (a) the site is fast (b) the site is free (c) the site is a game (d) the data is scrambled
  15. 15.📦 How much space top to bottom (px) does this box take in all, margin included?
    .box {
      height: 90px;
      padding: 15px;
      border: 2px solid black;
      margin: 5px;
    }
  16. 16.🌈 Which hex code is white? (a) #ffffff (b) #00ff00 (c) #ffff00 (d) #ff0000
  17. 17.🏷️ Is </body> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  18. 18.📦 How wide (px) is this box from the outer edge of its left border to the outer edge of its right border?
    .box {
      width: 80px;
      padding: 20px;
      border: 2px solid black;
      margin: 15px;
    }
  19. 19.📋 How many items does this list show?
    <ol>
      <li>Litchi</li>
      <li>Orange</li>
      <li>Guava</li>
      <li>Jamun</li>
    </ol>
  20. 20.📋 Does this list show bullets or numbers?
    <ol>
      <li>Orange</li>
      <li>Guava</li>
    </ol>
    (a) numbers (b) bullets
  21. 21.🔁 When does the else part run? (a) always (b) never (c) when if is false (d) when if is true
  22. 22.🔗 Where does this link open?
    <a href="quiz.html" target="_blank">Play games</a>
    (a) in a new tab (b) in the same tab
  23. 23.🌈 Which hex code is red? (a) #ff0000 (b) #ffffff (c) #ffff00 (d) #000000
  24. 24.📱 The screen is 700px wide. What font-size (px) does the paragraph get?
    p {
      font-size: 16px;
    }
    @media (max-width: 768px) {
      p {
        font-size: 10px;
      }
    }
  25. 25.True or false: the URL is the page’s address. (a) True (b) False
  26. 26.📋 Which list tag shows bullet points? (a) <ul> (b) <ol> (c) <li>
  27. 27.📋 Which list shows the steps of a recipe best? (a) <hr> (b) <ol> (c) <ul> (d) <br>
  28. 28.⚖️ What colour is the text of this element?
    <h1 class="big" id="logo">Hi</h1>
    CSS:
    h1 { color: white; }
    .big { color: blue; }
    (a) black (b) red (c) white (d) blue
  29. 29.🔍 One closing tag is missing. Which one?
    <h1>My best friend
    <i>Rain today</i>
    <h2>Good morning!</h2>
    (a) </h2> (b) </i> (c) </h3> (d) </h1>
  30. 30.🌈 In #220000 the red part is the hex number 22. What is it as a normal number?
  31. 31.What is <input type="radio"> for? (a) takes only numbers (b) lets you pick only one (c) hides what you type (d) is for one line of words
  32. 32.True or false: HTML on its own can show paragraphs. (a) True (b) False
  33. 33.🌈 Which colour is rgb(255, 255, 0)? (a) black (b) white (c) blue (d) yellow
  34. 34.🔗 Which address opens when you click this link?
    <a href="https://example.com">Take the quiz</a>
    (a) maths.html (b) Take the quiz (c) https://example.com (d) art.html
  35. 35.Which of these is a strong password? (a) 111111 (b) password (c) 123456 (d) S0lar!Pen#8
  36. 36.🧭 Why use <nav> instead of <div> for a menu? (a) it loads faster (b) it adds pictures (c) it tells its meaning (d) it makes text red
  37. 37.📊 Where do <td> cells go? (a) inside a <li> (b) inside a <tr> (c) inside a <p> (d) inside the <head>
  38. 38.🚀 Which file should this code go in: console.log(5 + 2); (a) index.html (b) style.css (c) script.js
  39. 39.🖼️ How many pixels wide is the picture drawn?
    <img src="moon.png" alt="The full moon" width="200">
  40. 40.True or false: a web browser turns HTML into a page. (a) True (b) False

Answer key

  1. shows line numbers
  2. The full moon
  3. sets colours and fonts
  4. A happy dog
  5. <th>
  6. /art/gallery.html
  7. h2
  8. share your OTP
  9. 130
  10. red
  11. Fun facts
  12. <form>
  13. 12
  14. the data is scrambled
  15. 134
  16. #ffffff
  17. a closing tag
  18. 124
  19. 4
  20. numbers
  21. when if is false
  22. in a new tab
  23. #ff0000
  24. 10
  25. True
  26. <ul>
  27. <ol>
  28. blue
  29. </h1>
  30. 34
  31. lets you pick only one
  32. True
  33. yellow
  34. https://example.com
  35. S0lar!Pen#8
  36. it tells its meaning
  37. inside a <tr>
  38. script.js
  39. 200
  40. True

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