← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 817 · 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 rows does this table have?
    <table>
      <tr><td>Papaya</td><td>Litchi</td><td>Guava</td><td>Papaya</td></tr>
      <tr><td>Papaya</td><td>Mango</td><td>Mango</td><td>Guava</td></tr>
      <tr><td>Banana</td><td>Guava</td><td>Orange</td><td>Litchi</td></tr>
    </table>
  2. 2.🧭 Which semantic tag sits at the bottom? (a) <header> (b) <footer> (c) <aside> (d) <nav>
  3. 3.🔗 Which tag makes a clickable link? (a) <link> (b) <img> (c) <a> (d) <p>
  4. 4.📝 How many paragraphs does this code make?
    <p>The red kite</p>
    <p>Cricket is fun.</p>
    <h2>My pets</h2>
  5. 5.⚡ Which JavaScript word writes in the console? (a) let (b) console.log() (c) alert() (d) if
  6. 6.💬 How many paragraphs show on the page?
    <p>I love mangoes.</p>
    <!-- <p>My best friend</p> -->
    <!-- <p>My pets</p> -->
  7. 7.🔠 Which heading shows the BIGGEST text: <h6>, <h2>, <h1> or <h5>? (a) <h1> (b) <h2> (c) <h5> (d) <h6>
  8. 8.💬 Which text will NOT show on the page?
    <!-- <p>The red kite</p> -->
    <p>Hello, world!</p>
    <p>Rain today</p>
    <p>Our school trip</p>
    (a) Our school trip (b) The red kite (c) Rain today (d) Hello, world!
  9. 9.True or false: <li> shows 1, 2, 3 numbers. (a) False (b) True
  10. 10.🚀 Should file names have spaces, like my page.html? (a) No (b) Yes
  11. 11.📦 In the box model, which part is space inside the border? (a) border (b) content (c) margin (d) padding
  12. 12.Which of these has a closing tag? (a) <hr> (b) <img> (c) <li> (d) <meta>
  13. 13.🚀 Which file should this code go in: <h1>My Site</h1> (a) script.js (b) style.css (c) index.html
  14. 14.🧩 Which language changes the text size? (a) HTML (b) CSS (c) JavaScript
  15. 15.📊 Are <th> cells shown bold and centred by default? (a) No (b) Yes
  16. 16.📋 Which list shows the steps of a recipe best? (a) <ul> (b) <ol> (c) <hr> (d) <br>
  17. 17.🌐 Which one shows line numbers? (a) a web browser (b) a code editor (c) a web server
  18. 18.📦 How much space top to bottom (px) does this box take in all, margin included?
    .box {
      height: 190px;
      padding: 25px;
      border: 3px solid black;
      margin: 15px;
    }
  19. 19.📊 How many rows does this table have?
    <table>
      <tr><td>Mango</td><td>Orange</td></tr>
      <tr><td>Grapes</td><td>Litchi</td></tr>
      <tr><td>Banana</td><td>Orange</td></tr>
      <tr><td>Banana</td><td>Mango</td></tr>
    </table>
  20. 20.🖼️ Does <img> need a closing tag? (a) Yes (b) No
  21. 21.🧭 Is <span> semantic or not semantic? (a) semantic (b) not semantic
  22. 22.♿ Who uses a screen reader? (a) only teachers (b) only coders (c) people who are blind (d) only robots
  23. 23.🔠 How many headings are in this code?
    <h1>The red kite</h1>
    <h3>Rain today</h3>
    <p>My pets</p>
    <p>Fun facts</p>
  24. 24.🏷️ Is </p> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  25. 25.🌗 Is pink on red easy or hard to read? (a) hard to read (b) easy to read
  26. 26.⚖️ What colour is the text of this element?
    <h1 class="big" id="hero">Hi</h1>
    CSS:
    .big { color: white; }
    .big { color: red; }
    (a) purple (b) blue (c) red (d) white
  27. 27.True or false: a web server sends pages over the net. (a) False (b) True
  28. 28.🖌️ What colour is behind the letters?
    p {
      font-size: 16px;
      background-color: black;
      text-align: left;
      color: blue;
    }
    (a) black (b) blue (c) purple
  29. 29.📄 Which part holds everything you see on the page? (a) the title (b) the doctype (c) the body (d) the head
  30. 30.💪 How much empty space (px) is left after the last box?
    .row {
      display: flex;
      width: 210px;
      justify-content: flex-start;
    }
    Inside are 2 boxes, each 100px wide (no margins).
  31. 31.🌍 Which one scrambles data on its way? (a) the browser (b) the URL (c) the server (d) HTTPS
  32. 32.🔠 Which heading shows the BIGGEST text: <h4>, <h3>, <h6> or <h2>? (a) <h6> (b) <h3> (c) <h2> (d) <h4>
  33. 33.True or false: <ul> lists things in any order. (a) True (b) False
  34. 34.✍️ Which sign ends each CSS declaration? (a) ; (b) : (c) . (d) ,
  35. 35.🔠 Which heading shows the BIGGEST text: <h5>, <h2>, <h3> or <h6>? (a) <h2> (b) <h5> (c) <h3> (d) <h6>
  36. 36.⚖️ What colour is the text of this element?
    <h2 class="menu" id="top">Hi</h2>
    CSS:
    h2 { color: blue; }
    .menu { color: orange; }
    (a) blue (b) green (c) orange (d) white
  37. 37.True or false: #hero is a class selector. (a) True (b) False
  38. 38.🔠 Which heading shows the BIGGEST text: <h1>, <h6>, <h3> or <h5>? (a) <h6> (b) <h1> (c) <h3> (d) <h5>
  39. 39.🖼️ How many pixels wide is the picture drawn?
    <img src="cake.jpg" alt="Birthday cake" width="300">
  40. 40.🎯 Which sign starts an id selector? (a) . (b) & (c) # (d) @

Answer key

  1. 3
  2. <footer>
  3. <a>
  4. 2
  5. console.log()
  6. 1
  7. <h1>
  8. The red kite
  9. False
  10. No
  11. padding
  12. <li>
  13. index.html
  14. CSS
  15. Yes
  16. <ol>
  17. a code editor
  18. 276
  19. 4
  20. No
  21. not semantic
  22. people who are blind
  23. 2
  24. a closing tag
  25. hard to read
  26. red
  27. True
  28. black
  29. the body
  30. 10
  31. HTTPS
  32. <h2>
  33. True
  34. ;
  35. <h2>
  36. orange
  37. False
  38. <h1>
  39. 300
  40. #

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