← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 915 · 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 justify-content value packs boxes at the end? (a) center (b) flex-start (c) space-between (d) flex-end
  2. 2.📊 Where do <td> cells go? (a) inside a <tr> (b) inside a <p> (c) inside a <li> (d) inside the <head>
  3. 3.True or false: <p> goes in the body. (a) True (b) False
  4. 4.🔗 Which words do you click on?
    <a href="news.html">Visit the site</a>
    (a) Maths fun (b) Visit the site (c) href (d) news.html
  5. 5.True or false: margin is the gap round content. (a) True (b) False
  6. 6.📱 The screen is 700px wide. What font-size (px) does the paragraph get?
    p {
      font-size: 12px;
    }
    @media (min-width: 480px) {
      p {
        font-size: 20px;
      }
    }
  7. 7.🔗 Which address opens when you click this link?
    <a href="maths.html">Art corner</a>
    (a) news.html (b) art.html (c) Art corner (d) maths.html
  8. 8.🖌️ Which CSS property sets the letter colour? (a) color (b) text-align (c) font-size (d) background-color
  9. 9.🧩 Which language changes the text size? (a) CSS (b) HTML (c) JavaScript
  10. 10.💬 How does an HTML comment start? (a) # (b) <!-- (c) // (d) /*
  11. 11.🔠 Which heading shows the BIGGEST text: <h1>, <h4>, <h2> or <h3>? (a) <h2> (b) <h3> (c) <h1> (d) <h4>
  12. 12.📄 Where does <meta charset="utf-8"> go: in the head or in the body? (a) in the head (b) in the body
  13. 13.🔢 When you open a web page, which comes FIRST? (a) the browser asks it (b) you type the URL (c) DNS finds the server (d) the browser shows it
  14. 14.🔗 Which words do you click on?
    <a href="quiz.html">Play games</a>
    (a) quiz.html (b) href (c) Play games (d) About us
  15. 15.🔢 In a basic web page file, which comes LAST? (a) </head> (b) <body> (c) </html> (d) <html>
  16. 16.🌈 Which colour of light is strongest in rgb(157, 24, 31)? (a) red (b) blue (c) green
  17. 17.What does color do? (a) centres a heading (b) makes letters bigger (c) sets the letter colour (d) picks the font style
  18. 18.🔗 Which address opens when you click this link?
    <a href="art.html">Contact us</a>
    (a) Contact us (b) art.html (c) news.html (d) quiz.html
  19. 19.📊 Which tag gives the table a title? (a) <table> (b) <tr> (c) <caption> (d) <th>
  20. 20.🔠 Which heading shows the BIGGEST text: <h2>, <h6>, <h1> or <h3>? (a) <h3> (b) <h2> (c) <h1> (d) <h6>
  21. 21.🖌️ How big is the text, in px?
    h1 {
      color: white;
      background-color: blue;
      text-align: center;
      font-size: 40px;
    }
  22. 22.📝 How many paragraphs does this code make?
    <p>Hello, world!</p>
    <h2>The red kite</h2>
    <p>Fun facts</p>
    <h2>Fun facts</h2>
  23. 23.True or false: <h1>My Site</h1> goes in index.html. (a) False (b) True
  24. 24.🚀 Which file is best for code that reacts to clicks? (a) style.css (b) index.html (c) script.js (d) notes.txt
  25. 25.📝 How many <input> tags are in this form?
    <form>
      <input type="password">
      <input type="text">
      <input type="email">
      <input type="date">
      <input type="submit" value="Send">
    </form>
  26. 26.True or false: <th> makes a heading cell. (a) True (b) False
  27. 27.📱 The screen is 1100px wide. What font-size (px) does the paragraph get?
    p {
      font-size: 12px;
    }
    @media (max-width: 1024px) {
      p {
        font-size: 10px;
      }
    }
  28. 28.📄 Can HTML on its own run a game loop? (a) No (b) Yes
  29. 29.🧭 Is <footer> semantic or not semantic? (a) semantic (b) not semantic
  30. 30.True or false: HTML on its own can make bullet lists. (a) True (b) False
  31. 31.Which of these is a closing tag? (a) <b> (b) <li> (c) <body> (d) </h1>
  32. 32.♿ A part of the page is under a <h5> heading. Which tag should its sub-heading use? (a) <h4> (b) <h3> (c) <h6> (d) <h1>
  33. 33.True or false: HTML on its own cannot make headings. (a) False (b) True
  34. 34.⚡ What number does this code print?
    let score = 7;
    score = score + 20;
    score = score - 21;
    console.log(score);
  35. 35.📝 On how many lines does the browser show this paragraph?
    <p>Kites fly high<br>Rivers flow</p>
  36. 36.🖼️ Which tag puts a picture on a page? (a) <img> (b) <p> (c) <a> (d) <pic>
  37. 37.🧭 Who is helped most by semantic tags? (a) only the printer (b) only the server (c) screen-reader users (d) nobody
  38. 38.🖌️ Which CSS property colours behind the text? (a) font-size (b) color (c) font-weight (d) background-color
  39. 39.🔢 When you open a web page, which comes first: “the server sends files” or “the browser shows it”? (a) the browser shows it (b) the server sends files
  40. 40.🎯 Which element does the selector li style? (a) <div> (b) <span class="big"> (c) <p id="top"> (d) <li class="big">

Answer key

  1. flex-end
  2. inside a <tr>
  3. True
  4. Visit the site
  5. False
  6. 20
  7. maths.html
  8. color
  9. CSS
  10. <!--
  11. <h1>
  12. in the head
  13. you type the URL
  14. Play games
  15. </html>
  16. red
  17. sets the letter colour
  18. art.html
  19. <caption>
  20. <h1>
  21. 40
  22. 2
  23. True
  24. script.js
  25. 5
  26. True
  27. 12
  28. No
  29. semantic
  30. True
  31. </h1>
  32. <h6>
  33. False
  34. 6
  35. 2
  36. <img>
  37. screen-reader users
  38. background-color
  39. the server sends files
  40. <li class="big">

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