← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 565 · 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 headings are in this code?
    <h1>Good morning!</h1>
    <h3>Good morning!</h3>
    <h4>The red kite</h4>
    <p>I love mangoes.</p>
    <h3>I love mangoes.</h3>
  2. 2.💬 How does an HTML comment start? (a) /* (b) <!-- (c) # (d) //
  3. 3.🔍 Which line is missing its closing tag?
    line 1: <h1>Fun facts</h1>
    line 2: <small>Our school trip
    line 3: <u>Hello, world!</u>
    (a) line 3 (b) line 1 (c) line 2
  4. 4.🌐 Which one turns HTML into a page? (a) a web server (b) a code editor (c) a web browser
  5. 5.🖼️ How many pixels wide is the picture drawn?
    <img src="bus.jpg" alt="Our school bus" width="350">
  6. 6.📱 The screen is 375px wide. What font-size (px) does the paragraph get?
    p {
      font-size: 20px;
    }
    @media (min-width: 600px) {
      p {
        font-size: 22px;
      }
    }
  7. 7.📝 Which input type is for one line of words? (a) number (b) checkbox (c) date (d) text
  8. 8.⚖️ What colour is the text of this element?
    <h1 class="big" id="end">Hi</h1>
    CSS:
    #end { color: purple; }
    h1 { color: green; }
    (a) purple (b) orange (c) red (d) green
  9. 9.🛡️ Online: is it safe to check for https first? (a) not safe (b) safe
  10. 10.Which of these goes in the head? (a) <img> (b) <table> (c) <ul> (d) <style>
  11. 11.🔗 Which words do you click on?
    <a href="https://example.com">Maths fun</a>
    (a) href (b) Maths fun (c) Art corner (d) https://example.com
  12. 12.True or false: HTML on its own can run a game loop. (a) True (b) False
  13. 13.🖼️ Which attribute of <img> is read by screen readers? (a) src (b) alt (c) height (d) width
  14. 14.🔢 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
  15. 15.Which of these is an opening tag? (a) </li> (b) </body> (c) <b> (d) </h1>
  16. 16.What does color do? (a) colours behind the text (b) centres a heading (c) makes letters bigger (d) sets the letter colour
  17. 17.🔍 One closing tag is missing. Which one?
    <b>Hello, world!
    <i>I love mangoes.</i>
    <h3>Cricket is fun.</h3>
    (a) </h3> (b) </b> (c) </i> (d) </h2>
  18. 18.🧩 Which language sets colours and fonts? (a) JavaScript (b) HTML (c) CSS
  19. 19.🔠 Which heading shows the SMALLEST text: <h2>, <h1>, <h6> or <h3>? (a) <h2> (b) <h3> (c) <h1> (d) <h6>
  20. 20.📊 Which tag makes one data cell? (a) <tr> (b) <th> (c) <td> (d) <caption>
  21. 21.Which of these is a weak password? (a) Blue@Tiger_74 (b) S0lar!Pen#8 (c) Chai$Cup_19x (d) 111111
  22. 22.📱 The screen is 1100px wide. What font-size (px) does the paragraph get?
    p {
      font-size: 12px;
    }
    @media (max-width: 480px) {
      p {
        font-size: 8px;
      }
    }
  23. 23.💪 How much empty space (px) is before the first box?
    .row {
      display: flex;
      width: 400px;
      justify-content: center;
    }
    Inside are 4 boxes, each 80px wide (no margins).
  24. 24.True or false: HTML on its own cannot make bullet lists. (a) False (b) True
  25. 25.🖌️ Where does the text sit on its line?
    p {
      background-color: orange;
      font-size: 36px;
      color: white;
      text-align: left;
    }
    (a) on the right (b) in the middle (c) on the left
  26. 26.True or false: in <img>, src names the picture file. (a) True (b) False
  27. 27.⚖️ What colour is the text of this element?
    <h2 class="big" id="hero">Hi</h2>
    CSS:
    h2 { color: red; }
    .big { color: blue; }
    (a) blue (b) orange (c) red (d) yellow
  28. 28.🌈 In #008800 the green part is the hex number 88. What is it as a normal number?
  29. 29.Which of these is true of a web server? (a) shows pages from the web (b) opens web pages for us (c) answers page requests (d) shows line numbers
  30. 30.🔗 What does target="_blank" do to a link? (a) hides the link (b) opens it in a new tab (c) makes it blank (d) makes it bold
  31. 31.🔗 Which address opens when you click this link?
    <a href="maths.html">Take the quiz</a>
    (a) art.html (b) news.html (c) Take the quiz (d) maths.html
  32. 32.📝 Which tag holds a whole form? (a) <table> (b) <input> (c) <ol> (d) <form>
  33. 33.💪 Which flexbox property picks row or column? (a) gap (b) justify-content (c) flex-direction (d) align-items
  34. 34.🎨 Which attribute adds CSS inside one tag? (a) src (b) alt (c) href (d) style
  35. 35.Which of these is an opening tag? (a) <title> (b) </h1> (c) </b> (d) </body>
  36. 36.🛡️ Before typing a password on a site, check the address starts with ___. (a) www (b) https (c) ftp (d) http
  37. 37.🖼️ Why do we add alt text to an image? (a) to make it bigger (b) to describe the image (c) to load it faster (d) to colour it
  38. 38.🖌️ Which CSS property sets the letter colour? (a) font-weight (b) text-align (c) background-color (d) color
  39. 39.🎯 Which element does the selector p style? (a) <h1> (b) <li id="hero"> (c) <h2 class="red"> (d) <p class="red">
  40. 40.📋 Does this list show bullets or numbers?
    <ul>
      <li>Banana</li>
      <li>Orange</li>
      <li>Papaya</li>
    </ul>
    (a) bullets (b) numbers

Answer key

  1. 4
  2. <!--
  3. line 2
  4. a web browser
  5. 350
  6. 20
  7. text
  8. purple
  9. safe
  10. <style>
  11. Maths fun
  12. False
  13. alt
  14. test in a browser
  15. <b>
  16. sets the letter colour
  17. </b>
  18. CSS
  19. <h6>
  20. <td>
  21. 111111
  22. 12
  23. 40
  24. False
  25. on the left
  26. True
  27. blue
  28. 136
  29. answers page requests
  30. opens it in a new tab
  31. maths.html
  32. <form>
  33. flex-direction
  34. style
  35. <title>
  36. https
  37. to describe the image
  38. color
  39. <p class="red">
  40. bullets

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