← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 164 · 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 is the odd one out? (a) adds space around boxes (b) lays out the page (c) gives the page structure (d) changes the text size
  2. 2.🧭 Is <header> semantic or not semantic? (a) semantic (b) not semantic
  3. 3.🌈 Which colour is rgb(0, 0, 255)? (a) yellow (b) black (c) blue (d) red
  4. 4.📦 In the box model, which part is the text or picture? (a) content (b) margin (c) border (d) padding
  5. 5.🔠 Which heading shows the BIGGEST text: <h4>, <h2>, <h3> or <h6>? (a) <h6> (b) <h4> (c) <h2> (d) <h3>
  6. 6.🌐 Which one colours code to help us? (a) a web browser (b) a web server (c) a code editor
  7. 7.📋 What number does the browser show next to “Papaya”?
    <ol start="6">
      <li>Orange</li>
      <li>Guava</li>
      <li>Papaya</li>
    </ol>
  8. 8.📋 Does this list show bullets or numbers?
    <ul>
      <li>Guava</li>
      <li>Jamun</li>
      <li>Grapes</li>
    </ul>
    (a) numbers (b) bullets
  9. 9.📝 What does a password box show instead of letters? (a) numbers (b) dots (c) emojis (d) capital letters
  10. 10.📦 In the box model, which part is the gap round content? (a) margin (b) content (c) border (d) padding
  11. 11.🎯 Which CSS selector matches this element?
    <span class="note" id="intro">Hello</span>
    (a) p (b) #note (c) span (d) .intro
  12. 12.⚖️ What colour is the text of this element?
    <p class="big" id="intro">Hi</p>
    CSS:
    p { color: orange; }
    #intro { color: red; }
    .big { color: green; }
    (a) white (b) red (c) green (d) orange
  13. 13.Which of these is a strong password? (a) iloveyou (b) 111111 (c) Kite_Fl1es@Dawn (d) 123456
  14. 14.📊 How many rows does this table have?
    <table>
      <tr><td>Banana</td><td>Mango</td><td>Banana</td></tr>
      <tr><td>Mango</td><td>Guava</td><td>Papaya</td></tr>
      <tr><td>Banana</td><td>Mango</td><td>Orange</td></tr>
      <tr><td>Guava</td><td>Banana</td><td>Mango</td></tr>
    </table>
  15. 15.✍️ CSS declarations go inside which brackets? (a) { } (b) [ ] (c) < > (d) ( )
  16. 16.🖼️ Which attribute of <img> names the picture file? (a) alt (b) height (c) width (d) src
  17. 17.📋 Which list shows the steps of a recipe best? (a) <ul> (b) <br> (c) <ol> (d) <hr>
  18. 18.📄 What is the first line of an HTML5 page? (a) <body> (b) <head> (c) <!DOCTYPE html> (d) <html>
  19. 19.💪 Which flexbox property sets space between boxes? (a) gap (b) flex-direction (c) justify-content (d) display: flex
  20. 20.🎯 What kind of selector is h1? (a) an id selector (b) a class selector (c) an element selector
  21. 21.💪 How much empty space (px) is before the first box?
    .row {
      display: flex;
      width: 190px;
      justify-content: flex-end;
    }
    Inside are 3 boxes, each 60px wide (no margins).
  22. 22.♿ Does this help everyone, or make the page harder to use: colour as the only clue? (a) makes it harder (b) helps everyone
  23. 23.✍️ Which sign ends each CSS declaration? (a) , (b) ; (c) . (d) :
  24. 24.Which colour pair is hard to read? (a) white on black (b) black on white (c) red on green (d) white on dark blue
  25. 25.📝 How many paragraphs does this code make?
    <p>Rain today</p>
    <p>My best friend</p>
    <p>Fun facts</p>
    <p>My best friend</p>
    <p>Fun facts</p>
    <p>Hello, world!</p>
  26. 26.🌍 Which one shows the page to you? (a) the URL (b) HTTPS (c) the browser (d) the server
  27. 27.📦 In the box model, which part is the gap to other boxes? (a) border (b) content (c) margin (d) padding
  28. 28.🌍 What is the domain name in this URL?
    https://www.example.com/index.html
    (a) https (b) www.example.com (c) /index.html (d) kids.example.org
  29. 29.True or false: <ul><li>Art</li></ul> goes in script.js. (a) True (b) False
  30. 30.Which of these is a strong password? (a) qwerty (b) S0lar!Pen#8 (c) password (d) iloveyou
  31. 31.What does color do? (a) sets the letter colour (b) makes letters bigger (c) picks the font style (d) colours behind the text
  32. 32.🔍 One closing tag is missing. Which one?
    <u>Fun facts</u>
    <small>Rain today
    <p>My pets</p>
    (a) </u> (b) </p> (c) </em> (d) </small>
  33. 33.🖼️ Does <img> need a closing tag? (a) No (b) Yes
  34. 34.📄 Where does the text of <title> appear? (a) on the browser tab (b) nowhere (c) at the bottom (d) in a big heading
  35. 35.📝 How many paragraphs does this code make?
    <p>Fun facts</p>
    <h2>The red kite</h2>
    <h2>The red kite</h2>
  36. 36.♿ Is this heading order correct (no level skipped)?
    <h1> → <h1> → <h2> → <h2>
    (a) No (b) Yes
  37. 37.True or false: <tr> holds the whole table. (a) True (b) False
  38. 38.📝 How many paragraphs does this code make?
    <p>My pets</p>
    <p>Rain today</p>
    <h2>Hello, world!</h2>
    <h2>I love mangoes.</h2>
  39. 39.⚡ Which JavaScript word runs code when true? (a) let (b) if (c) alert() (d) console.log()
  40. 40.🚀 Which file should this code go in: h1 { font-size: 32px; } (a) index.html (b) style.css (c) script.js

Answer key

  1. gives the page structure
  2. semantic
  3. blue
  4. content
  5. <h2>
  6. a code editor
  7. 8
  8. bullets
  9. dots
  10. padding
  11. span
  12. red
  13. Kite_Fl1es@Dawn
  14. 4
  15. { }
  16. src
  17. <ol>
  18. <!DOCTYPE html>
  19. gap
  20. an element selector
  21. 10
  22. makes it harder
  23. ;
  24. red on green
  25. 6
  26. the browser
  27. margin
  28. www.example.com
  29. False
  30. S0lar!Pen#8
  31. sets the letter colour
  32. </small>
  33. No
  34. on the browser tab
  35. 1
  36. Yes
  37. False
  38. 2
  39. if
  40. style.css

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