← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 396 · 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 heading shows the BIGGEST text: <h4>, <h6>, <h1> or <h2>? (a) <h4> (b) <h6> (c) <h1> (d) <h2>
  2. 2.🔢 On a typical page, from top to bottom, which comes first: “<header>” or “<nav>”? (a) <nav> (b) <header>
  3. 3.📄 Where does <table> go: in the head or in the body? (a) in the body (b) in the head
  4. 4.📝 How many paragraphs does this code make?
    <p>Fun facts</p>
    <h2>My pets</h2>
    <h2>Our school trip</h2>
    <p>My best friend</p>
    <p>Cricket is fun.</p>
  5. 5.🏷️ Is </body> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  6. 6.🔍 Which is the odd one out? (a) adds space around boxes (b) reacts to a button click (c) shows a pop-up message (d) changes the page live
  7. 7.🖼️ How many pixels wide is the picture drawn?
    <img src="bus.jpg" alt="Our school bus" width="350">
  8. 8.True or false: in <img>, alt sets how wide it is. (a) True (b) False
  9. 9.🎯 What kind of selector is #hero? (a) an id selector (b) an element selector (c) a class selector
  10. 10.💪 Which justify-content value puts boxes in the middle? (a) flex-end (b) center (c) flex-start (d) space-between
  11. 11.📱 The screen is 1366px wide. Does the rule inside @media apply?
    p {
      font-size: 12px;
    }
    @media (min-width: 600px) {
      p {
        font-size: 16px;
      }
    }
    (a) Yes (b) No
  12. 12.🔠 Which tag is the least important heading? (a) <p> (b) <h3> (c) <h1> (d) <h6>
  13. 13.🌈 Which colour of light is strongest in rgb(85, 243, 106)? (a) green (b) red (c) blue
  14. 14.📊 Which tag holds the whole table? (a) <table> (b) <th> (c) <td> (d) <caption>
  15. 15.📋 Does this list show bullets or numbers?
    <ul>
      <li>Jamun</li>
      <li>Banana</li>
      <li>Orange</li>
    </ul>
    (a) numbers (b) bullets
  16. 16.Which of these goes in the head? (a) <p> (b) <img> (c) <h1> (d) <title>
  17. 17.📝 How many paragraphs does this code make?
    <p>Cricket is fun.</p>
    <p>Our school trip</p>
    <h2>I love mangoes.</h2>
    <p>I love mangoes.</p>
    <p>Fun facts</p>
  18. 18.True or false: the content is the line round the box. (a) True (b) False
  19. 19.Which of these is true of <nav>? (a) helps you move around (b) holds the main content (c) holds the logo and title (d) holds a news story
  20. 20.True or false: <td> gives the table a title. (a) False (b) True
  21. 21.What does justify-content: flex-end do? (a) equal gaps, none at ends (b) puts boxes in the middle (c) packs boxes at the end (d) packs boxes at the start
  22. 22.🚀 What is the home page file of a website usually called? (a) home.css (b) start.js (c) main.png (d) index.html
  23. 23.⚖️ What colour is the text of this element?
    <h1 class="menu" id="end">Hi</h1>
    CSS:
    h1 { color: green; }
    .menu { color: blue; }
    (a) orange (b) blue (c) black (d) green
  24. 24.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Art Gallery</title>
    </head>
    <body>
      <h1>Easy snacks</h1>
      <p>Try this poha.</p>
    </body>
    </html>
    (a) Easy snacks (b) Art Gallery (c) body (d) Try this poha.
  25. 25.✍️ What value is given to background-color in this rule?
    .note {
      background-color: yellow;
      border: 2px solid;
      font-weight: bold;
    }
    (a) background-color (b) 10px (c) 8px (d) yellow
  26. 26.🔁 What does this code print?
    let marks = 47;
    if (marks >= 36) {
      console.log("Pass");
    } else {
      console.log("Try again");
    }
    (a) Try again (b) Pass
  27. 27.True or false: <tr> makes a heading cell. (a) True (b) False
  28. 28.Which of these has a closing tag? (a) <li> (b) <img> (c) <input> (d) <br>
  29. 29.💬 How many paragraphs show on the page?
    <!-- <p>Rain today</p> -->
    <p>Cricket is fun.</p>
    <!-- <p>Our school trip</p> -->
    <!-- <p>I love mangoes.</p> -->
    <!-- <p>My best friend</p> -->
  30. 30.🏷️ Is <b> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  31. 31.📝 What does <br> do? (a) starts a new line (b) adds a picture (c) makes text bold (d) makes a list
  32. 32.🔗 Which address opens when you click this link?
    <a href="news.html">Contact us</a>
    (a) Contact us (b) news.html (c) games.html (d) quiz.html
  33. 33.📋 How many items does this list show?
    <ul>
      <li>Orange</li>
      <li>Banana</li>
      <li>Guava</li>
      <li>Jamun</li>
      <li>Grapes</li>
      <li>Litchi</li>
    </ul>
  34. 34.🔗 Which tag makes a clickable link? (a) <img> (b) <a> (c) <link> (d) <p>
  35. 35.Which of these is margin? (a) space inside the border (b) the gap to other boxes (c) the text or picture (d) a solid or dotted edge
  36. 36.✍️ What is the selector in this CSS rule?
    body {
      font-size: 20px;
      color: red;
      font-weight: bold;
      background-color: yellow;
    }
    (a) font-size (b) .box (c) red (d) body
  37. 37.📋 Which list tag shows 1, 2, 3 numbers? (a) <ul> (b) <ol> (c) <li>
  38. 38.💪 Which flexbox property lines boxes up across? (a) gap (b) flex-direction (c) align-items (d) justify-content
  39. 39.True or false: to share your password is not safe. (a) False (b) True
  40. 40.🛡️ Is it safe to use the same password on every site? (a) No (b) Yes

Answer key

  1. <h1>
  2. <header>
  3. in the body
  4. 3
  5. a closing tag
  6. adds space around boxes
  7. 350
  8. False
  9. an id selector
  10. center
  11. Yes
  12. <h6>
  13. green
  14. <table>
  15. bullets
  16. <title>
  17. 4
  18. False
  19. helps you move around
  20. False
  21. packs boxes at the end
  22. index.html
  23. blue
  24. Easy snacks
  25. yellow
  26. Pass
  27. False
  28. <li>
  29. 1
  30. an opening tag
  31. starts a new line
  32. news.html
  33. 6
  34. <a>
  35. the gap to other boxes
  36. body
  37. <ol>
  38. align-items
  39. True
  40. No

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