← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 958 · 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.📝 At most, how many of these can be chosen at the same time?
    <form>
      <input type="checkbox" name="fruit"> Banana
      <input type="checkbox" name="fruit"> Guava
      <input type="checkbox" name="fruit"> Litchi
      <input type="checkbox" name="fruit"> Mango
      <input type="checkbox" name="fruit"> Papaya
    </form>
  2. 2.📱 The screen is 1366px wide. Does the rule inside @media apply?
    p {
      font-size: 12px;
    }
    @media (min-width: 1024px) {
      p {
        font-size: 18px;
      }
    }
    (a) Yes (b) No
  3. 3.🏷️ Which is the closing tag for <small>? (a) <small/> (b) <\small> (c) </small> (d) <small>
  4. 4.🖌️ What colour is behind the letters?
    h2 {
      font-size: 36px;
      text-align: center;
      color: orange;
      background-color: black;
    }
    (a) purple (b) black (c) orange
  5. 5.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>My Hobbies</title>
    </head>
    <body>
      <h1>Welcome!</h1>
      <p>Thanks for visiting.</p>
    </body>
    </html>
    (a) body (b) My Hobbies (c) Welcome! (d) Thanks for visiting.
  6. 6.📝 How many paragraphs does this code make?
    <p>Our school trip</p>
    <p>Cricket is fun.</p>
    <p>I love mangoes.</p>
  7. 7.🔠 How many headings are in this code?
    <h1>My pets</h1>
    <h2>Our school trip</h2>
    <h2>I love mangoes.</h2>
    <p>Hello, world!</p>
  8. 8.🔍 Which is the odd one out? (a) rounds box corners (b) adds space around boxes (c) lays out the page (d) reacts to a button click
  9. 9.🎯 Which sign starts an id selector? (a) & (b) @ (c) # (d) .
  10. 10.Which colour pair is easy to read? (a) pink on red (b) light grey on white (c) white on dark blue (d) blue on purple
  11. 11.Which of these has a closing tag? (a) <input> (b) <b> (c) <meta> (d) <br>
  12. 12.True or false: <aside> holds the logo and title. (a) True (b) False
  13. 13.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="cake.jpg" alt="Birthday cake" width="200">
    (a) A happy dog (b) width (c) cake.jpg (d) Birthday cake
  14. 14.🔍 Which line is missing its closing tag?
    line 1: <b>The red kite
    line 2: <em>Hello, world!</em>
    line 3: <h1>Cricket is fun.</h1>
    (a) line 1 (b) line 2 (c) line 3
  15. 15.💬 How many paragraphs show on the page?
    <p>Cricket is fun.</p>
    <!-- <p>Our school trip</p> -->
    <!-- <p>Good morning!</p> -->
    <!-- <p>My pets</p> -->
  16. 16.📝 Does <p> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  17. 17.🔠 How many headings are in this code?
    <h1>Good morning!</h1>
    <p>I love mangoes.</p>
    <p>Hello, world!</p>
  18. 18.True or false: <ul><li>Art</li></ul> goes in script.js. (a) True (b) False
  19. 19.🔁 What number does this code print?
    let total = 0;
    for (let i = 1; i <= 6; i++) {
      total = total + 2;
    }
    console.log(total);
  20. 20.🔤 In “HTML”, what does the M stand for? (a) Mouse (b) Modern (c) Markup (d) Machine
  21. 21.📋 Which list tag lists steps in order? (a) <ul> (b) <li> (c) <ol>
  22. 22.🖌️ What colour are the letters?
    p {
      color: yellow;
      background-color: orange;
      font-size: 16px;
      text-align: left;
    }
    (a) yellow (b) orange (c) red
  23. 23.🔠 Which heading shows the BIGGEST text: <h5>, <h3>, <h2> or <h1>? (a) <h5> (b) <h2> (c) <h3> (d) <h1>
  24. 24.🔠 How many headings are in this code?
    <h1>The red kite</h1>
    <p>Rain today</p>
    <p>Our school trip</p>
    <p>Rain today</p>
    <h3>Our school trip</h3>
  25. 25.🌍 Which program shows a web page to us? (a) a web browser (b) a music player (c) a paint program (d) a calculator
  26. 26.⚡ What does alert() show? (a) a pop-up box (b) a picture (c) a new tab (d) a table
  27. 27.True or false: <ul> shows bullet points. (a) False (b) True
  28. 28.📱 Which tag helps phones show a page at the right size? (a) the title tag (b) the br tag (c) the viewport meta tag (d) the hr tag
  29. 29.♿ Does this help everyone, or make the page harder to use: write clear link text? (a) helps everyone (b) makes it harder
  30. 30.📱 The screen is 700px wide. Does the rule inside @media apply?
    p {
      font-size: 24px;
    }
    @media (min-width: 600px) {
      p {
        font-size: 28px;
      }
    }
    (a) Yes (b) No
  31. 31.🔢 To build and share your first web page, which comes first: “plan what to show” or “test in a browser”? (a) plan what to show (b) test in a browser
  32. 32.What does background-color do? (a) colours behind the text (b) picks the font style (c) makes the text bold (d) makes letters bigger
  33. 33.🔠 Which heading shows the BIGGEST text: <h3>, <h5>, <h6> or <h1>? (a) <h3> (b) <h5> (c) <h6> (d) <h1>
  34. 34.🧩 Which language gives the page structure? (a) HTML (b) JavaScript (c) CSS
  35. 35.⚡ Which JavaScript word shows a pop-up box? (a) if (b) alert() (c) console.log() (d) for
  36. 36.🔠 Which heading shows the SMALLEST text: <h5>, <h2>, <h1> or <h6>? (a) <h5> (b) <h6> (c) <h2> (d) <h1>
  37. 37.True or false: a web browser shows line numbers. (a) False (b) True
  38. 38.📱 The screen is 820px wide. What font-size (px) does the paragraph get?
    p {
      font-size: 24px;
    }
    @media (max-width: 600px) {
      p {
        font-size: 18px;
      }
    }
  39. 39.🔁 What number does this code print?
    let total = 0;
    for (let i = 1; i <= 6; i++) {
      total = total + 3;
    }
    console.log(total);
  40. 40.🖌️ What colour are the letters?
    h1 {
      background-color: red;
      color: black;
      font-size: 36px;
      text-align: right;
    }
    (a) black (b) orange (c) red

Answer key

  1. 5
  2. Yes
  3. </small>
  4. black
  5. Welcome!
  6. 3
  7. 3
  8. reacts to a button click
  9. #
  10. white on dark blue
  11. <b>
  12. False
  13. Birthday cake
  14. line 1
  15. 1
  16. has a closing tag
  17. 1
  18. False
  19. 12
  20. Markup
  21. <ol>
  22. yellow
  23. <h1>
  24. 2
  25. a web browser
  26. a pop-up box
  27. True
  28. the viewport meta tag
  29. helps everyone
  30. Yes
  31. plan what to show
  32. colours behind the text
  33. <h1>
  34. HTML
  35. alert()
  36. <h6>
  37. False
  38. 24
  39. 18
  40. black

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