← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 759 · 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 list suits a shopping list in any order? (a) <hr> (b) <ol> (c) <br> (d) <ul>
  2. 2.Which of these is a weak password? (a) password (b) Chai$Cup_19x (c) Blue@Tiger_74 (d) Mango#Kite29!
  3. 3.📝 Which input type lets you pick only one? (a) date (b) radio (c) email (d) checkbox
  4. 4.Which of these is padding? (a) a solid or dotted edge (b) space inside the border (c) the line round the box (d) space outside the border
  5. 5.📊 Are <th> cells shown bold and centred by default? (a) No (b) Yes
  6. 6.🌐 Which one turns HTML into a page? (a) a web browser (b) a web server (c) a code editor
  7. 7.🖌️ What colour are the letters?
    h1 {
      text-align: right;
      color: green;
      background-color: blue;
      font-size: 40px;
    }
    (a) purple (b) blue (c) green
  8. 8.🔠 Which heading shows the SMALLEST text: <h3>, <h1>, <h4> or <h2>? (a) <h3> (b) <h2> (c) <h4> (d) <h1>
  9. 9.📄 Where does <img> go: in the head or in the body? (a) in the head (b) in the body
  10. 10.📊 How many heading cells (<th>) does this table have?
    <table>
      <tr><th>Name</th><th>Fruit</th><th>Price</th><th>Day</th></tr>
      <tr><td>Grapes</td><td>Banana</td><td>Orange</td><td>Jamun</td></tr>
      <tr><td>Litchi</td><td>Grapes</td><td>Banana</td><td>Grapes</td></tr>
    </table>
  11. 11.True or false: a code editor answers page requests. (a) True (b) False
  12. 12.💬 Does the browser show comments on the page? (a) Yes (b) No
  13. 13.✍️ How does a CSS comment start? (a) /* (b) // (c) <!-- (d) #
  14. 14.📊 How many heading cells (<th>) does this table have?
    <table>
      <tr><th>Name</th><th>Fruit</th></tr>
      <tr><td>Banana</td><td>Mango</td></tr>
    </table>
  15. 15.📝 On how many lines does the browser show this paragraph?
    <p>Roses are red<br>Birds sing</p>
  16. 16.True or false: body is an element selector. (a) True (b) False
  17. 17.🔗 Which code links to about.html? (a) <a href="about.html"> (b) <link about.html> (c) <a src="about.html"> (d) <a alt="about.html">
  18. 18.🔒 Is the connection to this address scrambled (encrypted)?
    https://kids.example.org/games/chess.html
    (a) Yes (b) No
  19. 19.Which of these has a closing tag? (a) <input> (b) <li> (c) <meta> (d) <img>
  20. 20.True or false: <input type="number"> picks a day. (a) False (b) True
  21. 21.🌈 Which colour is rgb(255, 0, 0)? (a) black (b) red (c) cyan (d) blue
  22. 22.True or false: to click prize links is not safe. (a) False (b) True
  23. 23.Which of these goes in the head? (a) <ul> (b) <style> (c) <img> (d) <a>
  24. 24.📦 How wide (px) is this box from the outer edge of its left border to the outer edge of its right border?
    .box {
      width: 200px;
      padding: 10px;
      border: 1px solid black;
      margin: 15px;
    }
  25. 25.🏷️ HTML marks up text using ___. (a) keys (b) wires (c) pixels (d) tags
  26. 26.🔁 How many numbers does this code print?
    for (let i = 0; i < 18; i = i + 3) {
      console.log(i);
    }
  27. 27.📝 Which tag gives a form box a name you can click? (a) <hr> (b) <label> (c) <title> (d) <h1>
  28. 28.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Space Facts</title>
    </head>
    <body>
      <h1>All about me</h1>
      <p>We won by 5 runs.</p>
    </body>
    </html>
    (a) All about me (b) We won by 5 runs. (c) Space Facts (d) body
  29. 29.♿ A part of the page is under a <h4> heading. Which tag should its sub-heading use? (a) <h4> (b) <h5> (c) <h6> (d) <h2>
  30. 30.🔍 Which line is missing its closing tag?
    line 1: <p>My pets</p>
    line 2: <em>Cricket is fun.</em>
    line 3: <i>I love mangoes.
    (a) line 3 (b) line 2 (c) line 1
  31. 31.🔠 How many heading levels does HTML have? (a) 6 (b) 4 (c) 10 (d) 3
  32. 32.💪 Which justify-content value packs boxes at the end? (a) flex-start (b) space-between (c) center (d) flex-end
  33. 33.📱 The screen is 375px wide. What font-size (px) does the paragraph get?
    p {
      font-size: 12px;
    }
    @media (min-width: 1024px) {
      p {
        font-size: 18px;
      }
    }
  34. 34.🛡️ Online: is it safe to post your home address? (a) safe (b) not safe
  35. 35.✍️ In color: blue; which part is the property? (a) blue (b) color (c) ; (d) :
  36. 36.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Art Gallery</title>
    </head>
    <body>
      <h1>All about me</h1>
      <p>Thanks for visiting.</p>
    </body>
    </html>
    (a) All about me (b) Art Gallery (c) index.html (d) Thanks for visiting.
  37. 37.🔠 Which heading shows the SMALLEST text: <h4>, <h2>, <h6> or <h3>? (a) <h4> (b) <h2> (c) <h6> (d) <h3>
  38. 38.💪 Which flexbox property sets space between boxes? (a) display: flex (b) flex-direction (c) justify-content (d) gap
  39. 39.🖌️ Where does the text sit on its line?
    h1 {
      font-size: 20px;
      text-align: right;
      color: purple;
      background-color: green;
    }
    (a) on the left (b) on the right (c) in the middle
  40. 40.📦 How much space across (px) does this box take in all, margin included?
    .box {
      width: 180px;
      padding: 25px;
      border: 1px solid black;
      margin: 20px;
    }

Answer key

  1. <ul>
  2. password
  3. radio
  4. space inside the border
  5. Yes
  6. a web browser
  7. green
  8. <h4>
  9. in the body
  10. 4
  11. False
  12. No
  13. /*
  14. 2
  15. 2
  16. True
  17. <a href="about.html">
  18. Yes
  19. <li>
  20. False
  21. red
  22. True
  23. <style>
  24. 222
  25. tags
  26. 6
  27. <label>
  28. All about me
  29. <h5>
  30. line 3
  31. 6
  32. flex-end
  33. 12
  34. not safe
  35. color
  36. Art Gallery
  37. <h6>
  38. gap
  39. on the right
  40. 272

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