← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 547 · 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 of these is a closing tag? (a) </p> (b) <li> (c) <title> (d) <h1>
  2. 2.True or false: to log out on shared PCs is not safe. (a) False (b) True
  3. 3.🌈 Which colour is rgb(255, 0, 0)? (a) yellow (b) cyan (c) red (d) black
  4. 4.📝 On how many lines does the browser show this paragraph?
    <p>Stars shine<br>Roses are red</p>
  5. 5.🔗 Which tag makes a clickable link? (a) <p> (b) <link> (c) <img> (d) <a>
  6. 6.🧭 Is <article> semantic or not semantic? (a) semantic (b) not semantic
  7. 7.🔁 What number does this code print?
    let total = 0;
    for (let i = 1; i <= 3; i++) {
      total = total + 3;
    }
    console.log(total);
  8. 8.🎯 How many elements on a page should have the same id? (a) any number (b) 5 (c) 2 (d) 1
  9. 9.📊 Which tag makes one table row? (a) <td> (b) <tr> (c) <th> (d) <table>
  10. 10.🏷️ Is <h1> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  11. 11.🔠 Which tag is the least important heading? (a) <h6> (b) <p> (c) <h1> (d) <h3>
  12. 12.Which of these is an empty tag? (a) <li> (b) <h1> (c) <img> (d) <p>
  13. 13.True or false: <table> holds the whole table. (a) True (b) False
  14. 14.🛡️ Before typing a password on a site, check the address starts with ___. (a) http (b) ftp (c) www (d) https
  15. 15.🌐 Which one stores a website’s files? (a) a code editor (b) a web server (c) a web browser
  16. 16.🌍 Which one asks for a web page? (a) HTTPS (b) the URL (c) the browser (d) the server
  17. 17.🚀 Which file should this code go in: let score = 0; (a) style.css (b) index.html (c) script.js
  18. 18.📊 How many rows does this table have?
    <table>
      <tr><th>Name</th><th>Fruit</th><th>Price</th></tr>
      <tr><td>Jamun</td><td>Jamun</td><td>Orange</td></tr>
    </table>
  19. 19.Which of these is the content? (a) the line round the box (b) space outside the border (c) a solid or dotted edge (d) the text or picture
  20. 20.📝 Does <br> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  21. 21.🔢 In a basic web page file, which comes FIRST? (a) </body> (b) <body> (c) </head> (d) <!DOCTYPE html>
  22. 22.📊 How many cells are in each row?
    <table>
      <tr><td>Mango</td><td>Guava</td><td>Mango</td></tr>
      <tr><td>Banana</td><td>Guava</td><td>Papaya</td></tr>
    </table>
  23. 23.🖼️ Which tag puts a picture on a page? (a) <pic> (b) <p> (c) <a> (d) <img>
  24. 24.Which of these does HTML do? (a) rounds box corners (b) reacts to a button click (c) makes headings and lists (d) changes the text size
  25. 25.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="kite.png" alt="A red kite" width="400">
    (a) Map of India (b) kite.png (c) width (d) A red kite
  26. 26.✍️ Which sign ends each CSS declaration? (a) . (b) : (c) ; (d) ,
  27. 27.🔁 What does this code print?
    let temp = 15;
    if (temp >= 39) {
      console.log("Hot");
    } else {
      console.log("Cool");
    }
    (a) Hot (b) Cool
  28. 28.🔍 One closing tag is missing. Which one?
    <h1>Fun facts</h1>
    <h2>Our school trip
    <small>The red kite</small>
    (a) </h1> (b) </small> (c) </p> (d) </h2>
  29. 29.🖌️ How big is the text, in px?
    li {
      background-color: white;
      color: green;
      text-align: center;
      font-size: 24px;
    }
  30. 30.True or false: CSS reacts to a button click. (a) False (b) True
  31. 31.📦 How much space top to bottom (px) does this box take in all, margin included?
    .box {
      height: 160px;
      padding: 5px;
      border: 5px solid black;
      margin: 5px;
    }
  32. 32.📦 In the box model, which part is a solid or dotted edge? (a) margin (b) padding (c) content (d) border
  33. 33.📝 At most, how many of these can be chosen at the same time?
    <form>
      <input type="radio" name="sport"> Chess
      <input type="radio" name="sport"> Hockey
      <input type="radio" name="sport"> Cricket
    </form>
  34. 34.True or false: HTML on its own can count button clicks. (a) False (b) True
  35. 35.Which of these has a closing tag? (a) <p> (b) <input> (c) <meta> (d) <hr>
  36. 36.True or false: in <img>, alt sets how tall it is. (a) False (b) True
  37. 37.🔒 Is the connection to this address scrambled (encrypted)?
    https://www.example.com/index.html
    (a) Yes (b) No
  38. 38.True or false: <li> has a closing tag. (a) False (b) True
  39. 39.♿ Does this help everyone, or make the page harder to use: write clear link text? (a) helps everyone (b) makes it harder
  40. 40.🌈 Which colour is #ffff00? (a) bright green (b) yellow (c) cyan (d) magenta

Answer key

  1. </p>
  2. False
  3. red
  4. 2
  5. <a>
  6. semantic
  7. 9
  8. 1
  9. <tr>
  10. an opening tag
  11. <h6>
  12. <img>
  13. True
  14. https
  15. a web server
  16. the browser
  17. script.js
  18. 2
  19. the text or picture
  20. an empty tag
  21. <!DOCTYPE html>
  22. 3
  23. <img>
  24. makes headings and lists
  25. A red kite
  26. ;
  27. Cool
  28. </h2>
  29. 24
  30. False
  31. 190
  32. border
  33. 1
  34. False
  35. <p>
  36. False
  37. Yes
  38. True
  39. helps everyone
  40. yellow

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