← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 405 · 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 heading shows the SMALLEST text: <h1>, <h3>, <h6> or <h2>? (a) <h2> (b) <h1> (c) <h6> (d) <h3>
  2. 2.🔍 Which is the odd one out? (a) opens web pages for us (b) shows pages from the web (c) answers page requests (d) has an address bar
  3. 3.📱 The screen is 375px wide. What font-size (px) does the paragraph get?
    p {
      font-size: 12px;
    }
    @media (max-width: 768px) {
      p {
        font-size: 10px;
      }
    }
  4. 4.🔢 When you open a web page, which comes FIRST? (a) you type the URL (b) the server sends files (c) DNS finds the server (d) the browser asks it
  5. 5.📱 max-width: 600px applies when the screen is ___. (a) 600px or wider (b) 600px or narrower (c) exactly 1000px (d) turned off
  6. 6.🔠 How many heading levels does HTML have? (a) 6 (b) 4 (c) 3 (d) 10
  7. 7.Which of these does HTML do? (a) counts down a timer (b) makes headings and lists (c) adds space around boxes (d) sets colours and fonts
  8. 8.🖼️ Which attribute of <img> names the picture file? (a) width (b) src (c) height (d) alt
  9. 9.📱 The screen is 375px wide. What font-size (px) does the paragraph get?
    p {
      font-size: 24px;
    }
    @media (max-width: 768px) {
      p {
        font-size: 20px;
      }
    }
  10. 10.🎯 Which element does the selector .big style? (a) <span id="big"> (b) <span class="big"> (c) <p class="box"> (d) <span class="red">
  11. 11.🔍 Which is the odd one out? (a) answers page requests (b) hosts websites online (c) shows pages from the web (d) sends pages over the net
  12. 12.🌍 What is the protocol in this URL?
    https://learn.example.com/games/chess.html
    (a) http (b) https (c) /games/chess.html (d) learn.example.com
  13. 13.🔗 Which attribute holds the address of a link? (a) src (b) alt (c) id (d) href
  14. 14.True or false: <hr> has a closing tag. (a) False (b) True
  15. 15.🔗 Where does this link open?
    <a href="https://example.com" target="_blank">Art corner</a>
    (a) in the same tab (b) in a new tab
  16. 16.🌍 Which one scrambles data on its way? (a) the browser (b) the URL (c) HTTPS (d) the server
  17. 17.🔠 Which heading shows the BIGGEST text: <h2>, <h1>, <h6> or <h3>? (a) <h6> (b) <h1> (c) <h2> (d) <h3>
  18. 18.♿ Is this heading order correct (no level skipped)?
    <h1> → <h2> → <h3> → <h3>
    (a) Yes (b) No
  19. 19.True or false: <br> is an empty tag. (a) True (b) False
  20. 20.What does color do? (a) sets the letter colour (b) makes letters bigger (c) picks the font style (d) centres a heading
  21. 21.📝 How many <input> tags are in this form?
    <form>
      <input type="date">
      <input type="password">
      <input type="text">
      <input type="checkbox">
      <input type="submit" value="Send">
    </form>
  22. 22.🎯 Which sign starts an id selector? (a) . (b) & (c) # (d) @
  23. 23.📱 The screen is 1100px wide. What font-size (px) does the paragraph get?
    p {
      font-size: 20px;
    }
    @media (max-width: 1024px) {
      p {
        font-size: 18px;
      }
    }
  24. 24.📄 Where does <h1> go: in the head or in the body? (a) in the body (b) in the head
  25. 25.🔠 How many headings are in this code?
    <h1>My pets</h1>
    <p>Fun facts</p>
    <p>Fun facts</p>
    <p>Hello, world!</p>
  26. 26.🔁 When does the else part run? (a) always (b) never (c) when if is true (d) when if is false
  27. 27.🔁 What is the LAST number this code prints?
    for (let i = 0; i < 11; i = i + 2) {
      console.log(i);
    }
  28. 28.What is <input type="checkbox"> for? (a) takes only numbers (b) lets you tick many (c) picks a day (d) sends the form
  29. 29.🧩 Which language puts a picture on a page? (a) CSS (b) HTML (c) JavaScript
  30. 30.💬 How does an HTML comment start? (a) <!-- (b) # (c) // (d) /*
  31. 31.📦 How much space across (px) does this box take in all, margin included?
    .box {
      width: 240px;
      padding: 20px;
      border: 3px solid black;
      margin: 5px;
    }
  32. 32.🧭 Why use <nav> instead of <div> for a menu? (a) it adds pictures (b) it tells its meaning (c) it makes text red (d) it loads faster
  33. 33.🔗 Which words do you click on?
    <a href="maths.html">Art corner</a>
    (a) School news (b) maths.html (c) Art corner (d) href
  34. 34.🔍 Which is the odd one out? (a) puts a picture on a page (b) makes headings and lists (c) makes a form box (d) counts down a timer
  35. 35.✍️ What value is given to font-weight in this rule?
    p {
      font-weight: bold;
      color: red;
      padding: 8px;
    }
    (a) font-weight (b) bold (c) 2px solid (d) 300px
  36. 36.📱 The screen is 820px wide. Does the rule inside @media apply?
    p {
      font-size: 16px;
    }
    @media (max-width: 768px) {
      p {
        font-size: 12px;
      }
    }
    (a) No (b) Yes
  37. 37.🔗 Which code links to about.html? (a) <link about.html> (b) <a src="about.html"> (c) <a alt="about.html"> (d) <a href="about.html">
  38. 38.Which of these is the border? (a) space outside the border (b) the text or picture (c) the line round the box (d) space inside the border
  39. 39.🌐 Which one saves our .html files? (a) a web server (b) a web browser (c) a code editor
  40. 40.🔤 In “HTML”, what does the L stand for? (a) Laptop (b) Link (c) Language (d) Line

Answer key

  1. <h6>
  2. answers page requests
  3. 10
  4. you type the URL
  5. 600px or narrower
  6. 6
  7. makes headings and lists
  8. src
  9. 20
  10. <span class="big">
  11. shows pages from the web
  12. https
  13. href
  14. False
  15. in a new tab
  16. HTTPS
  17. <h1>
  18. Yes
  19. True
  20. sets the letter colour
  21. 5
  22. #
  23. 20
  24. in the body
  25. 1
  26. when if is false
  27. 10
  28. lets you tick many
  29. HTML
  30. <!--
  31. 296
  32. it tells its meaning
  33. Art corner
  34. counts down a timer
  35. bold
  36. No
  37. <a href="about.html">
  38. the line round the box
  39. a code editor
  40. Language

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