← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 808 · 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 address opens when you click this link?
    <a href="games.html">School news</a>
    (a) School news (b) contact.html (c) about.html (d) games.html
  2. 2.True or false: <article> holds a news story. (a) False (b) True
  3. 3.🌐 Which one colours code to help us? (a) a web server (b) a web browser (c) a code editor
  4. 4.📄 Can HTML on its own make headings? (a) Yes (b) No
  5. 5.🔠 Are headings shown in bold by default? (a) Yes (b) No
  6. 6.💬 How does an HTML comment start? (a) // (b) /* (c) # (d) <!--
  7. 7.📛 In <a href="x.html">, what is href? (a) a closing tag (b) a comment (c) an attribute (d) an element name
  8. 8.📋 Which list suits a shopping list in any order? (a) <ul> (b) <hr> (c) <ol> (d) <br>
  9. 9.🔗 Where does this link open?
    <a href="contact.html">Take the quiz</a>
    (a) in the same tab (b) in a new tab
  10. 10.True or false: “write clear link text” helps everyone use the page. (a) True (b) False
  11. 11.🧩 An opening tag + content + a closing tag together make an ___. (a) address (b) attribute (c) element (d) editor
  12. 12.🌈 Hex digits go 0 to 9, then A to which letter? (a) G (b) F (c) J (d) Z
  13. 13.📱 The screen is 375px wide. Does the rule inside @media apply?
    p {
      font-size: 16px;
    }
    @media (max-width: 480px) {
      p {
        font-size: 10px;
      }
    }
    (a) Yes (b) No
  14. 14.⚖️ What colour is the text of this element?
    <h2 class="star" id="logo">Hi</h2>
    CSS:
    h2 { color: purple; }
    #logo { color: white; }
    .star { color: yellow; }
    (a) yellow (b) white (c) purple (d) green
  15. 15.🌈 What is the biggest number one colour can have in rgb()? (a) 99 (b) 1000 (c) 100 (d) 255
  16. 16.True or false: <meta charset="utf-8"> goes in the body. (a) False (b) True
  17. 17.🔗 Which tag makes a clickable link? (a) <p> (b) <link> (c) <img> (d) <a>
  18. 18.True or false: CSS sets colours and fonts. (a) False (b) True
  19. 19.🌍 Which one scrambles data on its way? (a) the server (b) HTTPS (c) the browser (d) the URL
  20. 20.🌍 What is the protocol in this URL?
    https://learn.example.com/about.html
    (a) /about.html (b) http (c) https (d) learn.example.com
  21. 21.True or false: the browser is the page’s address. (a) True (b) False
  22. 22.Which of these does CSS do? (a) changes the text size (b) reacts to a button click (c) gives the page structure (d) counts down a timer
  23. 23.📱 Which tag helps phones show a page at the right size? (a) the title tag (b) the hr tag (c) the br tag (d) the viewport meta tag
  24. 24.🔢 On a typical page, from top to bottom, which comes first: “<header>” or “<nav>”? (a) <nav> (b) <header>
  25. 25.🧭 Is <nav> semantic or not semantic? (a) not semantic (b) semantic
  26. 26.💬 How many paragraphs show on the page?
    <p>My best friend</p>
    <!-- <p>I love mangoes.</p> -->
    <p>Rain today</p>
    <p>Our school trip</p>
  27. 27.True or false: <title> has a closing tag. (a) True (b) False
  28. 28.True or false: the URL scrambles data on its way. (a) True (b) False
  29. 29.✍️ How many declarations (property: value pairs) are in this rule?
    .box {
      text-align: center;
      width: 300px;
    }
  30. 30.⚡ What does this code show?
    let name = "Riya";
    console.log("Hello, " + name + "!");
    (a) Hello, Riya! (b) name (c) Riya (d) Hello, name!
  31. 31.🧭 Is <main> semantic or not semantic? (a) semantic (b) not semantic
  32. 32.🔍 Which is the odd one out? (a) makes a link (b) makes headings and lists (c) changes the page live (d) gives the page structure
  33. 33.🌈 In #0000b4 the blue part is the hex number b4. What is it as a normal number?
  34. 34.🖼️ Which picture file does the browser load?
    <img src="fort.jpg" alt="An old fort" width="400">
    (a) kite.png (b) fort.jpg (c) An old fort (d) tiger.jpg
  35. 35.🚀 Which file should this code go in: <p>Hello!</p> (a) script.js (b) index.html (c) style.css
  36. 36.📱 The screen is 700px wide. What font-size (px) does the paragraph get?
    p {
      font-size: 20px;
    }
    @media (min-width: 600px) {
      p {
        font-size: 22px;
      }
    }
  37. 37.🌐 Which one turns HTML into a page? (a) a web server (b) a code editor (c) a web browser
  38. 38.🌍 Which one shows the page to you? (a) the browser (b) the URL (c) HTTPS (d) the server
  39. 39.💪 How wide (px) is each gap between two boxes?
    .row {
      display: flex;
      width: 200px;
      justify-content: space-between;
    }
    Inside are 2 boxes, each 60px wide (no margins).
  40. 40.Which of these does JavaScript do? (a) adds space around boxes (b) counts down a timer (c) makes a link (d) puts a picture on a page

Answer key

  1. games.html
  2. True
  3. a code editor
  4. Yes
  5. Yes
  6. <!--
  7. an attribute
  8. <ul>
  9. in the same tab
  10. True
  11. element
  12. F
  13. Yes
  14. white
  15. 255
  16. False
  17. <a>
  18. True
  19. HTTPS
  20. https
  21. False
  22. changes the text size
  23. the viewport meta tag
  24. <header>
  25. semantic
  26. 3
  27. True
  28. False
  29. 2
  30. Hello, Riya!
  31. semantic
  32. changes the page live
  33. 180
  34. fort.jpg
  35. index.html
  36. 22
  37. a web browser
  38. the browser
  39. 80
  40. counts down a timer

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