← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 782 · 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.🎨 One CSS file can style how many pages? (a) many pages (b) only one image (c) only one word (d) no pages
  2. 2.📦 In the box model, which part is a solid or dotted edge? (a) content (b) border (c) margin (d) padding
  3. 3.True or false: HTML on its own cannot make tables. (a) False (b) True
  4. 4.🖌️ Where does the text sit on its line?
    h2 {
      text-align: left;
      font-size: 16px;
      color: black;
      background-color: blue;
    }
    (a) on the left (b) on the right (c) in the middle
  5. 5.🔢 When you open a web page, which comes FIRST? (a) the browser asks it (b) DNS finds the server (c) the server sends files (d) you type the URL
  6. 6.📝 Does <ul> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  7. 7.Which of these goes in the head? (a) <table> (b) <h1> (c) <link rel="stylesheet"> (d) <img>
  8. 8.♿ Does this help everyone, or make the page harder to use: skipping heading levels? (a) helps everyone (b) makes it harder
  9. 9.✍️ What is the selector in this CSS rule?
    #top {
      background-color: yellow;
      text-align: center;
      margin: 10px;
      color: red;
    }
    (a) li (b) center (c) #top (d) background-color
  10. 10.⚡ Which JavaScript word repeats code? (a) let (b) for (c) alert() (d) console.log()
  11. 11.💾 A web page file usually ends with which extension? (a) .html (b) .png (c) .mp3 (d) .txt
  12. 12.True or false: <input type="email"> takes only numbers. (a) True (b) False
  13. 13.💪 Which justify-content value packs boxes at the start? (a) flex-start (b) flex-end (c) space-between (d) center
  14. 14.🔢 To build and share your first web page, which comes first: “add CSS styles” or “test in a browser”? (a) test in a browser (b) add CSS styles
  15. 15.🌈 In #rrggbb, which colour do the last two digits give? (a) white (b) green (c) red (d) blue
  16. 16.🌈 Which colour is #00ff00? (a) white (b) black (c) blue (d) bright green
  17. 17.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="tiger.jpg" alt="A tiger asleep" width="100">
    (a) A red kite (b) width (c) A tiger asleep (d) tiger.jpg
  18. 18.💪 Which flexbox property sets space between boxes? (a) align-items (b) display: flex (c) gap (d) flex-direction
  19. 19.🔗 Which words do you click on?
    <a href="news.html">Play games</a>
    (a) About us (b) news.html (c) href (d) Play games
  20. 20.🏷️ Which is the closing tag for <h1>? (a) <\h1> (b) </h1> (c) <h1> (d) <h1/>
  21. 21.Which of these is true of <main>? (a) holds the menu of links (b) holds copyright notes (c) is the page’s key part (d) helps you move around
  22. 22.⚡ A JavaScript file usually ends with which extension? (a) .html (b) .css (c) .jpg (d) .js
  23. 23.✍️ How many declarations (property: value pairs) are in this rule?
    li {
      text-align: center;
      font-style: italic;
      width: 300px;
    }
  24. 24.✍️ How does a CSS comment start? (a) <!-- (b) # (c) // (d) /*
  25. 25.🌈 Which hex code is bright green? (a) #0000ff (b) #000000 (c) #ff00ff (d) #00ff00
  26. 26.📄 Where does <p> go: in the head or in the body? (a) in the head (b) in the body
  27. 27.🔠 How many headings are in this code?
    <h1>I love mangoes.</h1>
    <p>Rain today</p>
    <h4>Hello, world!</h4>
  28. 28.✍️ How many declarations (property: value pairs) are in this rule?
    h1 {
      width: 300px;
    }
  29. 29.🔗 What does HyperText mean? (a) very big text (b) text in colour (c) secret text (d) text with links
  30. 30.🏷️ Is <title> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  31. 31.🔤 In “HTML”, what does the L stand for? (a) Laptop (b) Link (c) Language (d) Line
  32. 32.🎯 What kind of selector is li? (a) a class selector (b) an id selector (c) an element selector
  33. 33.📝 How many paragraphs does this code make?
    <p>My pets</p>
    <h2>I love mangoes.</h2>
    <p>Fun facts</p>
    <p>Cricket is fun.</p>
    <h2>The red kite</h2>
  34. 34.💬 How many paragraphs show on the page?
    <p>I love mangoes.</p>
    <p>Hello, world!</p>
    <!-- <p>My best friend</p> -->
  35. 35.🔗 Where does this link open?
    <a href="maths.html">Contact us</a>
    (a) in the same tab (b) in a new tab
  36. 36.🔠 How many headings are in this code?
    <h1>I love mangoes.</h1>
    <h2>My best friend</h2>
    <h2>Fun facts</h2>
    <p>Rain today</p>
  37. 37.True or false: <footer> sits at the bottom. (a) False (b) True
  38. 38.🖼️ Which picture file does the browser load?
    <img src="cake.jpg" alt="Birthday cake" width="250">
    (a) dog.jpg (b) Birthday cake (c) cake.jpg (d) moon.png
  39. 39.🌗 Is blue on purple easy or hard to read? (a) hard to read (b) easy to read
  40. 40.True or false: <table> makes one data cell. (a) False (b) True

Answer key

  1. many pages
  2. border
  3. False
  4. on the left
  5. you type the URL
  6. has a closing tag
  7. <link rel="stylesheet">
  8. makes it harder
  9. #top
  10. for
  11. .html
  12. False
  13. flex-start
  14. add CSS styles
  15. blue
  16. bright green
  17. A tiger asleep
  18. gap
  19. Play games
  20. </h1>
  21. is the page’s key part
  22. .js
  23. 3
  24. /*
  25. #00ff00
  26. in the body
  27. 2
  28. 1
  29. text with links
  30. an opening tag
  31. Language
  32. an element selector
  33. 3
  34. 2
  35. in the same tab
  36. 3
  37. True
  38. cake.jpg
  39. hard to read
  40. False

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