← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 95 · 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 JavaScript word makes a new variable? (a) let (b) for (c) console.log() (d) alert()
  2. 2.📊 Where do <td> cells go? (a) inside a <li> (b) inside the <head> (c) inside a <tr> (d) inside a <p>
  3. 3.📱 The screen is 540px wide. Does the rule inside @media apply?
    p {
      font-size: 12px;
    }
    @media (max-width: 768px) {
      p {
        font-size: 6px;
      }
    }
    (a) No (b) Yes
  4. 4.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Class 7 Blog</title>
    </head>
    <body>
      <h1>Easy snacks</h1>
      <p>I like to read.</p>
    </body>
    </html>
    (a) Class 7 Blog (b) Easy snacks (c) body (d) I like to read.
  5. 5.Which of these goes in the head? (a) <link rel="stylesheet"> (b) <h1> (c) <p> (d) <ul>
  6. 6.🚀 Which file should this code go in: <h1>My Site</h1> (a) script.js (b) style.css (c) index.html
  7. 7.🔠 Which heading shows the BIGGEST text: <h1>, <h5>, <h2> or <h3>? (a) <h3> (b) <h5> (c) <h2> (d) <h1>
  8. 8.🔗 Which words do you click on?
    <a href="art.html">Art corner</a>
    (a) School news (b) art.html (c) Art corner (d) href
  9. 9.True or false: <input type="email"> is for one line of words. (a) True (b) False
  10. 10.🔠 Which heading shows the BIGGEST text: <h6>, <h2>, <h1> or <h3>? (a) <h6> (b) <h3> (c) <h1> (d) <h2>
  11. 11.📝 What does <br> do? (a) adds a picture (b) makes a list (c) makes text bold (d) starts a new line
  12. 12.🖌️ Where does the text sit on its line?
    h1 {
      text-align: left;
      font-size: 16px;
      background-color: yellow;
      color: white;
    }
    (a) in the middle (b) on the left (c) on the right
  13. 13.🔁 What is the LAST number this code prints?
    for (let i = 0; i < 8; i = i + 4) {
      console.log(i);
    }
  14. 14.🧭 Which semantic tag holds a news story? (a) <header> (b) <main> (c) <footer> (d) <article>
  15. 15.📱 Responsive design means a page ___. (a) never changes (b) has no pictures (c) fits every screen (d) is only for laptops
  16. 16.🔢 To build and share your first web page, what comes right after “plan what to show”? (a) publish it online (b) add CSS styles (c) test in a browser (d) write the HTML
  17. 17.💪 How much empty space (px) is left after the last box?
    .row {
      display: flex;
      width: 200px;
      justify-content: flex-start;
    }
    Inside are 3 boxes, each 60px wide (no margins).
  18. 18.Which of these goes in the body? (a) <title> (b) <link rel="stylesheet"> (c) <h1> (d) <style>
  19. 19.🌈 In #rrggbb, which colour do the last two digits give? (a) green (b) red (c) white (d) blue
  20. 20.💬 Why do coders write comments? (a) to show pictures (b) to leave notes (c) to make links (d) to add colour
  21. 21.True or false: <tr> makes one table row. (a) False (b) True
  22. 22.True or false: “colour as the only clue” makes the page harder to use. (a) False (b) True
  23. 23.🏷️ Which is the closing tag for <h2>? (a) <\h2> (b) </h2> (c) <h2/> (d) <h2>
  24. 24.True or false: <main> holds copyright notes. (a) True (b) False
  25. 25.📦 How wide (px) is this box from the outer edge of its left border to the outer edge of its right border?
    .box {
      width: 90px;
      padding: 10px;
      border: 1px solid black;
      margin: 0px;
    }
  26. 26.🎯 Which element does the selector #top style? (a) <h2 class="note"> (b) <h1 id="intro"> (c) <h1 id="top"> (d) <h1 class="top">
  27. 27.📋 Which list suits a shopping list in any order? (a) <ol> (b) <br> (c) <hr> (d) <ul>
  28. 28.🎯 What kind of selector is #end? (a) a class selector (b) an element selector (c) an id selector
  29. 29.⚖️ What colour is the text of this element?
    <p class="note" id="logo">Hi</p>
    CSS:
    #logo { color: white; }
    .note { color: yellow; }
    (a) white (b) black (c) purple (d) yellow
  30. 30.🏷️ Is <b> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  31. 31.True or false: <th> holds the whole table. (a) True (b) False
  32. 32.💬 Does the browser show comments on the page? (a) Yes (b) No
  33. 33.🌍 Which one scrambles data on its way? (a) the server (b) the browser (c) the URL (d) HTTPS
  34. 34.📊 How many cells are in each row?
    <table>
      <tr><th>Name</th><th>Fruit</th></tr>
      <tr><td>Jamun</td><td>Papaya</td></tr>
      <tr><td>Guava</td><td>Banana</td></tr>
    </table>
  35. 35.True or false: <ul> is one item of a list. (a) False (b) True
  36. 36.🔠 Which heading shows the BIGGEST text: <h6>, <h4>, <h3> or <h5>? (a) <h6> (b) <h5> (c) <h4> (d) <h3>
  37. 37.🌍 Which one shows the page to you? (a) the URL (b) HTTPS (c) the server (d) the browser
  38. 38.💬 Which text will NOT show on the page?
    <!-- <p>Cricket is fun.</p> -->
    <p>Hello, world!</p>
    <p>Our school trip</p>
    (a) Our school trip (b) Hello, world! (c) Cricket is fun.
  39. 39.🔗 Where does this link open?
    <a href="games.html">School news</a>
    (a) in the same tab (b) in a new tab
  40. 40.🔗 Where does this link open?
    <a href="news.html">School news</a>
    (a) in the same tab (b) in a new tab

Answer key

  1. let
  2. inside a <tr>
  3. Yes
  4. Easy snacks
  5. <link rel="stylesheet">
  6. index.html
  7. <h1>
  8. Art corner
  9. False
  10. <h1>
  11. starts a new line
  12. on the left
  13. 4
  14. <article>
  15. fits every screen
  16. write the HTML
  17. 20
  18. <h1>
  19. blue
  20. to leave notes
  21. True
  22. True
  23. </h2>
  24. False
  25. 112
  26. <h1 id="top">
  27. <ul>
  28. an id selector
  29. white
  30. an opening tag
  31. False
  32. No
  33. HTTPS
  34. 2
  35. False
  36. <h3>
  37. the browser
  38. Cricket is fun.
  39. in the same tab
  40. in the same tab

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