← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 291 · 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 makes a big box for many lines of text? (a) <input> (b) <p> (c) <textarea> (d) <br>
  2. 2.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Cricket Club</title>
    </head>
    <body>
      <h1>Easy snacks</h1>
      <p>We won by 5 runs.</p>
    </body>
    </html>
    (a) Easy snacks (b) Cricket Club (c) We won by 5 runs. (d) body
  3. 3.Which of these has a closing tag? (a) <br> (b) <hr> (c) <img> (d) <title>
  4. 4.📦 In the box model, which part is space inside the border? (a) content (b) padding (c) border (d) margin
  5. 5.📊 How many rows does this table have?
    <table>
      <tr><td>Orange</td><td>Jamun</td><td>Jamun</td></tr>
      <tr><td>Mango</td><td>Banana</td><td>Litchi</td></tr>
      <tr><td>Banana</td><td>Litchi</td><td>Mango</td></tr>
    </table>
  6. 6.Which colour pair is hard to read? (a) black on white (b) pink on red (c) yellow on black (d) white on dark blue
  7. 7.🔍 Which is the odd one out? (a) colours code to help us (b) is where we type code (c) hosts websites online (d) shows line numbers
  8. 8.💬 Which text will NOT show on the page?
    <p>Good morning!</p>
    <!-- <p>Fun facts</p> -->
    <p>My best friend</p>
    <p>I love mangoes.</p>
    (a) Good morning! (b) My best friend (c) Fun facts (d) I love mangoes.
  9. 9.What does font-size do? (a) picks the font style (b) colours behind the text (c) centres a heading (d) makes letters bigger
  10. 10.💬 Which text will NOT show on the page?
    <p>The red kite</p>
    <p>Cricket is fun.</p>
    <!-- <p>Hello, world!</p> -->
    <p>Rain today</p>
    (a) Hello, world! (b) Cricket is fun. (c) The red kite (d) Rain today
  11. 11.True or false: padding is the gap to other boxes. (a) True (b) False
  12. 12.Which of these is true of a web browser? (a) turns HTML into a page (b) answers page requests (c) stores a website’s files (d) saves our .html files
  13. 13.⚡ What number does this code print?
    let a = 8;
    let b = 9;
    console.log(a * b);
  14. 14.📱 Responsive design means a page ___. (a) has no pictures (b) is only for laptops (c) never changes (d) fits every screen
  15. 15.🔠 Which tag is the least important heading? (a) <h6> (b) <h3> (c) <p> (d) <h1>
  16. 16.🔁 What number does this code print?
    let total = 0;
    for (let i = 1; i <= 8; i++) {
      total = total + i;
    }
    console.log(total);
  17. 17.📱 The screen is 1100px wide. Does the rule inside @media apply?
    p {
      font-size: 16px;
    }
    @media (min-width: 600px) {
      p {
        font-size: 18px;
      }
    }
    (a) No (b) Yes
  18. 18.📊 Which tag gives the table a title? (a) <caption> (b) <td> (c) <th> (d) <tr>
  19. 19.True or false: in <img>, width shows if the image fails. (a) True (b) False
  20. 20.💬 How many paragraphs show on the page?
    <!-- <p>Fun facts</p> -->
    <p>My best friend</p>
    <!-- <p>Cricket is fun.</p> -->
  21. 21.✍️ Which sign goes between a property and its value? (a) - (b) : (c) = (d) ;
  22. 22.🔠 Which heading shows the BIGGEST text: <h5>, <h3>, <h6> or <h1>? (a) <h3> (b) <h6> (c) <h5> (d) <h1>
  23. 23.💬 Which text will NOT show on the page?
    <!-- <p>The red kite</p> -->
    <p>Our school trip</p>
    <p>Good morning!</p>
    (a) Good morning! (b) Our school trip (c) The red kite
  24. 24.True or false: <ol> is one item of a list. (a) False (b) True
  25. 25.📊 How many rows does this table have?
    <table>
      <tr><td>Guava</td><td>Banana</td><td>Orange</td></tr>
      <tr><td>Mango</td><td>Grapes</td><td>Jamun</td></tr>
    </table>
  26. 26.Which of these is the content? (a) space inside the border (b) space outside the border (c) the gap to other boxes (d) the text or picture
  27. 27.🔍 One closing tag is missing. Which one?
    <strong>The red kite
    <em>Hello, world!</em>
    <h1>Rain today</h1>
    (a) </u> (b) </em> (c) </strong> (d) </h1>
  28. 28.True or false: to check for https first is safe. (a) True (b) False
  29. 29.🌐 Which one has an address bar? (a) a code editor (b) a web server (c) a web browser
  30. 30.What is <input type="password"> for? (a) picks a day (b) is for one line of words (c) hides what you type (d) lets you pick only one
  31. 31.🌍 What is the domain name in this URL?
    https://www.example.net/maths/tables.html
    (a) www.example.net (b) /maths/tables.html (c) https (d) learn.example.com
  32. 32.True or false: <input type="date"> picks a day. (a) False (b) True
  33. 33.📝 How many paragraphs does this code make?
    <p>Hello, world!</p>
    <p>I love mangoes.</p>
    <h2>Cricket is fun.</h2>
  34. 34.🖌️ Which CSS property sets the letter colour? (a) font-size (b) font-family (c) text-align (d) color
  35. 35.True or false: the browser is the page’s address. (a) False (b) True
  36. 36.Which of these is true of a code editor? (a) colours code to help us (b) stores a website’s files (c) shows pages from the web (d) has an address bar
  37. 37.🔠 Which heading shows the SMALLEST text: <h2>, <h1>, <h3> or <h6>? (a) <h1> (b) <h2> (c) <h3> (d) <h6>
  38. 38.📝 Does <b> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  39. 39.🔗 Which words do you click on?
    <a href="maths.html">Play games</a>
    (a) About us (b) maths.html (c) Play games (d) href
  40. 40.True or false: HTTPS shows the page to you. (a) True (b) False

Answer key

  1. <textarea>
  2. Easy snacks
  3. <title>
  4. padding
  5. 3
  6. pink on red
  7. hosts websites online
  8. Fun facts
  9. makes letters bigger
  10. Hello, world!
  11. False
  12. turns HTML into a page
  13. 72
  14. fits every screen
  15. <h6>
  16. 36
  17. Yes
  18. <caption>
  19. False
  20. 1
  21. :
  22. <h1>
  23. The red kite
  24. False
  25. 2
  26. the text or picture
  27. </strong>
  28. True
  29. a web browser
  30. hides what you type
  31. www.example.net
  32. True
  33. 2
  34. color
  35. False
  36. colours code to help us
  37. <h6>
  38. has a closing tag
  39. Play games
  40. False

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