← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 404 · 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.🔍 One closing tag is missing. Which one?
    <u>Our school trip
    <h2>Rain today</h2>
    <small>My pets</small>
    (a) </h2> (b) </small> (c) </i> (d) </u>
  2. 2.🔠 Which heading shows the SMALLEST text: <h2>, <h5>, <h3> or <h6>? (a) <h2> (b) <h6> (c) <h3> (d) <h5>
  3. 3.🖌️ How big is the text, in px?
    li {
      background-color: green;
      text-align: left;
      color: red;
      font-size: 16px;
    }
  4. 4.📋 Which tag goes around each item of a list? (a) <ol> (b) <ul> (c) <p> (d) <li>
  5. 5.🔗 What does HyperText mean? (a) text in colour (b) very big text (c) text with links (d) secret text
  6. 6.🖌️ Which CSS property makes the text bold? (a) text-align (b) font-weight (c) color (d) font-size
  7. 7.🖼️ Which tag puts a picture on a page? (a) <a> (b) <p> (c) <pic> (d) <img>
  8. 8.Which of these is true of a web server? (a) shows pages from the web (b) answers page requests (c) has an address bar (d) is where we type code
  9. 9.📦 How much space across (px) does this box take in all, margin included?
    .box {
      width: 190px;
      padding: 25px;
      border: 1px solid black;
      margin: 15px;
    }
  10. 10.📦 In the box model, which part is the gap to other boxes? (a) content (b) margin (c) border (d) padding
  11. 11.⚡ What number does this code print?
    let a = 32;
    let b = 39;
    console.log(a + b);
  12. 12.📋 Which list tag lists things in any order? (a) <ul> (b) <li> (c) <ol>
  13. 13.📊 Which tag gives the table a title? (a) <tr> (b) <caption> (c) <th> (d) <table>
  14. 14.⚖️ Two rules with the same selector set a colour. Which one wins? (a) the first one (b) the later one (c) neither (d) the shorter one
  15. 15.📋 What number does the browser show next to “Litchi”?
    <ol>
      <li>Guava</li>
      <li>Mango</li>
      <li>Jamun</li>
      <li>Litchi</li>
    </ol>
  16. 16.📄 Which part holds everything you see on the page? (a) the doctype (b) the title (c) the head (d) the body
  17. 17.🖌️ What colour are the letters?
    p {
      background-color: red;
      color: white;
      font-size: 32px;
      text-align: left;
    }
    (a) blue (b) red (c) white
  18. 18.📱 The screen is 414px wide. What font-size (px) does the paragraph get?
    p {
      font-size: 16px;
    }
    @media (max-width: 480px) {
      p {
        font-size: 12px;
      }
    }
  19. 19.🚀 Which file should this code go in: alert("Hi"); (a) index.html (b) script.js (c) style.css
  20. 20.🌗 Is yellow on white easy or hard to read? (a) easy to read (b) hard to read
  21. 21.🌈 Which colour is #00ffff? (a) cyan (b) magenta (c) red (d) yellow
  22. 22.🔤 In “HTML”, what does the M stand for? (a) Machine (b) Modern (c) Mouse (d) Markup
  23. 23.True or false: padding is the gap round content. (a) False (b) True
  24. 24.📋 How many items does this list show?
    <ul>
      <li>Papaya</li>
      <li>Guava</li>
      <li>Mango</li>
    </ul>
  25. 25.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Riya’s Recipes</title>
    </head>
    <body>
      <h1>All about me</h1>
      <p>I like to read.</p>
    </body>
    </html>
    (a) All about me (b) index.html (c) Riya’s Recipes (d) I like to read.
  26. 26.🌈 Which colour is rgb(255, 0, 255)? (a) black (b) white (c) blue (d) magenta
  27. 27.🏷️ Which is the closing tag for <b>? (a) <b> (b) </b> (c) <b/> (d) <\b>
  28. 28.🎯 Which element does the selector h2 style? (a) <div class="star"> (b) <li> (c) <span id="logo"> (d) <h2 class="star">
  29. 29.📊 Where do <td> cells go? (a) inside a <p> (b) inside the <head> (c) inside a <tr> (d) inside a <li>
  30. 30.🌐 Which one shows pages from the web? (a) a web server (b) a web browser (c) a code editor
  31. 31.🔗 Which address opens when you click this link?
    <a href="contact.html">Play games</a>
    (a) maths.html (b) Play games (c) contact.html (d) https://example.com
  32. 32.🎯 Which sign starts an id selector? (a) # (b) @ (c) . (d) &
  33. 33.True or false: <ul> goes inside ul or ol. (a) True (b) False
  34. 34.🔠 How many headings are in this code?
    <h1>My pets</h1>
    <h4>I love mangoes.</h4>
    <p>The red kite</p>
  35. 35.Which of these is true of a web browser? (a) is where we type code (b) has an address bar (c) sends pages over the net (d) shows line numbers
  36. 36.Which of these is a closing tag? (a) </title> (b) <body> (c) <title> (d) <h1>
  37. 37.📛 In <a href="x.html">, what is href? (a) a closing tag (b) an element name (c) a comment (d) an attribute
  38. 38.🔗 Which words do you click on?
    <a href="https://example.com">Maths fun</a>
    (a) Maths fun (b) Art corner (c) href (d) https://example.com
  39. 39.📱 Responsive design means a page ___. (a) never changes (b) has no pictures (c) is only for laptops (d) fits every screen
  40. 40.✍️ How many declarations (property: value pairs) are in this rule?
    .note {
      padding: 8px;
    }

Answer key

  1. </u>
  2. <h6>
  3. 16
  4. <li>
  5. text with links
  6. font-weight
  7. <img>
  8. answers page requests
  9. 272
  10. margin
  11. 71
  12. <ul>
  13. <caption>
  14. the later one
  15. 4
  16. the body
  17. white
  18. 12
  19. script.js
  20. hard to read
  21. cyan
  22. Markup
  23. True
  24. 3
  25. Riya’s Recipes
  26. magenta
  27. </b>
  28. <h2 class="star">
  29. inside a <tr>
  30. a web browser
  31. contact.html
  32. #
  33. False
  34. 2
  35. has an address bar
  36. </title>
  37. an attribute
  38. Maths fun
  39. fits every screen
  40. 1

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