← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 456 · 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 heading cells (<th>) does this table have?
    <table>
      <tr><th>Name</th><th>Fruit</th></tr>
      <tr><td>Orange</td><td>Jamun</td></tr>
    </table>
  2. 2.💬 Which text will NOT show on the page?
    <!-- <p>My pets</p> -->
    <p>Good morning!</p>
    <p>Rain today</p>
    (a) Good morning! (b) Rain today (c) My pets
  3. 3.📋 What number does the browser show next to “Papaya”?
    <ol start="7">
      <li>Jamun</li>
      <li>Orange</li>
      <li>Papaya</li>
      <li>Mango</li>
      <li>Grapes</li>
    </ol>
  4. 4.🔠 Which heading shows the BIGGEST text: <h1>, <h5>, <h6> or <h4>? (a) <h6> (b) <h1> (c) <h5> (d) <h4>
  5. 5.📋 What number does the browser show next to “Guava”?
    <ol start="6">
      <li>Jamun</li>
      <li>Grapes</li>
      <li>Guava</li>
    </ol>
  6. 6.True or false: CSS makes a form box. (a) False (b) True
  7. 7.🧭 Is <footer> semantic or not semantic? (a) not semantic (b) semantic
  8. 8.🔐 Is riya2014 a strong or a weak password? (a) weak (b) strong
  9. 9.True or false: img is an id selector. (a) False (b) True
  10. 10.True or false: in <img>, src is read by screen readers. (a) True (b) False
  11. 11.True or false: <input type="email"> is for an email address. (a) True (b) False
  12. 12.🖌️ What colour are the letters?
    h2 {
      background-color: red;
      font-size: 12px;
      color: blue;
      text-align: left;
    }
    (a) blue (b) red (c) green
  13. 13.🔗 Which address opens when you click this link?
    <a href="maths.html">Take the quiz</a>
    (a) news.html (b) art.html (c) maths.html (d) Take the quiz
  14. 14.🔠 Which heading shows the BIGGEST text: <h1>, <h2>, <h6> or <h4>? (a) <h2> (b) <h6> (c) <h4> (d) <h1>
  15. 15.📱 The screen is 414px wide. What font-size (px) does the paragraph get?
    p {
      font-size: 12px;
    }
    @media (max-width: 1024px) {
      p {
        font-size: 10px;
      }
    }
  16. 16.🔒 Is the connection to this address scrambled (encrypted)?
    http://www.example.com/about.html
    (a) No (b) Yes
  17. 17.🧭 Is <aside> semantic or not semantic? (a) semantic (b) not semantic
  18. 18.🔁 When does the else part run? (a) always (b) when if is true (c) never (d) when if is false
  19. 19.🔍 One closing tag is missing. Which one?
    <em>My best friend</em>
    <h1>I love mangoes.</h1>
    <h2>The red kite
    (a) </em> (b) </h1> (c) </strong> (d) </h2>
  20. 20.⚖️ Which selector is the strongest? (a) an element selector (b) a class selector (c) an id selector
  21. 21.True or false: <li> has a closing tag. (a) True (b) False
  22. 22.🔠 Which tag is used for the main title on a page? (a) <h1> (b) <p> (c) <h6> (d) <br>
  23. 23.🔠 How many headings are in this code?
    <h1>Fun facts</h1>
    <p>The red kite</p>
    <h4>The red kite</h4>
  24. 24.🔠 How many heading levels does HTML have? (a) 3 (b) 10 (c) 6 (d) 4
  25. 25.🔤 In “HTML”, what does the L stand for? (a) Language (b) Link (c) Line (d) Laptop
  26. 26.🔁 What does this code print?
    let score = 3;
    if (score < 12) {
      console.log("You win");
    } else {
      console.log("Play again");
    }
    (a) Play again (b) You win
  27. 27.🔗 Where does this link open?
    <a href="https://example.com">About us</a>
    (a) in a new tab (b) in the same tab
  28. 28.📱 Which tag helps phones show a page at the right size? (a) the br tag (b) the viewport meta tag (c) the title tag (d) the hr tag
  29. 29.🏷️ Which is the closing tag for <h2>? (a) <\h2> (b) <h2/> (c) <h2> (d) </h2>
  30. 30.💬 How many paragraphs show on the page?
    <!-- <p>I love mangoes.</p> -->
    <p>Fun facts</p>
    <!-- <p>Hello, world!</p> -->
    <!-- <p>Cricket is fun.</p> -->
  31. 31.📝 Does <img> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  32. 32.Which of these is true of <nav>? (a) holds one blog post (b) holds the menu of links (c) sits at the bottom (d) holds a news story
  33. 33.✍️ Which sign ends each CSS declaration? (a) , (b) : (c) ; (d) .
  34. 34.🏷️ Is </li> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  35. 35.True or false: <br> has a closing tag. (a) True (b) False
  36. 36.💬 Why do coders write comments? (a) to leave notes (b) to make links (c) to show pictures (d) to add colour
  37. 37.🌐 Which one sends pages over the net? (a) a web server (b) a web browser (c) a code editor
  38. 38.🔁 How many times does this code print “Well done”?
    for (let i = 1; i < 3; i++) {
      console.log("Well done");
    }
  39. 39.🔢 In a basic web page file, which comes first: “<head>” or “</head>”? (a) </head> (b) <head>
  40. 40.🔐 Is qwerty a strong or a weak password? (a) strong (b) weak

Answer key

  1. 2
  2. My pets
  3. 9
  4. <h1>
  5. 8
  6. False
  7. semantic
  8. weak
  9. False
  10. False
  11. True
  12. blue
  13. maths.html
  14. <h1>
  15. 10
  16. No
  17. semantic
  18. when if is false
  19. </h2>
  20. an id selector
  21. True
  22. <h1>
  23. 2
  24. 6
  25. Language
  26. You win
  27. in the same tab
  28. the viewport meta tag
  29. </h2>
  30. 1
  31. an empty tag
  32. holds the menu of links
  33. ;
  34. a closing tag
  35. False
  36. to leave notes
  37. a web server
  38. 2
  39. <head>
  40. weak

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