← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 466 · 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 tag helps phones show a page at the right size? (a) the title tag (b) the br tag (c) the hr tag (d) the viewport meta tag
  2. 2.📝 What does <br> do? (a) starts a new line (b) adds a picture (c) makes text bold (d) makes a list
  3. 3.📊 Which tag holds the whole table? (a) <td> (b) <tr> (c) <caption> (d) <table>
  4. 4.🔠 How many headings are in this code?
    <h1>The red kite</h1>
    <p>Rain today</p>
    <h4>Hello, world!</h4>
    <h2>The red kite</h2>
  5. 5.📝 At most, how many of these can be chosen at the same time?
    <form>
      <input type="radio" name="fruit"> Litchi
      <input type="radio" name="fruit"> Guava
      <input type="radio" name="fruit"> Banana
    </form>
  6. 6.🌈 Which colour of light is strongest in rgb(130, 224, 119)? (a) blue (b) green (c) red
  7. 7.📝 What does <hr> draw? (a) a table (b) a link (c) a picture (d) a line across the page
  8. 8.📄 Where does <title> go: in the head or in the body? (a) in the head (b) in the body
  9. 9.True or false: a web browser opens web pages for us. (a) False (b) True
  10. 10.🎯 What kind of selector is h1? (a) an element selector (b) a class selector (c) an id selector
  11. 11.🌍 What is the path in this URL?
    http://www.example.com/games/chess.html
    (a) /about.html (b) http (c) www.example.com (d) /games/chess.html
  12. 12.🔗 Which words do you click on?
    <a href="quiz.html">School news</a>
    (a) href (b) quiz.html (c) School news (d) Take the quiz
  13. 13.🖼️ Which picture file does the browser load?
    <img src="kite.png" alt="A red kite" width="250">
    (a) A red kite (b) cake.jpg (c) map.png (d) kite.png
  14. 14.💪 Which justify-content value puts boxes in the middle? (a) flex-end (b) space-between (c) center (d) flex-start
  15. 15.📱 max-width: 600px applies when the screen is ___. (a) 600px or wider (b) exactly 1000px (c) 600px or narrower (d) turned off
  16. 16.📋 What number does the browser show next to “Jamun”?
    <ol>
      <li>Papaya</li>
      <li>Jamun</li>
      <li>Mango</li>
    </ol>
  17. 17.🎯 Which CSS selector matches this element?
    <h1 class="big" id="intro">Hello</h1>
    (a) #main (b) .big (c) .intro (d) .red
  18. 18.🔍 Which line is missing its closing tag?
    line 1: <p>Fun facts
    line 2: <h2>I love mangoes.</h2>
    line 3: <small>Cricket is fun.</small>
    (a) line 3 (b) line 2 (c) line 1
  19. 19.🔗 Which attribute holds the address of a link? (a) alt (b) href (c) id (d) src
  20. 20.Which of these is an empty tag? (a) <br> (b) <title> (c) <li> (d) <b>
  21. 21.True or false: <ol> shows 1, 2, 3 numbers. (a) False (b) True
  22. 22.🖌️ Which CSS property colours behind the text? (a) background-color (b) font-size (c) font-weight (d) text-align
  23. 23.📱 The screen is 375px wide. What font-size (px) does the paragraph get?
    p {
      font-size: 16px;
    }
    @media (max-width: 600px) {
      p {
        font-size: 10px;
      }
    }
  24. 24.🔍 Which is the odd one out? (a) answers page requests (b) stores a website’s files (c) hosts websites online (d) shows line numbers
  25. 25.📝 How many paragraphs does this code make?
    <p>Cricket is fun.</p>
    <h2>Fun facts</h2>
    <h2>Rain today</h2>
    <h2>I love mangoes.</h2>
    <h2>I love mangoes.</h2>
  26. 26.📋 Which list tag lists steps in order? (a) <li> (b) <ol> (c) <ul>
  27. 27.📱 The screen is 540px wide. What font-size (px) does the paragraph get?
    p {
      font-size: 20px;
    }
    @media (min-width: 600px) {
      p {
        font-size: 22px;
      }
    }
  28. 28.💪 Which justify-content value packs boxes at the end? (a) center (b) flex-end (c) flex-start (d) space-between
  29. 29.🚀 Which file should this code go in: alert(score); (a) style.css (b) script.js (c) index.html
  30. 30.🔠 Which heading shows the SMALLEST text: <h6>, <h2>, <h1> or <h4>? (a) <h4> (b) <h2> (c) <h1> (d) <h6>
  31. 31.True or false: <input type="number"> takes only numbers. (a) False (b) True
  32. 32.🔢 In a basic web page file, which comes FIRST? (a) </body> (b) </head> (c) <head> (d) <!DOCTYPE html>
  33. 33.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>My Hobbies</title>
    </head>
    <body>
      <h1>Planets</h1>
      <p>Thanks for visiting.</p>
    </body>
    </html>
    (a) My Hobbies (b) body (c) Thanks for visiting. (d) Planets
  34. 34.📋 Which tag goes around each item of a list? (a) <ol> (b) <ul> (c) <p> (d) <li>
  35. 35.🌈 In #e60000 the red part is the hex number e6. What is it as a normal number?
  36. 36.True or false: to tell a trusted adult is not safe. (a) True (b) False
  37. 37.💬 How does an HTML comment end? (a) // (b) >> (c) --> (d) */
  38. 38.📝 How many <input> tags are in this form?
    <form>
      <input type="checkbox">
      <input type="number">
      <input type="text">
      <input type="password">
      <input type="date">
      <input type="submit" value="Send">
    </form>
  39. 39.🖼️ Which attribute of <img> sets how tall it is? (a) height (b) alt (c) src (d) width
  40. 40.📄 Where does <a> go: in the head or in the body? (a) in the body (b) in the head

Answer key

  1. the viewport meta tag
  2. starts a new line
  3. <table>
  4. 3
  5. 1
  6. green
  7. a line across the page
  8. in the head
  9. True
  10. an element selector
  11. /games/chess.html
  12. School news
  13. kite.png
  14. center
  15. 600px or narrower
  16. 2
  17. .big
  18. line 1
  19. href
  20. <br>
  21. True
  22. background-color
  23. 10
  24. shows line numbers
  25. 1
  26. <ol>
  27. 20
  28. flex-end
  29. script.js
  30. <h6>
  31. True
  32. <!DOCTYPE html>
  33. Planets
  34. <li>
  35. 230
  36. False
  37. -->
  38. 6
  39. height
  40. in the body

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