← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 991 · 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.📊 How many heading cells (<th>) does this table have?
    <table>
      <tr><th>Name</th><th>Fruit</th></tr>
      <tr><td>Jamun</td><td>Guava</td></tr>
      <tr><td>Grapes</td><td>Mango</td></tr>
    </table>
  2. 2.True or false: .menu is a class selector. (a) False (b) True
  3. 3.📦 How much space across (px) does this box take in all, margin included?
    .box {
      width: 80px;
      padding: 30px;
      border: 1px solid black;
      margin: 10px;
    }
  4. 4.📝 Which input type lets you pick only one? (a) submit (b) text (c) radio (d) email
  5. 5.📝 On how many lines does the browser show this paragraph?
    <p>Stars shine<br>Roses are red<br>Rivers flow<br>Birds sing<br>Sky is blue</p>
  6. 6.🔗 Which address opens when you click this link?
    <a href="about.html">Art corner</a>
    (a) Art corner (b) https://example.com (c) about.html (d) contact.html
  7. 7.🔠 Which heading shows the SMALLEST text: <h5>, <h2>, <h3> or <h1>? (a) <h5> (b) <h3> (c) <h1> (d) <h2>
  8. 8.Which colour pair is easy to read? (a) light grey on white (b) white on dark blue (c) pink on red (d) yellow on white
  9. 9.🔢 To build and share your first web page, which comes first: “add CSS styles” or “publish it online”? (a) publish it online (b) add CSS styles
  10. 10.💬 Which text will NOT show on the page?
    <!-- <p>I love mangoes.</p> -->
    <p>Rain today</p>
    <p>Fun facts</p>
    <p>My pets</p>
    (a) I love mangoes. (b) Rain today (c) My pets (d) Fun facts
  11. 11.Which of these is an empty tag? (a) <b> (b) <li> (c) <br> (d) <p>
  12. 12.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="kite.png" alt="A red kite" width="200">
    (a) A red kite (b) Map of India (c) width (d) kite.png
  13. 13.💬 Can anyone read your comments by viewing the page source? (a) Yes (b) No
  14. 14.🔁 When does the else part run? (a) never (b) when if is true (c) when if is false (d) always
  15. 15.🏷️ Every HTML tag starts with which sign? (a) { (b) ( (c) [ (d) <
  16. 16.Which of these is true of <aside>? (a) sits at the very top (b) holds the main content (c) holds extra side notes (d) holds the logo and title
  17. 17.True or false: .big is a class selector. (a) False (b) True
  18. 18.📦 In the box model, which part is the gap round content? (a) content (b) border (c) margin (d) padding
  19. 19.🖼️ Does <img> need a closing tag? (a) Yes (b) No
  20. 20.🚀 What is the home page file of a website usually called? (a) main.png (b) start.js (c) index.html (d) home.css
  21. 21.✍️ What is the selector in this CSS rule?
    .note {
      font-size: 20px;
      background-color: yellow;
    }
    (a) .note (b) #top (c) yellow (d) font-size
  22. 22.🏷️ What does a closing tag have that an opening tag does not? (a) a slash / (b) a dot . (c) a hash # (d) a dollar $
  23. 23.True or false: a code editor answers page requests. (a) True (b) False
  24. 24.🌐 Which one has an address bar? (a) a web browser (b) a code editor (c) a web server
  25. 25.True or false: score = score + 1; goes in script.js. (a) False (b) True
  26. 26.Which of these does CSS do? (a) puts a picture on a page (b) counts down a timer (c) adds space around boxes (d) reacts to a button click
  27. 27.🛡️ Is it safe to use the same password on every site? (a) No (b) Yes
  28. 28.Which of these is a weak password? (a) Rain#Drop_42! (b) 111111 (c) Mango#Kite29! (d) Blue@Tiger_74
  29. 29.🔍 Which is the odd one out? (a) turns HTML into a page (b) has an address bar (c) shows pages from the web (d) sends pages over the net
  30. 30.🔍 Which line is missing its closing tag?
    line 1: <strong>The red kite</strong>
    line 2: <small>Rain today</small>
    line 3: <em>Fun facts
    (a) line 2 (b) line 3 (c) line 1
  31. 31.🌈 Which colour of light is strongest in rgb(26, 6, 252)? (a) blue (b) red (c) green
  32. 32.📊 In a table, which tag is a row? (a) <th> (b) <tb> (c) <tr> (d) <td>
  33. 33.🌈 In #rrggbb, which colour do the last two digits give? (a) white (b) blue (c) red (d) green
  34. 34.📝 On how many lines does the browser show this paragraph?
    <p>Roses are red<br>Rivers flow</p>
  35. 35.🌗 Is dark grey on white easy or hard to read? (a) easy to read (b) hard to read
  36. 36.🧩 Which language adds space around boxes? (a) JavaScript (b) CSS (c) HTML
  37. 37.Which of these has a closing tag? (a) <br> (b) <p> (c) <img> (d) <input>
  38. 38.True or false: HTML on its own cannot make links to pages. (a) True (b) False
  39. 39.🌈 Which colour is rgb(0, 255, 255)? (a) black (b) red (c) yellow (d) cyan
  40. 40.🔗 Which words do you click on?
    <a href="contact.html">School news</a>
    (a) Take the quiz (b) href (c) School news (d) contact.html

Answer key

  1. 2
  2. True
  3. 162
  4. radio
  5. 5
  6. about.html
  7. <h5>
  8. white on dark blue
  9. add CSS styles
  10. I love mangoes.
  11. <br>
  12. A red kite
  13. Yes
  14. when if is false
  15. <
  16. holds extra side notes
  17. True
  18. padding
  19. No
  20. index.html
  21. .note
  22. a slash /
  23. False
  24. a web browser
  25. True
  26. adds space around boxes
  27. No
  28. 111111
  29. sends pages over the net
  30. line 3
  31. blue
  32. <tr>
  33. blue
  34. 2
  35. easy to read
  36. CSS
  37. <p>
  38. False
  39. cyan
  40. School news

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