← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 457 · 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 <input> tags are in this form?
    <form>
      <input type="email">
      <input type="password">
      <input type="number">
      <input type="date">
      <input type="submit" value="Send">
    </form>
  2. 2.🔗 Which words do you click on?
    <a href="art.html">Contact us</a>
    (a) Visit the site (b) href (c) Contact us (d) art.html
  3. 3.🌍 What do we call the computer that stores a website? (a) a mouse (b) a printer (c) a server (d) a keyboard
  4. 4.🔠 How many headings are in this code?
    <h1>Cricket is fun.</h1>
    <p>Fun facts</p>
    <p>The red kite</p>
  5. 5.Which of these is a closing tag? (a) </title> (b) <b> (c) <body> (d) <title>
  6. 6.🌈 In #00009d the blue part is the hex number 9d. What is it as a normal number?
  7. 7.🔗 Which attribute holds the address of a link? (a) href (b) id (c) src (d) alt
  8. 8.📝 On how many lines does the browser show this paragraph?
    <p>Rivers flow<br>Roses are red</p>
  9. 9.🔍 One closing tag is missing. Which one?
    <small>Rain today</small>
    <h1>My best friend</h1>
    <strong>Good morning!
    (a) </h1> (b) </strong> (c) </h2> (d) </small>
  10. 10.📝 How many <input> tags are in this form?
    <form>
      <input type="password">
      <input type="text">
      <input type="submit" value="Send">
    </form>
  11. 11.🧭 How many <main> parts should a page have? (a) ten (b) none (c) one (d) three
  12. 12.🚀 Which file should this code go in: <h1>My Site</h1> (a) script.js (b) style.css (c) index.html
  13. 13.💪 How much empty space (px) is left after the last box?
    .row {
      display: flex;
      width: 190px;
      justify-content: flex-start;
    }
    Inside are 4 boxes, each 40px wide (no margins).
  14. 14.🔠 Which tag is the least important heading? (a) <h6> (b) <h1> (c) <p> (d) <h3>
  15. 15.🌈 Hex digits go 0 to 9, then A to which letter? (a) Z (b) J (c) G (d) F
  16. 16.📋 Does this list show bullets or numbers?
    <ul>
      <li>Mango</li>
      <li>Orange</li>
    </ul>
    (a) numbers (b) bullets
  17. 17.🔍 Which is the odd one out? (a) checks a quiz answer (b) lays out the page (c) counts down a timer (d) shows a pop-up message
  18. 18.📄 Where does <meta charset="utf-8"> go: in the head or in the body? (a) in the head (b) in the body
  19. 19.Which of these does CSS do? (a) changes the page live (b) makes a form box (c) counts down a timer (d) rounds box corners
  20. 20.⚡ What does this code print? (Look at the quotes!)
    let x = "7";
    let y = 6;
    console.log(x + y);
    (a) 13 (b) Error (c) 76
  21. 21.⚖️ What colour is the text of this element?
    <h1 class="note" id="logo">Hi</h1>
    CSS:
    .note { color: yellow; }
    .note { color: black; }
    (a) yellow (b) blue (c) black (d) red
  22. 22.True or false: <ul> lists things in any order. (a) False (b) True
  23. 23.True or false: <link rel="stylesheet"> goes in the head. (a) True (b) False
  24. 24.🌍 What is the domain name in this URL?
    https://www.example.com/index.html
    (a) www.example.com (b) https (c) kids.example.org (d) /index.html
  25. 25.🚀 Which file should this code go in: let score = 0; (a) style.css (b) script.js (c) index.html
  26. 26.🔍 Which is the odd one out? (a) rounds box corners (b) makes a form box (c) makes headings and lists (d) puts a picture on a page
  27. 27.Which of these goes in the body? (a) <meta charset="utf-8"> (b) <ul> (c) <style> (d) <link rel="stylesheet">
  28. 28.🔗 Which address opens when you click this link?
    <a href="contact.html">Play games</a>
    (a) contact.html (b) https://example.com (c) maths.html (d) Play games
  29. 29.📄 Can HTML on its own make bullet lists? (a) Yes (b) No
  30. 30.True or false: “write clear link text” makes the page harder to use. (a) False (b) True
  31. 31.🔁 Which word runs code only when something is true? (a) if (b) log (c) for (d) let
  32. 32.🏷️ Which is the closing tag for <em>? (a) </em> (b) <em/> (c) <\em> (d) <em>
  33. 33.🔁 Which loop repeats code a set number of times? (a) else (b) if (c) let (d) for
  34. 34.📱 The screen is 375px wide. Does the rule inside @media apply?
    p {
      font-size: 24px;
    }
    @media (max-width: 600px) {
      p {
        font-size: 22px;
      }
    }
    (a) Yes (b) No
  35. 35.What does font-weight do? (a) colours behind the text (b) makes letters bigger (c) makes the text bold (d) centres a heading
  36. 36.🧭 Is <span> semantic or not semantic? (a) not semantic (b) semantic
  37. 37.🔁 How many times does this code print “Welcome”?
    for (let i = 0; i <= 5; i++) {
      console.log("Welcome");
    }
  38. 38.True or false: <title> is an empty tag. (a) False (b) True
  39. 39.📦 How much space across (px) does this box take in all, margin included?
    .box {
      width: 80px;
      padding: 25px;
      border: 4px solid black;
      margin: 5px;
    }
  40. 40.🔁 What does this code print?
    let temp = 45;
    if (temp >= 22) {
      console.log("Hot");
    } else {
      console.log("Cool");
    }
    (a) Cool (b) Hot

Answer key

  1. 5
  2. Contact us
  3. a server
  4. 1
  5. </title>
  6. 157
  7. href
  8. 2
  9. </strong>
  10. 3
  11. one
  12. index.html
  13. 30
  14. <h6>
  15. F
  16. bullets
  17. lays out the page
  18. in the head
  19. rounds box corners
  20. 76
  21. black
  22. True
  23. True
  24. www.example.com
  25. script.js
  26. rounds box corners
  27. <ul>
  28. contact.html
  29. Yes
  30. False
  31. if
  32. </em>
  33. for
  34. Yes
  35. makes the text bold
  36. not semantic
  37. 6
  38. False
  39. 148
  40. Hot

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