← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 835 · 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.What is <input type="email"> for? (a) takes only numbers (b) sends the form (c) is for an email address (d) hides what you type
  2. 2.True or false: HTTPS scrambles data on its way. (a) True (b) False
  3. 3.🌍 What is the domain name in this URL?
    https://kids.example.org/art/gallery.html
    (a) /art/gallery.html (b) school.example.in (c) kids.example.org (d) https
  4. 4.Which of these goes in the head? (a) <a> (b) <link rel="stylesheet"> (c) <p> (d) <ul>
  5. 5.Which of these is margin? (a) the gap round content (b) the gap to other boxes (c) space inside the border (d) a solid or dotted edge
  6. 6.🖼️ Which picture file does the browser load?
    <img src="map.png" alt="Map of India" width="300">
    (a) Map of India (b) cake.jpg (c) map.png (d) dog.jpg
  7. 7.📋 Does this list show bullets or numbers?
    <ul>
      <li>Banana</li>
      <li>Guava</li>
    </ul>
    (a) numbers (b) bullets
  8. 8.🔗 Which code links to about.html? (a) <link about.html> (b) <a href="about.html"> (c) <a alt="about.html"> (d) <a src="about.html">
  9. 9.🌐 Which one opens web pages for us? (a) a web server (b) a web browser (c) a code editor
  10. 10.🏷️ Is </body> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  11. 11.🌍 What is the protocol in this URL?
    http://school.example.in/games/chess.html
    (a) school.example.in (b) http (c) https (d) /games/chess.html
  12. 12.🌈 Hex digits go 0 to 9, then A to which letter? (a) F (b) J (c) Z (d) G
  13. 13.Which of these is true of <header>? (a) sits at the very top (b) holds the main content (c) holds one blog post (d) helps you move around
  14. 14.🎯 How many elements on a page should have the same id? (a) 5 (b) 1 (c) 2 (d) any number
  15. 15.What does font-size do? (a) picks the font style (b) sets the letter colour (c) makes letters bigger (d) centres a heading
  16. 16.📋 Which list tag lists steps in order? (a) <ul> (b) <li> (c) <ol>
  17. 17.📝 What does <hr> draw? (a) a line across the page (b) a picture (c) a link (d) a table
  18. 18.🔗 Which address opens when you click this link?
    <a href="contact.html">Visit the site</a>
    (a) https://example.com (b) Visit the site (c) maths.html (d) contact.html
  19. 19.⚖️ What colour is the text of this element?
    <h2 class="box" id="main">Hi</h2>
    CSS:
    h2 { color: blue; }
    .box { color: black; }
    (a) yellow (b) blue (c) red (d) black
  20. 20.Which of these has a closing tag? (a) <hr> (b) <img> (c) <h1> (d) <meta>
  21. 21.🔢 When you open a web page, which comes FIRST? (a) the browser asks it (b) the browser shows it (c) you type the URL (d) the server sends files
  22. 22.💬 How many paragraphs show on the page?
    <!-- <p>My pets</p> -->
    <!-- <p>Good morning!</p> -->
    <!-- <p>Our school trip</p> -->
    <!-- <p>Hello, world!</p> -->
    <p>Cricket is fun.</p>
  23. 23.🔁 What does this code print?
    let score = 29;
    if (score < 5) {
      console.log("You win");
    } else {
      console.log("Play again");
    }
    (a) Play again (b) You win
  24. 24.What is <input type="radio"> for? (a) sends the form (b) lets you tick many (c) is for an email address (d) lets you pick only one
  25. 25.📋 Does this list show bullets or numbers?
    <ul>
      <li>Grapes</li>
      <li>Mango</li>
      <li>Guava</li>
    </ul>
    (a) bullets (b) numbers
  26. 26.🖼️ How many pixels wide is the picture drawn?
    <img src="tiger.jpg" alt="A tiger asleep" width="50">
  27. 27.⚖️ Two rules with the same selector set a colour. Which one wins? (a) the later one (b) neither (c) the shorter one (d) the first one
  28. 28.🏷️ Which is the closing tag for <p>? (a) <p> (b) <p/> (c) <\p> (d) </p>
  29. 29.🛡️ Online: is it safe to check for https first? (a) not safe (b) safe
  30. 30.📋 Which list tag shows bullet points? (a) <ol> (b) <ul> (c) <li>
  31. 31.📝 Which tag holds a whole form? (a) <table> (b) <input> (c) <form> (d) <ol>
  32. 32.🔗 Which attribute holds the address of a link? (a) alt (b) src (c) href (d) id
  33. 33.🔁 What number does this code print?
    let total = 0;
    for (let i = 1; i <= 4; i++) {
      total = total + i;
    }
    console.log(total);
  34. 34.💬 Does the browser show comments on the page? (a) No (b) Yes
  35. 35.🔠 Which heading shows the SMALLEST text: <h4>, <h1>, <h2> or <h3>? (a) <h4> (b) <h3> (c) <h1> (d) <h2>
  36. 36.📄 Can HTML on its own run a game loop? (a) Yes (b) No
  37. 37.📝 How many <input> tags are in this form?
    <form>
      <input type="checkbox">
      <input type="text">
      <input type="submit" value="Send">
    </form>
  38. 38.True or false: <ul> is an empty tag. (a) True (b) False
  39. 39.♿ Is this heading order correct (no level skipped)?
    <h1> → <h1> → <h3> → <h3>
    (a) No (b) Yes
  40. 40.📊 How many cells are in each row?
    <table>
      <tr><th>Name</th><th>Fruit</th><th>Price</th><th>Day</th></tr>
      <tr><td>Papaya</td><td>Papaya</td><td>Jamun</td><td>Guava</td></tr>
    </table>

Answer key

  1. is for an email address
  2. True
  3. kids.example.org
  4. <link rel="stylesheet">
  5. the gap to other boxes
  6. map.png
  7. bullets
  8. <a href="about.html">
  9. a web browser
  10. a closing tag
  11. http
  12. F
  13. sits at the very top
  14. 1
  15. makes letters bigger
  16. <ol>
  17. a line across the page
  18. contact.html
  19. black
  20. <h1>
  21. you type the URL
  22. 1
  23. Play again
  24. lets you pick only one
  25. bullets
  26. 50
  27. the later one
  28. </p>
  29. safe
  30. <ul>
  31. <form>
  32. href
  33. 10
  34. No
  35. <h4>
  36. No
  37. 3
  38. False
  39. No
  40. 4

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