← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 86 · 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 of these is true of <footer>? (a) holds the main content (b) holds the menu of links (c) holds one blog post (d) holds copyright notes
  2. 2.🏷️ What does a closing tag have that an opening tag does not? (a) a dollar $ (b) a dot . (c) a hash # (d) a slash /
  3. 3.🌈 In #002c00 the green part is the hex number 2c. What is it as a normal number?
  4. 4.📊 Where do <td> cells go? (a) inside a <tr> (b) inside the <head> (c) inside a <p> (d) inside a <li>
  5. 5.💬 Which text will NOT show on the page?
    <!-- <p>Good morning!</p> -->
    <p>Hello, world!</p>
    <p>Rain today</p>
    <p>Fun facts</p>
    (a) Hello, world! (b) Rain today (c) Good morning! (d) Fun facts
  6. 6.🔗 Which address opens when you click this link?
    <a href="contact.html">Contact us</a>
    (a) maths.html (b) Contact us (c) https://example.com (d) contact.html
  7. 7.🖌️ Which CSS property makes the text bold? (a) font-family (b) font-size (c) font-weight (d) color
  8. 8.📝 Which tag makes a drop-down list? (a) <ol> (b) <select> (c) <li> (d) <ul>
  9. 9.Which of these is a strong password? (a) riya2014 (b) 123456 (c) S0lar!Pen#8 (d) iloveyou
  10. 10.🔠 How many <h1> headings should a page usually have? (a) 1 (b) 3 (c) 6 (d) 10
  11. 11.🔗 Which tag makes a clickable link? (a) <link> (b) <a> (c) <img> (d) <p>
  12. 12.🔠 Which heading shows the SMALLEST text: <h2>, <h4>, <h1> or <h6>? (a) <h6> (b) <h1> (c) <h4> (d) <h2>
  13. 13.What does font-weight do? (a) centres a heading (b) colours behind the text (c) sets the letter colour (d) makes the text bold
  14. 14.✍️ How many declarations (property: value pairs) are in this rule?
    li {
      background-color: yellow;
      padding: 8px;
      margin: 10px;
    }
  15. 15.🏷️ Which is the closing tag for <u>? (a) <u/> (b) <u> (c) <\u> (d) </u>
  16. 16.🌈 Which colour is #ff00ff? (a) blue (b) red (c) magenta (d) bright green
  17. 17.📄 Where does <a> go: in the head or in the body? (a) in the body (b) in the head
  18. 18.🔠 Which heading shows the SMALLEST text: <h1>, <h4>, <h5> or <h3>? (a) <h1> (b) <h3> (c) <h5> (d) <h4>
  19. 19.💬 How many paragraphs show on the page?
    <p>Fun facts</p>
    <!-- <p>Cricket is fun.</p> -->
    <p>The red kite</p>
    <!-- <p>Hello, world!</p> -->
    <!-- <p>I love mangoes.</p> -->
  20. 20.💬 How many paragraphs show on the page?
    <p>My pets</p>
    <!-- <p>Cricket is fun.</p> -->
    <p>I love mangoes.</p>
    <p>Hello, world!</p>
  21. 21.💬 Which text will NOT show on the page?
    <p>Rain today</p>
    <!-- <p>Fun facts</p> -->
    <p>Cricket is fun.</p>
    (a) Fun facts (b) Rain today (c) Cricket is fun.
  22. 22.📊 How many rows does this table have?
    <table>
      <tr><td>Orange</td><td>Grapes</td><td>Papaya</td></tr>
      <tr><td>Jamun</td><td>Grapes</td><td>Banana</td></tr>
    </table>
  23. 23.🔁 When does the else part run? (a) never (b) always (c) when if is false (d) when if is true
  24. 24.Which of these is a closing tag? (a) </body> (b) <title> (c) <p> (d) <body>
  25. 25.⚡ What does this code show?
    let name = "Meera";
    alert("Hi, " + name + "!");
    (a) Hi, Meera! (b) Meera (c) name (d) Hi, name!
  26. 26.📄 Which part holds everything you see on the page? (a) the title (b) the body (c) the head (d) the doctype
  27. 27.🔍 Which is the odd one out? (a) shows a pop-up message (b) changes the page live (c) reacts to a button click (d) gives the page structure
  28. 28.🌐 Which one turns HTML into a page? (a) a web server (b) a web browser (c) a code editor
  29. 29.💪 Which flexbox property spaces boxes along a row? (a) justify-content (b) align-items (c) display: flex (d) gap
  30. 30.🔁 How many times does this code print “Hello”?
    for (let i = 3; i <= 12; i++) {
      console.log("Hello");
    }
  31. 31.🔢 To build and share your first web page, which comes LAST? (a) add CSS styles (b) write the HTML (c) test in a browser (d) publish it online
  32. 32.Which of these goes in the body? (a) <img> (b) <meta charset="utf-8"> (c) <link rel="stylesheet"> (d) <title>
  33. 33.Which of these is true of a web server? (a) turns HTML into a page (b) has an address bar (c) answers page requests (d) is where we type code
  34. 34.🔁 What does this code print?
    let temp = 43;
    if (temp > 11) {
      console.log("Hot");
    } else {
      console.log("Cool");
    }
    (a) Hot (b) Cool
  35. 35.🔗 What does target="_blank" do to a link? (a) makes it blank (b) hides the link (c) makes it bold (d) opens it in a new tab
  36. 36.🔢 On a typical page, from top to bottom, what comes right after “<nav>”? (a) <header> (b) <main> (c) <footer>
  37. 37.✍️ Which property is set to 10px in this rule?
    li {
      border: 2px solid;
      margin: 10px;
      font-weight: bold;
    }
    (a) padding (b) 10px (c) font-weight (d) margin
  38. 38.True or false: #hero is an element selector. (a) True (b) False
  39. 39.🔍 Which is the odd one out? (a) opens web pages for us (b) shows line numbers (c) turns HTML into a page (d) shows pages from the web
  40. 40.📱 The screen is 700px wide. What font-size (px) does the paragraph get?
    p {
      font-size: 24px;
    }
    @media (max-width: 480px) {
      p {
        font-size: 20px;
      }
    }

Answer key

  1. holds copyright notes
  2. a slash /
  3. 44
  4. inside a <tr>
  5. Good morning!
  6. contact.html
  7. font-weight
  8. <select>
  9. S0lar!Pen#8
  10. 1
  11. <a>
  12. <h6>
  13. makes the text bold
  14. 3
  15. </u>
  16. magenta
  17. in the body
  18. <h5>
  19. 2
  20. 3
  21. Fun facts
  22. 2
  23. when if is false
  24. </body>
  25. Hi, Meera!
  26. the body
  27. gives the page structure
  28. a web browser
  29. justify-content
  30. 10
  31. publish it online
  32. <img>
  33. answers page requests
  34. Hot
  35. opens it in a new tab
  36. <main>
  37. margin
  38. False
  39. shows line numbers
  40. 24

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