← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 564 · 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 SMALLEST text: <h2>, <h3>, <h6> or <h1>? (a) <h3> (b) <h2> (c) <h6> (d) <h1>
  2. 2.Which of these is true of a code editor? (a) sends pages over the net (b) stores a website’s files (c) is where we type code (d) hosts websites online
  3. 3.📋 What number does the browser show next to “Jamun”?
    <ol start="7">
      <li>Papaya</li>
      <li>Grapes</li>
      <li>Jamun</li>
    </ol>
  4. 4.🔠 Which heading shows the SMALLEST text: <h4>, <h6>, <h2> or <h3>? (a) <h2> (b) <h3> (c) <h6> (d) <h4>
  5. 5.📱 What does a media query check? (a) the page title (b) the time of day (c) the screen width (d) the battery level
  6. 6.True or false: in <img>, width is read by screen readers. (a) True (b) False
  7. 7.📋 Which list tag goes inside ul or ol? (a) <ol> (b) <li> (c) <ul>
  8. 8.⚖️ What colour is the text of this element?
    <p class="menu" id="end">Hi</p>
    CSS:
    .menu { color: blue; }
    .menu { color: red; }
    (a) blue (b) orange (c) purple (d) red
  9. 9.🔗 Which address opens when you click this link?
    <a href="about.html">Contact us</a>
    (a) Contact us (b) about.html (c) https://example.com (d) contact.html
  10. 10.True or false: li is an id selector. (a) False (b) True
  11. 11.What is <input type="password"> for? (a) is for one line of words (b) takes only numbers (c) lets you tick many (d) hides what you type
  12. 12.📝 How many paragraphs does this code make?
    <p>Cricket is fun.</p>
    <h2>My pets</h2>
    <p>Rain today</p>
    <h2>Cricket is fun.</h2>
    <p>Our school trip</p>
    <h2>Cricket is fun.</h2>
  13. 13.True or false: <ul> is an unordered list. (a) False (b) True
  14. 14.📝 What does <p> make? (a) a picture (b) a link (c) a paragraph (d) a table
  15. 15.🖌️ Which CSS property colours behind the text? (a) text-align (b) color (c) background-color (d) font-size
  16. 16.🔍 Which line is missing its closing tag?
    line 1: <b>Hello, world!</b>
    line 2: <strong>I love mangoes.</strong>
    line 3: <p>Cricket is fun.
    (a) line 1 (b) line 3 (c) line 2
  17. 17.🔍 Which line is missing its closing tag?
    line 1: <b>Cricket is fun.</b>
    line 2: <em>My pets</em>
    line 3: <h1>Our school trip
    (a) line 3 (b) line 1 (c) line 2
  18. 18.Which of these goes in the body? (a) <meta charset="utf-8"> (b) <h1> (c) <link rel="stylesheet"> (d) <style>
  19. 19.📋 What number does the browser show next to “Litchi”?
    <ol start="7">
      <li>Papaya</li>
      <li>Litchi</li>
      <li>Mango</li>
    </ol>
  20. 20.True or false: <input type="submit"> lets you pick only one. (a) True (b) False
  21. 21.🌈 Which colour is #00ffff? (a) cyan (b) bright green (c) red (d) yellow
  22. 22.Which of these is padding? (a) the gap round content (b) the text or picture (c) a solid or dotted edge (d) the line round the box
  23. 23.True or false: HTML on its own can make headings. (a) True (b) False
  24. 24.⚖️ What colour is the text of this element?
    <h2 class="note" id="hero">Hi</h2>
    CSS:
    #hero { color: black; }
    #hero { color: purple; }
    (a) black (b) green (c) orange (d) purple
  25. 25.📱 The screen is 375px wide. Does the rule inside @media apply?
    p {
      font-size: 24px;
    }
    @media (max-width: 480px) {
      p {
        font-size: 22px;
      }
    }
    (a) Yes (b) No
  26. 26.What does justify-content: center do? (a) packs boxes at the end (b) packs boxes at the start (c) equal gaps, none at ends (d) puts boxes in the middle
  27. 27.🔍 Which is the odd one out? (a) opens web pages for us (b) saves our .html files (c) shows pages from the web (d) has an address bar
  28. 28.📋 What number does the browser show next to “Grapes”?
    <ol start="9">
      <li>Litchi</li>
      <li>Orange</li>
      <li>Grapes</li>
    </ol>
  29. 29.✍️ In color: blue; which part is the value? (a) color (b) ; (c) : (d) blue
  30. 30.📋 Does this list show bullets or numbers?
    <ul>
      <li>Guava</li>
      <li>Mango</li>
      <li>Litchi</li>
    </ul>
    (a) numbers (b) bullets
  31. 31.📝 How many <input> tags are in this form?
    <form>
      <input type="number">
      <input type="email">
      <input type="submit" value="Send">
    </form>
  32. 32.True or false: the browser is the page’s address. (a) True (b) False
  33. 33.🔠 Which heading shows the SMALLEST text: <h3>, <h1>, <h5> or <h6>? (a) <h5> (b) <h1> (c) <h6> (d) <h3>
  34. 34.True or false: “use big enough text” helps everyone use the page. (a) False (b) True
  35. 35.True or false: the browser asks for a web page. (a) False (b) True
  36. 36.📱 The screen is 1366px wide. What font-size (px) does the paragraph get?
    p {
      font-size: 24px;
    }
    @media (min-width: 768px) {
      p {
        font-size: 30px;
      }
    }
  37. 37.🔠 How many headings are in this code?
    <h1>My best friend</h1>
    <h3>I love mangoes.</h3>
    <h4>The red kite</h4>
    <p>I love mangoes.</p>
    <h2>The red kite</h2>
  38. 38.💪 Which justify-content value puts boxes in the middle? (a) flex-start (b) flex-end (c) space-between (d) center
  39. 39.⚖️ What colour is the text of this element?
    <h1 class="box" id="top">Hi</h1>
    CSS:
    #top { color: blue; }
    #top { color: red; }
    (a) purple (b) blue (c) orange (d) red
  40. 40.📄 Where does <a> go: in the head or in the body? (a) in the body (b) in the head

Answer key

  1. <h6>
  2. is where we type code
  3. 9
  4. <h6>
  5. the screen width
  6. False
  7. <li>
  8. red
  9. about.html
  10. False
  11. hides what you type
  12. 3
  13. True
  14. a paragraph
  15. background-color
  16. line 3
  17. line 3
  18. <h1>
  19. 8
  20. False
  21. cyan
  22. the gap round content
  23. True
  24. purple
  25. Yes
  26. puts boxes in the middle
  27. saves our .html files
  28. 11
  29. blue
  30. bullets
  31. 3
  32. False
  33. <h6>
  34. True
  35. True
  36. 30
  37. 4
  38. center
  39. red
  40. in the body

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