← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 315 · 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 rows does this table have?
    <table>
      <tr><td>Guava</td><td>Litchi</td><td>Jamun</td></tr>
      <tr><td>Grapes</td><td>Mango</td><td>Banana</td></tr>
    </table>
  2. 2.📝 Which input type is for an email address? (a) submit (b) radio (c) text (d) email
  3. 3.📄 Can HTML on its own add up two numbers? (a) Yes (b) No
  4. 4.🧩 Which language sets colours and fonts? (a) HTML (b) JavaScript (c) CSS
  5. 5.📦 In the box model, which part is the gap round content? (a) margin (b) border (c) content (d) padding
  6. 6.🧩 An opening tag + content + a closing tag together make an ___. (a) element (b) address (c) attribute (d) editor
  7. 7.🌐 Which one stores a website’s files? (a) a web server (b) a web browser (c) a code editor
  8. 8.📋 Which list tag lists steps in order? (a) <ul> (b) <ol> (c) <li>
  9. 9.💪 How much empty space (px) is left after the last box?
    .row {
      display: flex;
      width: 120px;
      justify-content: flex-start;
    }
    Inside are 2 boxes, each 50px wide (no margins).
  10. 10.🌈 Which colour of light is strongest in rgb(218, 121, 79)? (a) red (b) blue (c) green
  11. 11.🎯 Which sign starts a class selector? (a) @ (b) . (c) # (d) &
  12. 12.🔢 In a basic web page file, which comes first: “<!DOCTYPE html>” or “</head>”? (a) <!DOCTYPE html> (b) </head>
  13. 13.🖌️ Which CSS property makes letters bigger? (a) font-size (b) color (c) font-family (d) background-color
  14. 14.💬 How many paragraphs show on the page?
    <p>The red kite</p>
    <p>My pets</p>
    <p>Good morning!</p>
    <!-- <p>Rain today</p> -->
    <p>Fun facts</p>
  15. 15.🚀 Where in index.html does the link to style.css go? (a) inside a <p> (b) in the footer (c) after </html> (d) in the head
  16. 16.🔠 How many headings are in this code?
    <h1>I love mangoes.</h1>
    <p>My pets</p>
    <p>My pets</p>
    <h2>Fun facts</h2>
  17. 17.📝 Which input type lets you tick many? (a) submit (b) radio (c) date (d) checkbox
  18. 18.True or false: .big is an id selector. (a) False (b) True
  19. 19.🏷️ Is <h1> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  20. 20.📝 Does <img> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  21. 21.✍️ What is the selector in this CSS rule?
    #top {
      font-size: 20px;
      background-color: yellow;
    }
    (a) font-size (b) yellow (c) #top (d) li
  22. 22.⚡ What does this code show?
    let name = "Aman";
    console.log("Welcome, " + name + "!");
    (a) Welcome, Aman! (b) Welcome, name! (c) name (d) Aman
  23. 23.✍️ In color: blue; which part is the value? (a) : (b) blue (c) color (d) ;
  24. 24.📝 Which tag makes a drop-down list? (a) <ul> (b) <select> (c) <ol> (d) <li>
  25. 25.📄 Can HTML on its own keep a high score? (a) No (b) Yes
  26. 26.True or false: <img> has a closing tag. (a) False (b) True
  27. 27.🔗 Which address opens when you click this link?
    <a href="https://example.com">Take the quiz</a>
    (a) art.html (b) maths.html (c) Take the quiz (d) https://example.com
  28. 28.🔗 What does HyperText mean? (a) very big text (b) text with links (c) text in colour (d) secret text
  29. 29.📝 What does <br> do? (a) makes a list (b) adds a picture (c) starts a new line (d) makes text bold
  30. 30.True or false: in <img>, alt sets how wide it is. (a) True (b) False
  31. 31.⚡ Which JavaScript word runs code when true? (a) let (b) if (c) console.log() (d) alert()
  32. 32.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Art Gallery</title>
    </head>
    <body>
      <h1>Match report</h1>
      <p>Here is my best one.</p>
    </body>
    </html>
    (a) Match report (b) Art Gallery (c) Here is my best one. (d) body
  33. 33.🔠 How many headings are in this code?
    <h1>Fun facts</h1>
    <p>The red kite</p>
    <p>I love mangoes.</p>
    <h4>My pets</h4>
  34. 34.🌍 What is the domain name in this URL?
    http://learn.example.com/games/chess.html
    (a) http (b) learn.example.com (c) www.example.com (d) /games/chess.html
  35. 35.Which of these goes in the head? (a) <table> (b) <img> (c) <h1> (d) <title>
  36. 36.🔠 Which heading shows the SMALLEST text: <h4>, <h3>, <h6> or <h2>? (a) <h4> (b) <h3> (c) <h2> (d) <h6>
  37. 37.🌈 How many pairs of hex digits are in a colour like #ff8800? (a) 6 (b) 4 (c) 3 (d) 2
  38. 38.💪 How much empty space (px) is left after the last box?
    .row {
      display: flex;
      width: 450px;
      justify-content: flex-start;
    }
    Inside are 4 boxes, each 100px wide (no margins).
  39. 39.🚀 Which file should this code go in: h1 { font-size: 32px; } (a) script.js (b) style.css (c) index.html
  40. 40.🌈 In #00c500 the green part is the hex number c5. What is it as a normal number?

Answer key

  1. 2
  2. email
  3. No
  4. CSS
  5. padding
  6. element
  7. a web server
  8. <ol>
  9. 20
  10. red
  11. .
  12. <!DOCTYPE html>
  13. font-size
  14. 4
  15. in the head
  16. 2
  17. checkbox
  18. False
  19. an opening tag
  20. an empty tag
  21. #top
  22. Welcome, Aman!
  23. blue
  24. <select>
  25. No
  26. False
  27. https://example.com
  28. text with links
  29. starts a new line
  30. False
  31. if
  32. Match report
  33. 2
  34. learn.example.com
  35. <title>
  36. <h6>
  37. 3
  38. 50
  39. style.css
  40. 197

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