← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 508 · 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 tag is the least important heading? (a) <h3> (b) <p> (c) <h6> (d) <h1>
  2. 2.💬 How does an HTML comment start? (a) <!-- (b) /* (c) // (d) #
  3. 3.📝 How many <input> tags are in this form?
    <form>
      <input type="checkbox">
      <input type="password">
      <input type="number">
      <input type="date">
      <input type="submit" value="Send">
    </form>
  4. 4.🎯 What kind of selector is p? (a) an id selector (b) a class selector (c) an element selector
  5. 5.🔐 Is Blue@Tiger_74 a strong or a weak password? (a) weak (b) strong
  6. 6.🧩 Which language gives the page structure? (a) CSS (b) HTML (c) JavaScript
  7. 7.🖌️ What colour are the letters?
    p {
      font-size: 12px;
      text-align: left;
      color: blue;
      background-color: black;
    }
    (a) blue (b) yellow (c) black
  8. 8.True or false: <h1> is an empty tag. (a) True (b) False
  9. 9.True or false: <ul> lists things in any order. (a) False (b) True
  10. 10.🖌️ How big is the text, in px?
    h1 {
      text-align: left;
      font-size: 16px;
      background-color: blue;
      color: purple;
    }
  11. 11.True or false: to meet an online stranger is safe. (a) False (b) True
  12. 12.🎨 Which attribute adds CSS inside one tag? (a) style (b) src (c) href (d) alt
  13. 13.🔗 Which attribute holds the address of a link? (a) href (b) src (c) id (d) alt
  14. 14.🧩 Which language makes a link? (a) JavaScript (b) HTML (c) CSS
  15. 15.🔠 How many <h1> headings should a page usually have? (a) 10 (b) 1 (c) 3 (d) 6
  16. 16.🌈 Which colour of light is strongest in rgb(156, 136, 109)? (a) red (b) blue (c) green
  17. 17.🔍 Which is the odd one out? (a) puts a picture on a page (b) gives the page structure (c) makes headings and lists (d) changes the text size
  18. 18.✍️ Which property is set to 300px in this rule?
    li {
      width: 300px;
      color: red;
    }
    (a) font-style (b) 300px (c) color (d) width
  19. 19.📦 In the box model, which part is the gap round content? (a) content (b) border (c) margin (d) padding
  20. 20.📝 Which tag holds a whole form? (a) <ol> (b) <form> (c) <table> (d) <input>
  21. 21.🔁 How many times does this code print “Well done”?
    for (let i = 0; i < 5; i++) {
      console.log("Well done");
    }
  22. 22.🔗 Where does this link open?
    <a href="news.html" target="_blank">Contact us</a>
    (a) in the same tab (b) in a new tab
  23. 23.🌈 In #a80000 the red part is the hex number a8. What is it as a normal number?
  24. 24.True or false: <caption> gives the table a title. (a) False (b) True
  25. 25.Which of these is true of <nav>? (a) holds one blog post (b) sits at the bottom (c) holds a side box of tips (d) holds the menu of links
  26. 26.📄 Where does the text of <title> appear? (a) on the browser tab (b) at the bottom (c) nowhere (d) in a big heading
  27. 27.🔗 Which address opens when you click this link?
    <a href="about.html">Contact us</a>
    (a) contact.html (b) Contact us (c) about.html (d) https://example.com
  28. 28.♿ Does this help everyone, or make the page harder to use: link text “click here”? (a) makes it harder (b) helps everyone
  29. 29.✍️ How many declarations (property: value pairs) are in this rule?
    h2 {
      font-size: 20px;
      border: 2px solid;
    }
  30. 30.🌗 Is white on black easy or hard to read? (a) hard to read (b) easy to read
  31. 31.💪 How much empty space (px) is before the first box?
    .row {
      display: flex;
      width: 300px;
      justify-content: center;
    }
    Inside are 4 boxes, each 50px wide (no margins).
  32. 32.Which of these goes in the head? (a) <ul> (b) <a> (c) <link rel="stylesheet"> (d) <h1>
  33. 33.Which of these is a closing tag? (a) <h1> (b) </b> (c) <title> (d) <p>
  34. 34.🔠 Are headings shown in bold by default? (a) No (b) Yes
  35. 35.Which of these does JavaScript do? (a) makes a form box (b) makes headings and lists (c) changes the text size (d) checks a quiz answer
  36. 36.🖼️ Which picture file does the browser load?
    <img src="fort.jpg" alt="An old fort" width="400">
    (a) An old fort (b) tiger.jpg (c) fort.jpg (d) kite.png
  37. 37.🏷️ What does a closing tag have that an opening tag does not? (a) a dollar $ (b) a hash # (c) a dot . (d) a slash /
  38. 38.🔍 Which line is missing its closing tag?
    line 1: <small>My pets
    line 2: <b>Fun facts</b>
    line 3: <h1>Rain today</h1>
    (a) line 3 (b) line 1 (c) line 2
  39. 39.Which of these goes in the body? (a) <style> (b) <p> (c) <title> (d) <meta charset="utf-8">
  40. 40.💪 How much empty space (px) is before the first box?
    .row {
      display: flex;
      width: 190px;
      justify-content: flex-end;
    }
    Inside are 4 boxes, each 40px wide (no margins).

Answer key

  1. <h6>
  2. <!--
  3. 5
  4. an element selector
  5. strong
  6. HTML
  7. blue
  8. False
  9. True
  10. 16
  11. False
  12. style
  13. href
  14. HTML
  15. 1
  16. red
  17. changes the text size
  18. width
  19. padding
  20. <form>
  21. 5
  22. in a new tab
  23. 168
  24. True
  25. holds the menu of links
  26. on the browser tab
  27. about.html
  28. makes it harder
  29. 2
  30. easy to read
  31. 50
  32. <link rel="stylesheet">
  33. </b>
  34. Yes
  35. checks a quiz answer
  36. fort.jpg
  37. a slash /
  38. line 1
  39. <p>
  40. 30

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