← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 813 · 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 semantic tag holds copyright notes? (a) <aside> (b) <main> (c) <footer> (d) <header>
  2. 2.🔍 One closing tag is missing. Which one?
    <em>My pets</em>
    <h2>Fun facts</h2>
    <h1>Rain today
    (a) </em> (b) </h1> (c) </p> (d) </h2>
  3. 3.📋 Does this list show bullets or numbers?
    <ul>
      <li>Litchi</li>
      <li>Jamun</li>
    </ul>
    (a) numbers (b) bullets
  4. 4.📋 Does this list show bullets or numbers?
    <ul>
      <li>Orange</li>
      <li>Litchi</li>
    </ul>
    (a) bullets (b) numbers
  5. 5.🏷️ Is </h1> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  6. 6.🌐 Which one shows pages from the web? (a) a web server (b) a code editor (c) a web browser
  7. 7.True or false: <br> has a closing tag. (a) True (b) False
  8. 8.⚖️ What colour is the text of this element?
    <h1 class="note" id="hero">Hi</h1>
    CSS:
    .note { color: yellow; }
    .note { color: white; }
    (a) black (b) white (c) yellow (d) purple
  9. 9.📝 How many <input> tags are in this form?
    <form>
      <input type="number">
      <input type="email">
      <input type="password">
      <input type="text">
      <input type="submit" value="Send">
    </form>
  10. 10.⚖️ What colour is the text of this element?
    <h2 class="menu" id="logo">Hi</h2>
    CSS:
    .menu { color: red; }
    #logo { color: blue; }
    h2 { color: green; }
    (a) orange (b) red (c) blue (d) green
  11. 11.🎯 Which element does the selector #top style? (a) <li class="top"> (b) <div class="note"> (c) <li id="intro"> (d) <li id="top">
  12. 12.🖌️ What colour are the letters?
    li {
      background-color: yellow;
      color: blue;
      font-size: 16px;
      text-align: left;
    }
    (a) blue (b) yellow (c) white
  13. 13.🖌️ Where does the text sit on its line?
    p {
      font-size: 36px;
      text-align: left;
      color: red;
      background-color: blue;
    }
    (a) on the right (b) on the left (c) in the middle
  14. 14.Which of these goes in the body? (a) <title> (b) <link rel="stylesheet"> (c) <a> (d) <style>
  15. 15.Which of these does JavaScript do? (a) adds space around boxes (b) changes the text size (c) changes the page live (d) makes a link
  16. 16.📄 Where does the text of <title> appear? (a) in a big heading (b) nowhere (c) on the browser tab (d) at the bottom
  17. 17.🌍 Which one asks for a web page? (a) the URL (b) the server (c) HTTPS (d) the browser
  18. 18.📊 In a table, which tag is a row? (a) <tr> (b) <th> (c) <tb> (d) <td>
  19. 19.🏷️ Which is the closing tag for <strong>? (a) </strong> (b) <\strong> (c) <strong> (d) <strong/>
  20. 20.✍️ Which property is set to red in this rule?
    h2 {
      color: red;
      width: 300px;
    }
    (a) text-align (b) color (c) font-size (d) red
  21. 21.📝 Which tag gives a form box a name you can click? (a) <h1> (b) <label> (c) <title> (d) <hr>
  22. 22.🎨 What does CSS stand for? (a) Computer Style Sheets (b) Colourful Site Styles (c) Creative Sheet System (d) Cascading Style Sheets
  23. 23.🔢 In a basic web page file, which comes first: “<head>” or “<html>”? (a) <html> (b) <head>
  24. 24.🏷️ What does a closing tag have that an opening tag does not? (a) a slash / (b) a hash # (c) a dot . (d) a dollar $
  25. 25.🚀 Where in index.html does the link to style.css go? (a) inside a <p> (b) in the footer (c) in the head (d) after </html>
  26. 26.⚡ Where does console.log() show its output? (a) in the address bar (b) on the title bar (c) on the printer (d) in the console
  27. 27.🔍 Which is the odd one out? (a) adds space around boxes (b) puts a picture on a page (c) sets colours and fonts (d) lays out the page
  28. 28.📄 Where does <link rel="stylesheet"> go: in the head or in the body? (a) in the head (b) in the body
  29. 29.⚡ Which word makes a new variable? (a) make (b) let (c) put (d) give
  30. 30.💪 How wide (px) is each gap between two boxes?
    .row {
      display: flex;
      width: 350px;
      justify-content: space-between;
    }
    Inside are 4 boxes, each 50px wide (no margins).
  31. 31.🖌️ What colour are the letters?
    h1 {
      text-align: left;
      background-color: yellow;
      font-size: 40px;
      color: orange;
    }
    (a) blue (b) orange (c) yellow
  32. 32.🔍 Which is the odd one out? (a) makes a form box (b) makes a link (c) gives the page structure (d) reacts to a button click
  33. 33.✍️ How many declarations (property: value pairs) are in this rule?
    p {
      text-align: center;
      font-weight: bold;
      color: red;
    }
  34. 34.🧭 Why use <nav> instead of <div> for a menu? (a) it tells its meaning (b) it adds pictures (c) it loads faster (d) it makes text red
  35. 35.📱 The screen is 375px wide. What font-size (px) does the paragraph get?
    p {
      font-size: 20px;
    }
    @media (min-width: 1024px) {
      p {
        font-size: 24px;
      }
    }
  36. 36.💬 Can anyone read your comments by viewing the page source? (a) No (b) Yes
  37. 37.📋 Which list shows the steps of a recipe best? (a) <ul> (b) <hr> (c) <ol> (d) <br>
  38. 38.🖌️ What colour is behind the letters?
    li {
      background-color: black;
      text-align: left;
      font-size: 36px;
      color: red;
    }
    (a) red (b) yellow (c) black
  39. 39.✍️ What value is given to margin in this rule?
    h2 {
      font-size: 20px;
      margin: 10px;
      text-align: center;
    }
    (a) bold (b) 8px (c) 10px (d) margin
  40. 40.True or false: a code editor turns HTML into a page. (a) False (b) True

Answer key

  1. <footer>
  2. </h1>
  3. bullets
  4. bullets
  5. a closing tag
  6. a web browser
  7. False
  8. white
  9. 5
  10. blue
  11. <li id="top">
  12. blue
  13. on the left
  14. <a>
  15. changes the page live
  16. on the browser tab
  17. the browser
  18. <tr>
  19. </strong>
  20. color
  21. <label>
  22. Cascading Style Sheets
  23. <html>
  24. a slash /
  25. in the head
  26. in the console
  27. puts a picture on a page
  28. in the head
  29. let
  30. 50
  31. orange
  32. reacts to a button click
  33. 3
  34. it tells its meaning
  35. 20
  36. Yes
  37. <ol>
  38. black
  39. 10px
  40. False

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