← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 792 · 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 sign ends each CSS declaration? (a) , (b) ; (c) . (d) :
  2. 2.📝 Which tag makes a drop-down list? (a) <li> (b) <ol> (c) <ul> (d) <select>
  3. 3.🎯 What kind of selector is .note? (a) an id selector (b) an element selector (c) a class selector
  4. 4.True or false: HTML on its own can keep a high score. (a) True (b) False
  5. 5.🖼️ How many pixels wide is the picture drawn?
    <img src="bus.jpg" alt="Our school bus" width="100">
  6. 6.True or false: in <img>, src tells which image to load. (a) True (b) False
  7. 7.🔠 Are headings shown in bold by default? (a) Yes (b) No
  8. 8.Which of these goes in the body? (a) <title> (b) <link rel="stylesheet"> (c) <style> (d) <ul>
  9. 9.Which of these is true of <main>? (a) holds the main content (b) holds a side box of tips (c) holds extra side notes (d) helps you move around
  10. 10.🌍 What do we call the computer that stores a website? (a) a server (b) a mouse (c) a keyboard (d) a printer
  11. 11.🚀 What is the home page file of a website usually called? (a) main.png (b) index.html (c) start.js (d) home.css
  12. 12.What does background-color do? (a) makes letters bigger (b) colours behind the text (c) picks the font style (d) sets the letter colour
  13. 13.✍️ Which property is set to 2px solid in this rule?
    .box {
      border: 2px solid;
      background-color: yellow;
      text-align: center;
    }
    (a) width (b) 2px solid (c) font-style (d) border
  14. 14.⚡ Which tag holds JavaScript in a page? (a) <js> (b) <style> (c) <code> (d) <script>
  15. 15.True or false: padding is space outside the border. (a) True (b) False
  16. 16.✍️ In color: blue; which part is the property? (a) color (b) ; (c) : (d) blue
  17. 17.⚖️ Which selector is the strongest? (a) an id selector (b) a class selector (c) an element selector
  18. 18.🔠 Which heading shows the BIGGEST text: <h6>, <h1>, <h2> or <h3>? (a) <h3> (b) <h2> (c) <h6> (d) <h1>
  19. 19.🔠 How many headings are in this code?
    <h1>Hello, world!</h1>
    <p>Rain today</p>
    <p>Hello, world!</p>
  20. 20.🚀 Which file should this code go in: score = score + 1; (a) index.html (b) script.js (c) style.css
  21. 21.✍️ What value is given to padding in this rule?
    li {
      width: 300px;
      padding: 8px;
      border: 2px solid;
    }
    (a) 8px (b) bold (c) 2px solid (d) padding
  22. 22.Which of these is an empty tag? (a) <hr> (b) <ul> (c) <title> (d) <p>
  23. 23.🖌️ What colour is behind the letters?
    h2 {
      background-color: black;
      color: orange;
      text-align: right;
      font-size: 12px;
    }
    (a) yellow (b) orange (c) black
  24. 24.True or false: the border is space inside the border. (a) False (b) True
  25. 25.🚀 Where in index.html does the link to style.css go? (a) in the footer (b) after </html> (c) inside a <p> (d) in the head
  26. 26.⚡ What number does this code print?
    let books = 12;
    books = books + 7;
    books = books - 1;
    console.log(books);
  27. 27.🏷️ Is </h1> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  28. 28.True or false: <br> has a closing tag. (a) True (b) False
  29. 29.📄 Where does <meta charset="utf-8"> go: in the head or in the body? (a) in the body (b) in the head
  30. 30.🔐 Is S0lar!Pen#8 a strong or a weak password? (a) strong (b) weak
  31. 31.📋 How many items does this list show?
    <ul>
      <li>Grapes</li>
      <li>Guava</li>
      <li>Litchi</li>
    </ul>
  32. 32.True or false: <th> makes a heading cell. (a) False (b) True
  33. 33.True or false: <nav> sits at the bottom. (a) False (b) True
  34. 34.💬 How does an HTML comment end? (a) --> (b) */ (c) >> (d) //
  35. 35.🖼️ Which attribute of <img> is read by screen readers? (a) alt (b) src (c) height (d) width
  36. 36.📊 How many cells are in each row?
    <table>
      <tr><th>Name</th><th>Fruit</th><th>Price</th></tr>
      <tr><td>Guava</td><td>Guava</td><td>Jamun</td></tr>
    </table>
  37. 37.🔠 Which heading shows the BIGGEST text: <h3>, <h2>, <h5> or <h1>? (a) <h3> (b) <h2> (c) <h1> (d) <h5>
  38. 38.🌗 Is yellow on black easy or hard to read? (a) hard to read (b) easy to read
  39. 39.Which of these is true of <article>? (a) is the page’s key part (b) holds the main content (c) holds copyright notes (d) holds one blog post
  40. 40.🌍 What is the path in this URL?
    https://www.example.net/news/today.html
    (a) https (b) /news/today.html (c) /games/chess.html (d) www.example.net

Answer key

  1. ;
  2. <select>
  3. a class selector
  4. False
  5. 100
  6. True
  7. Yes
  8. <ul>
  9. holds the main content
  10. a server
  11. index.html
  12. colours behind the text
  13. border
  14. <script>
  15. False
  16. color
  17. an id selector
  18. <h1>
  19. 1
  20. script.js
  21. 8px
  22. <hr>
  23. black
  24. False
  25. in the head
  26. 18
  27. a closing tag
  28. False
  29. in the head
  30. strong
  31. 3
  32. True
  33. False
  34. -->
  35. alt
  36. 3
  37. <h1>
  38. easy to read
  39. holds one blog post
  40. /news/today.html

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