← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 364 · 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 tag is used for the main title on a page? (a) <h1> (b) <h6> (c) <p> (d) <br>
  2. 2.🎨 A CSS file usually ends with which extension? (a) .html (b) .css (c) .png (d) .js
  3. 3.📄 Which part holds everything you see on the page? (a) the title (b) the doctype (c) the body (d) the head
  4. 4.🎨 What does CSS stand for? (a) Colourful Site Styles (b) Cascading Style Sheets (c) Computer Style Sheets (d) Creative Sheet System
  5. 5.📝 On how many lines does the browser show this paragraph?
    <p>Kites fly high<br>Roses are red<br>Rivers flow</p>
  6. 6.📱 The screen is 820px wide. Does the rule inside @media apply?
    p {
      font-size: 16px;
    }
    @media (min-width: 1024px) {
      p {
        font-size: 20px;
      }
    }
    (a) No (b) Yes
  7. 7.🧭 Which semantic tag holds the logo and title? (a) <header> (b) <nav> (c) <main> (d) <aside>
  8. 8.💪 Which justify-content value packs boxes at the start? (a) center (b) flex-start (c) space-between (d) flex-end
  9. 9.📋 How many items does this list show?
    <ul>
      <li>Banana</li>
      <li>Grapes</li>
    </ul>
  10. 10.✍️ Which sign goes between a property and its value? (a) ; (b) = (c) : (d) -
  11. 11.🔍 One closing tag is missing. Which one?
    <h3>I love mangoes.
    <h1>Our school trip</h1>
    <small>Rain today</small>
    (a) </h3> (b) </h1> (c) </strong> (d) </small>
  12. 12.🖌️ What colour is behind the letters?
    li {
      text-align: center;
      font-size: 40px;
      color: blue;
      background-color: white;
    }
    (a) black (b) white (c) blue
  13. 13.📋 What number does the browser show next to “Grapes”?
    <ol start="5">
      <li>Mango</li>
      <li>Grapes</li>
      <li>Papaya</li>
      <li>Banana</li>
      <li>Jamun</li>
      <li>Orange</li>
    </ol>
  14. 14.⚡ Which tag holds JavaScript in a page? (a) <code> (b) <style> (c) <js> (d) <script>
  15. 15.🔁 What does this code print?
    let age = 30;
    if (age < 7) {
      console.log("teen");
    } else {
      console.log("child");
    }
    (a) teen (b) child
  16. 16.True or false: a web browser colours code to help us. (a) True (b) False
  17. 17.📱 min-width: 800px applies when the screen is ___. (a) turned off (b) exactly 100px (c) 800px or narrower (d) 800px or wider
  18. 18.True or false: a code editor has an address bar. (a) False (b) True
  19. 19.🌈 In #002700 the green part is the hex number 27. What is it as a normal number?
  20. 20.📱 The screen is 1100px wide. Does the rule inside @media apply?
    p {
      font-size: 24px;
    }
    @media (min-width: 480px) {
      p {
        font-size: 32px;
      }
    }
    (a) No (b) Yes
  21. 21.🔍 Which is the odd one out? (a) shows pages from the web (b) turns HTML into a page (c) opens web pages for us (d) stores a website’s files
  22. 22.📱 The screen is 1100px wide. What font-size (px) does the paragraph get?
    p {
      font-size: 20px;
    }
    @media (min-width: 768px) {
      p {
        font-size: 22px;
      }
    }
  23. 23.Which of these is true of a web server? (a) shows pages from the web (b) saves our .html files (c) opens web pages for us (d) hosts websites online
  24. 24.⚡ What does this code print? (Look at the quotes!)
    let x = "3";
    let y = 1;
    console.log(x + y);
    (a) 31 (b) 4 (c) Error
  25. 25.📝 How many <input> tags are in this form?
    <form>
      <input type="password">
      <input type="checkbox">
      <input type="date">
      <input type="submit" value="Send">
    </form>
  26. 26.♿ Does this help everyone, or make the page harder to use: skipping heading levels? (a) helps everyone (b) makes it harder
  27. 27.📄 Can HTML on its own run a game loop? (a) Yes (b) No
  28. 28.🌍 What does a web address (URL) tell the browser? (a) your password (b) how old you are (c) the page colour (d) where the page is
  29. 29.🚀 Which file should this code go in: <ul><li>Art</li></ul> (a) style.css (b) index.html (c) script.js
  30. 30.🔗 Which attribute holds the address of a link? (a) src (b) id (c) href (d) alt
  31. 31.📝 Which input type sends the form? (a) password (b) submit (c) text (d) email
  32. 32.📄 Where does <p> go: in the head or in the body? (a) in the head (b) in the body
  33. 33.📝 On how many lines does the browser show this paragraph?
    <p>Stars shine<br>Roses are red</p>
  34. 34.🔢 To build and share your first web page, which comes first: “write the HTML” or “publish it online”? (a) write the HTML (b) publish it online
  35. 35.True or false: the border is the line round the box. (a) False (b) True
  36. 36.📱 The screen is 540px wide. What font-size (px) does the paragraph get?
    p {
      font-size: 24px;
    }
    @media (max-width: 600px) {
      p {
        font-size: 18px;
      }
    }
  37. 37.📝 How many paragraphs does this code make?
    <p>Cricket is fun.</p>
    <p>I love mangoes.</p>
    <p>Fun facts</p>
    <p>The red kite</p>
    <p>Hello, world!</p>
  38. 38.🧭 Is <article> semantic or not semantic? (a) not semantic (b) semantic
  39. 39.✍️ What is the selector in this CSS rule?
    body {
      padding: 8px;
      font-weight: bold;
      background-color: yellow;
    }
    (a) padding (b) .box (c) body (d) bold
  40. 40.🌐 Which one opens web pages for us? (a) a code editor (b) a web server (c) a web browser

Answer key

  1. <h1>
  2. .css
  3. the body
  4. Cascading Style Sheets
  5. 3
  6. No
  7. <header>
  8. flex-start
  9. 2
  10. :
  11. </h3>
  12. white
  13. 6
  14. <script>
  15. child
  16. False
  17. 800px or wider
  18. False
  19. 39
  20. Yes
  21. stores a website’s files
  22. 22
  23. hosts websites online
  24. 31
  25. 4
  26. makes it harder
  27. No
  28. where the page is
  29. index.html
  30. href
  31. submit
  32. in the body
  33. 2
  34. write the HTML
  35. True
  36. 18
  37. 5
  38. semantic
  39. body
  40. a web browser

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