← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 703 · 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 heading shows the BIGGEST text: <h4>, <h1>, <h3> or <h5>? (a) <h4> (b) <h1> (c) <h3> (d) <h5>
  2. 2.🌈 Which colour is #00ffff? (a) white (b) cyan (c) magenta (d) blue
  3. 3.📱 Which tag helps phones show a page at the right size? (a) the viewport meta tag (b) the title tag (c) the br tag (d) the hr tag
  4. 4.🔢 To build and share your first web page, which comes first: “test in a browser” or “plan what to show”? (a) plan what to show (b) test in a browser
  5. 5.🌈 Which colour of light is strongest in rgb(244, 60, 75)? (a) red (b) blue (c) green
  6. 6.🖼️ Which attribute of <img> describes the picture? (a) width (b) height (c) alt (d) src
  7. 7.Which of these is true of a web browser? (a) has an address bar (b) stores a website’s files (c) sends pages over the net (d) hosts websites online
  8. 8.💬 Which text will NOT show on the page?
    <!-- <p>I love mangoes.</p> -->
    <p>The red kite</p>
    <p>My pets</p>
    (a) I love mangoes. (b) The red kite (c) My pets
  9. 9.💬 Which text will NOT show on the page?
    <!-- <p>Fun facts</p> -->
    <p>Hello, world!</p>
    <p>Cricket is fun.</p>
    <p>I love mangoes.</p>
    (a) I love mangoes. (b) Cricket is fun. (c) Fun facts (d) Hello, world!
  10. 10.📄 Can HTML on its own run a game loop? (a) Yes (b) No
  11. 11.🔁 What is the LAST number this code prints?
    for (let i = 0; i < 13; i = i + 2) {
      console.log(i);
    }
  12. 12.Which of these has a closing tag? (a) <hr> (b) <h1> (c) <input> (d) <meta>
  13. 13.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="tiger.jpg" alt="A tiger asleep" width="200">
    (a) A red kite (b) A tiger asleep (c) tiger.jpg (d) width
  14. 14.🔠 How many headings are in this code?
    <h1>Good morning!</h1>
    <h3>My pets</h3>
    <p>The red kite</p>
    <h3>The red kite</h3>
  15. 15.True or false: <style> goes in the body. (a) True (b) False
  16. 16.Which of these does HTML do? (a) lays out the page (b) adds space around boxes (c) makes a form box (d) checks a quiz answer
  17. 17.True or false: <tr> makes one data cell. (a) False (b) True
  18. 18.🌈 Which colour is rgb(0, 255, 0)? (a) yellow (b) magenta (c) black (d) bright green
  19. 19.True or false: score = score + 1; goes in script.js. (a) True (b) False
  20. 20.True or false: padding is space outside the border. (a) True (b) False
  21. 21.📝 On how many lines does the browser show this paragraph?
    <p>Stars shine<br>Kites fly high<br>Birds sing</p>
  22. 22.🔁 How many numbers does this code print?
    for (let i = 0; i < 9; i = i + 4) {
      console.log(i);
    }
  23. 23.📝 Which tag holds a whole form? (a) <input> (b) <form> (c) <ol> (d) <table>
  24. 24.💪 How much empty space (px) is before the first box?
    .row {
      display: flex;
      width: 520px;
      justify-content: center;
    }
    Inside are 4 boxes, each 100px wide (no margins).
  25. 25.🔐 Is Kite_Fl1es@Dawn a strong or a weak password? (a) weak (b) strong
  26. 26.📊 Are <th> cells shown bold and centred by default? (a) No (b) Yes
  27. 27.📊 In a table, which tag is a row? (a) <tb> (b) <th> (c) <tr> (d) <td>
  28. 28.🌈 Which colour is #ff0000? (a) yellow (b) black (c) red (d) cyan
  29. 29.⚖️ What colour is the text of this element?
    <h2 class="red" id="hero">Hi</h2>
    CSS:
    .red { color: orange; }
    .red { color: white; }
    (a) green (b) black (c) white (d) orange
  30. 30.🔍 Which is the odd one out? (a) rounds box corners (b) lays out the page (c) adds space around boxes (d) makes a link
  31. 31.🎯 How many elements on a page should have the same id? (a) any number (b) 1 (c) 2 (d) 5
  32. 32.📝 How many paragraphs does this code make?
    <p>Hello, world!</p>
    <p>Hello, world!</p>
    <p>The red kite</p>
    <p>My pets</p>
  33. 33.💪 How much empty space (px) is before the first box?
    .row {
      display: flex;
      width: 210px;
      justify-content: center;
    }
    Inside are 3 boxes, each 50px wide (no margins).
  34. 34.True or false: to check for https first is safe. (a) False (b) True
  35. 35.True or false: the server scrambles data on its way. (a) True (b) False
  36. 36.🧩 An opening tag + content + a closing tag together make an ___. (a) element (b) attribute (c) editor (d) address
  37. 37.True or false: #main is a class selector. (a) True (b) False
  38. 38.📊 How many cells are in each row?
    <table>
      <tr><td>Litchi</td><td>Jamun</td></tr>
      <tr><td>Jamun</td><td>Mango</td></tr>
    </table>
  39. 39.💪 How much empty space (px) is before the first box?
    .row {
      display: flex;
      width: 300px;
      justify-content: center;
    }
    Inside are 4 boxes, each 40px wide (no margins).
  40. 40.True or false: <title> is an empty tag. (a) True (b) False

Answer key

  1. <h1>
  2. cyan
  3. the viewport meta tag
  4. plan what to show
  5. red
  6. alt
  7. has an address bar
  8. I love mangoes.
  9. Fun facts
  10. No
  11. 12
  12. <h1>
  13. A tiger asleep
  14. 3
  15. False
  16. makes a form box
  17. False
  18. bright green
  19. True
  20. False
  21. 3
  22. 3
  23. <form>
  24. 60
  25. strong
  26. Yes
  27. <tr>
  28. red
  29. white
  30. makes a link
  31. 1
  32. 4
  33. 30
  34. True
  35. False
  36. element
  37. False
  38. 2
  39. 70
  40. False

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