← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 111 · 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 program lets you see your web page while you build it? (a) a calculator (b) a photo viewer (c) a music player (d) a web browser
  2. 2.True or false: #main is an element selector. (a) False (b) True
  3. 3.True or false: <li> is an empty tag. (a) True (b) False
  4. 4.🖼️ Which picture file does the browser load?
    <img src="dog.jpg" alt="A happy dog" width="250">
    (a) bus.jpg (b) A happy dog (c) dog.jpg (d) moon.png
  5. 5.Which of these is a strong password? (a) Chai$Cup_19x (b) iloveyou (c) riya2014 (d) 123456
  6. 6.🔐 Is qwerty a strong or a weak password? (a) weak (b) strong
  7. 7.🖌️ Which CSS property sets the letter colour? (a) color (b) font-size (c) font-family (d) font-weight
  8. 8.🌈 In #00f900 the green part is the hex number f9. What is it as a normal number?
  9. 9.📝 What does <hr> draw? (a) a picture (b) a table (c) a link (d) a line across the page
  10. 10.📋 Does this list show bullets or numbers?
    <ol>
      <li>Orange</li>
      <li>Grapes</li>
      <li>Jamun</li>
    </ol>
    (a) numbers (b) bullets
  11. 11.Which of these is true of <header>? (a) sits at the bottom (b) sits at the very top (c) holds a news story (d) holds copyright notes
  12. 12.🚀 Which file should this code go in: console.log(5 + 2); (a) style.css (b) index.html (c) script.js
  13. 13.♿ Does this help everyone, or make the page harder to use: use headings in order? (a) makes it harder (b) helps everyone
  14. 14.🌈 Which colour is rgb(255, 255, 0)? (a) black (b) blue (c) cyan (d) yellow
  15. 15.📦 In the box model, which part is space inside the border? (a) border (b) content (c) margin (d) padding
  16. 16.🔍 Which is the odd one out? (a) answers page requests (b) hosts websites online (c) sends pages over the net (d) opens web pages for us
  17. 17.🌍 What is the path in this URL?
    https://school.example.in/about.html
    (a) /about.html (b) school.example.in (c) /maths/tables.html (d) https
  18. 18.📋 Does this list show bullets or numbers?
    <ul>
      <li>Jamun</li>
      <li>Orange</li>
    </ul>
    (a) bullets (b) numbers
  19. 19.Which of these is a closing tag? (a) <h1> (b) <title> (c) </body> (d) <li>
  20. 20.⚡ What does JavaScript add to a web page? (a) the domain name (b) the page title (c) actions and changes (d) only colours
  21. 21.💬 How many paragraphs show on the page?
    <p>My pets</p>
    <p>Good morning!</p>
    <!-- <p>Fun facts</p> -->
  22. 22.💪 Which justify-content value equal gaps, none at ends? (a) flex-start (b) center (c) space-between (d) flex-end
  23. 23.📋 Which list suits a shopping list in any order? (a) <ol> (b) <ul> (c) <br> (d) <hr>
  24. 24.🔗 Which address opens when you click this link?
    <a href="about.html">Art corner</a>
    (a) https://example.com (b) Art corner (c) about.html (d) contact.html
  25. 25.📱 max-width: 600px applies when the screen is ___. (a) 600px or wider (b) 600px or narrower (c) exactly 1000px (d) turned off
  26. 26.📄 Can HTML on its own make headings? (a) No (b) Yes
  27. 27.📝 How many paragraphs does this code make?
    <p>Cricket is fun.</p>
    <p>The red kite</p>
    <p>Cricket is fun.</p>
    <p>Cricket is fun.</p>
    <h2>Rain today</h2>
  28. 28.📦 In the box model, which part is space outside the border? (a) content (b) border (c) padding (d) margin
  29. 29.Which of these is a weak password? (a) Mango#Kite29! (b) password (c) Rain#Drop_42! (d) S0lar!Pen#8
  30. 30.🚀 Which file should this code go in: #top { color: blue; } (a) style.css (b) script.js (c) index.html
  31. 31.🌐 Which one shows pages from the web? (a) a web server (b) a web browser (c) a code editor
  32. 32.What does justify-content: flex-start do? (a) puts boxes in the middle (b) packs boxes at the start (c) packs boxes at the end (d) equal gaps, none at ends
  33. 33.📝 Which input type lets you pick only one? (a) radio (b) checkbox (c) password (d) email
  34. 34.🌐 Which one opens web pages for us? (a) a web server (b) a web browser (c) a code editor
  35. 35.🎨 Which tag connects an outside CSS file? (a) <link> (b) <a> (c) <img> (d) <css>
  36. 36.📱 The screen is 700px wide. Does the rule inside @media apply?
    p {
      font-size: 16px;
    }
    @media (max-width: 768px) {
      p {
        font-size: 10px;
      }
    }
    (a) No (b) Yes
  37. 37.🖌️ What colour are the letters?
    li {
      background-color: green;
      font-size: 16px;
      color: black;
      text-align: center;
    }
    (a) green (b) red (c) black
  38. 38.🔠 How many headings are in this code?
    <h1>Cricket is fun.</h1>
    <p>Cricket is fun.</p>
    <h3>Hello, world!</h3>
    <p>Fun facts</p>
    <h2>Good morning!</h2>
  39. 39.🔗 Which words do you click on?
    <a href="maths.html">About us</a>
    (a) href (b) maths.html (c) Contact us (d) About us
  40. 40.📄 What is the first line of an HTML5 page? (a) <!DOCTYPE html> (b) <html> (c) <body> (d) <head>

Answer key

  1. a web browser
  2. False
  3. False
  4. dog.jpg
  5. Chai$Cup_19x
  6. weak
  7. color
  8. 249
  9. a line across the page
  10. numbers
  11. sits at the very top
  12. script.js
  13. helps everyone
  14. yellow
  15. padding
  16. opens web pages for us
  17. /about.html
  18. bullets
  19. </body>
  20. actions and changes
  21. 2
  22. space-between
  23. <ul>
  24. about.html
  25. 600px or narrower
  26. Yes
  27. 4
  28. margin
  29. password
  30. style.css
  31. a web browser
  32. packs boxes at the start
  33. radio
  34. a web browser
  35. <link>
  36. Yes
  37. black
  38. 3
  39. About us
  40. <!DOCTYPE html>

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