← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 951 · 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 does font-family do? (a) makes the text bold (b) centres a heading (c) picks the font style (d) makes letters bigger
  2. 2.🔗 Which words do you click on?
    <a href="maths.html">Play games</a>
    (a) maths.html (b) href (c) Play games (d) About us
  3. 3.🌍 Which one asks for a web page? (a) HTTPS (b) the browser (c) the URL (d) the server
  4. 4.📝 Does <br> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  5. 5.🔁 How many numbers does this code print?
    for (let i = 0; i < 13; i = i + 3) {
      console.log(i);
    }
  6. 6.🖼️ Which picture file does the browser load?
    <img src="cake.jpg" alt="Birthday cake" width="200">
    (a) dog.jpg (b) Birthday cake (c) moon.png (d) cake.jpg
  7. 7.📝 Does <title> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  8. 8.🖌️ Which CSS property sets the letter colour? (a) background-color (b) font-family (c) font-size (d) color
  9. 9.⚖️ What colour is the text of this element?
    <h2 class="box" id="logo">Hi</h2>
    CSS:
    #logo { color: green; }
    h2 { color: orange; }
    (a) orange (b) green (c) purple (d) yellow
  10. 10.🔍 Which is the odd one out? (a) sends pages over the net (b) answers page requests (c) saves our .html files (d) hosts websites online
  11. 11.🔐 Is riya2014 a strong or a weak password? (a) strong (b) weak
  12. 12.📋 How many items does this list show?
    <ul>
      <li>Banana</li>
      <li>Mango</li>
    </ul>
  13. 13.🚀 Which file is best for code that reacts to clicks? (a) script.js (b) notes.txt (c) index.html (d) style.css
  14. 14.True or false: <ul> shows bullet points. (a) False (b) True
  15. 15.🔗 Where does this link open?
    <a href="maths.html">Maths fun</a>
    (a) in a new tab (b) in the same tab
  16. 16.True or false: <td> makes one table row. (a) False (b) True
  17. 17.🔗 What does target="_blank" do to a link? (a) makes it bold (b) hides the link (c) opens it in a new tab (d) makes it blank
  18. 18.🚀 What is the home page file of a website usually called? (a) index.html (b) start.js (c) main.png (d) home.css
  19. 19.🔗 Which words do you click on?
    <a href="about.html">Maths fun</a>
    (a) Art corner (b) Maths fun (c) about.html (d) href
  20. 20.🔗 Where does this link open?
    <a href="news.html">About us</a>
    (a) in the same tab (b) in a new tab
  21. 21.🌗 Is blue on purple easy or hard to read? (a) easy to read (b) hard to read
  22. 22.🌗 Is yellow on black easy or hard to read? (a) easy to read (b) hard to read
  23. 23.🏷️ Is </h1> an opening tag or a closing tag? (a) a closing tag (b) an opening tag
  24. 24.🌍 What is the domain name in this URL?
    http://school.example.in/index.html
    (a) www.example.net (b) /index.html (c) school.example.in (d) http
  25. 25.🔠 Which heading shows the BIGGEST text: <h5>, <h2>, <h6> or <h1>? (a) <h6> (b) <h2> (c) <h5> (d) <h1>
  26. 26.🛡️ Online: is it safe to log out on shared PCs? (a) not safe (b) safe
  27. 27.💬 How does an HTML comment start? (a) # (b) <!-- (c) // (d) /*
  28. 28.📝 How many <input> tags are in this form?
    <form>
      <input type="date">
      <input type="text">
      <input type="password">
      <input type="checkbox">
      <input type="submit" value="Send">
    </form>
  29. 29.📱 The screen is 1100px wide. What font-size (px) does the paragraph get?
    p {
      font-size: 16px;
    }
    @media (max-width: 480px) {
      p {
        font-size: 10px;
      }
    }
  30. 30.✍️ What is the selector in this CSS rule?
    li {
      font-weight: bold;
      color: red;
      font-size: 20px;
    }
    (a) body (b) red (c) li (d) font-weight
  31. 31.📄 Which part holds everything you see on the page? (a) the title (b) the head (c) the body (d) the doctype
  32. 32.📝 How many paragraphs does this code make?
    <p>The red kite</p>
    <h2>My best friend</h2>
    <p>Hello, world!</p>
  33. 33.🚀 Which file is best for the colours and fonts? (a) script.js (b) style.css (c) index.html (d) photo.jpg
  34. 34.🔁 What does this code print?
    let marks = 4;
    if (marks < 6) {
      console.log("Pass");
    } else {
      console.log("Try again");
    }
    (a) Try again (b) Pass
  35. 35.🧩 An opening tag + content + a closing tag together make an ___. (a) address (b) attribute (c) element (d) editor
  36. 36.🖼️ Which picture file does the browser load?
    <img src="moon.png" alt="The full moon" width="400">
    (a) bus.jpg (b) The full moon (c) moon.png (d) fort.jpg
  37. 37.🔡 Are HTML tag names usually written in small letters? (a) No (b) Yes
  38. 38.Which of these is true of a web server? (a) is where we type code (b) shows line numbers (c) answers page requests (d) colours code to help us
  39. 39.🔗 Which words do you click on?
    <a href="quiz.html">About us</a>
    (a) About us (b) Contact us (c) href (d) quiz.html
  40. 40.🔗 Which code links to about.html? (a) <a alt="about.html"> (b) <link about.html> (c) <a src="about.html"> (d) <a href="about.html">

Answer key

  1. picks the font style
  2. Play games
  3. the browser
  4. an empty tag
  5. 5
  6. cake.jpg
  7. has a closing tag
  8. color
  9. green
  10. saves our .html files
  11. weak
  12. 2
  13. script.js
  14. True
  15. in the same tab
  16. False
  17. opens it in a new tab
  18. index.html
  19. Maths fun
  20. in the same tab
  21. hard to read
  22. easy to read
  23. a closing tag
  24. school.example.in
  25. <h1>
  26. safe
  27. <!--
  28. 5
  29. 16
  30. li
  31. the body
  32. 2
  33. style.css
  34. Pass
  35. element
  36. moon.png
  37. Yes
  38. answers page requests
  39. About us
  40. <a href="about.html">

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