← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 883 · 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: <li> is one item of a list. (a) True (b) False
  2. 2.🛡️ Online: is it safe to meet an online stranger? (a) not safe (b) safe
  3. 3.🌈 How many pairs of hex digits are in a colour like #ff8800? (a) 4 (b) 3 (c) 6 (d) 2
  4. 4.🔢 In a basic web page file, which comes first: “<!DOCTYPE html>” or “<html>”? (a) <!DOCTYPE html> (b) <html>
  5. 5.⚖️ What colour is the text of this element?
    <h1 class="menu" id="top">Hi</h1>
    CSS:
    #top { color: black; }
    #top { color: yellow; }
    (a) black (b) white (c) purple (d) yellow
  6. 6.🔢 In a basic web page file, which comes first: “<!DOCTYPE html>” or “</html>”? (a) </html> (b) <!DOCTYPE html>
  7. 7.🌗 Is white on dark blue easy or hard to read? (a) easy to read (b) hard to read
  8. 8.Which of these is safe to do online? (a) type a password on http (b) put secrets in comments (c) meet an online stranger (d) use a nickname in games
  9. 9.💪 Which flexbox property picks row or column? (a) align-items (b) gap (c) flex-direction (d) justify-content
  10. 10.🔠 How many headings are in this code?
    <h1>Hello, world!</h1>
    <p>Rain today</p>
    <p>My pets</p>
    <h4>Cricket is fun.</h4>
    <p>Hello, world!</p>
  11. 11.📄 Where does the text of <title> appear? (a) on the browser tab (b) in a big heading (c) nowhere (d) at the bottom
  12. 12.True or false: <tr> makes one table row. (a) False (b) True
  13. 13.True or false: to share your OTP is safe. (a) False (b) True
  14. 14.🔠 Which heading shows the SMALLEST text: <h4>, <h1>, <h6> or <h3>? (a) <h6> (b) <h3> (c) <h1> (d) <h4>
  15. 15.⚖️ What colour is the text of this element?
    <p class="box" id="end">Hi</p>
    CSS:
    p { color: blue; }
    .box { color: yellow; }
    (a) black (b) yellow (c) green (d) blue
  16. 16.🔢 On a typical page, from top to bottom, which comes FIRST? (a) <main> (b) <footer> (c) <nav> (d) <header>
  17. 17.True or false: <ul> is an empty tag. (a) False (b) True
  18. 18.📋 Which list shows the steps of a recipe best? (a) <ol> (b) <ul> (c) <hr> (d) <br>
  19. 19.True or false: <input> is an empty tag. (a) False (b) True
  20. 20.🔢 To build and share your first web page, what comes right after “add CSS styles”? (a) publish it online (b) plan what to show (c) test in a browser (d) write the HTML
  21. 21.True or false: in <img>, height sets how tall it is. (a) False (b) True
  22. 22.💬 How many paragraphs show on the page?
    <p>Our school trip</p>
    <p>My pets</p>
    <!-- <p>Fun facts</p> -->
    <p>The red kite</p>
    <p>My best friend</p>
  23. 23.🌈 Which colour is #00ffff? (a) bright green (b) cyan (c) magenta (d) white
  24. 24.Which of these is a closing tag? (a) </title> (b) <li> (c) <title> (d) <p>
  25. 25.True or false: a web browser turns HTML into a page. (a) False (b) True
  26. 26.📋 Which list tag shows 1, 2, 3 numbers? (a) <li> (b) <ol> (c) <ul>
  27. 27.🖌️ Where does the text sit on its line?
    h1 {
      font-size: 36px;
      color: green;
      background-color: yellow;
      text-align: center;
    }
    (a) on the right (b) in the middle (c) on the left
  28. 28.True or false: <main> holds one blog post. (a) False (b) True
  29. 29.🌍 What is the path in this URL?
    https://www.example.com/index.html
    (a) /art/gallery.html (b) /index.html (c) https (d) www.example.com
  30. 30.🔁 What number does this code print?
    let total = 0;
    for (let i = 1; i <= 10; i++) {
      total = total + i;
    }
    console.log(total);
  31. 31.True or false: <input type="number"> takes only numbers. (a) False (b) True
  32. 32.🔁 How many numbers does this code print?
    for (let i = 0; i < 11; i = i + 3) {
      console.log(i);
    }
  33. 33.🚀 Which file should this code go in: #top { color: blue; } (a) style.css (b) index.html (c) script.js
  34. 34.💬 Which text will NOT show on the page?
    <!-- <p>Rain today</p> -->
    <p>My best friend</p>
    <p>Cricket is fun.</p>
    (a) Rain today (b) My best friend (c) Cricket is fun.
  35. 35.📋 How many items does this list show?
    <ol>
      <li>Litchi</li>
      <li>Jamun</li>
      <li>Banana</li>
    </ol>
  36. 36.Which of these is margin? (a) the line round the box (b) a solid or dotted edge (c) the gap to other boxes (d) space inside the border
  37. 37.True or false: <h1> is an empty tag. (a) True (b) False
  38. 38.True or false: a code editor saves our .html files. (a) True (b) False
  39. 39.🔗 Where does this link open?
    <a href="maths.html">About us</a>
    (a) in a new tab (b) in the same tab
  40. 40.True or false: <input type="password"> hides what you type. (a) True (b) False

Answer key

  1. True
  2. not safe
  3. 3
  4. <!DOCTYPE html>
  5. yellow
  6. <!DOCTYPE html>
  7. easy to read
  8. use a nickname in games
  9. flex-direction
  10. 2
  11. on the browser tab
  12. True
  13. False
  14. <h6>
  15. yellow
  16. <header>
  17. False
  18. <ol>
  19. True
  20. test in a browser
  21. True
  22. 4
  23. cyan
  24. </title>
  25. True
  26. <ol>
  27. in the middle
  28. False
  29. /index.html
  30. 55
  31. True
  32. 4
  33. style.css
  34. Rain today
  35. 3
  36. the gap to other boxes
  37. False
  38. True
  39. in the same tab
  40. True

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