← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 851 · 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 BIGGEST text: <h1>, <h5>, <h4> or <h6>? (a) <h1> (b) <h5> (c) <h4> (d) <h6>
  2. 2.📝 Which tag holds a whole form? (a) <input> (b) <ol> (c) <form> (d) <table>
  3. 3.🌍 What is the protocol in this URL?
    http://www.example.net/games/chess.html
    (a) http (b) https (c) www.example.net (d) /games/chess.html
  4. 4.🖼️ Which attribute of <img> sets how tall it is? (a) height (b) src (c) width (d) alt
  5. 5.🌍 Which one scrambles data on its way? (a) HTTPS (b) the server (c) the browser (d) the URL
  6. 6.Which of these is an empty tag? (a) <ul> (b) <title> (c) <br> (d) <p>
  7. 7.🔗 Which address opens when you click this link?
    <a href="art.html">School news</a>
    (a) School news (b) quiz.html (c) news.html (d) art.html
  8. 8.🔐 Is password a strong or a weak password? (a) strong (b) weak
  9. 9.⚖️ What colour is the text of this element?
    <h2 class="red" id="logo">Hi</h2>
    CSS:
    h2 { color: green; }
    h2 { color: orange; }
    (a) green (b) blue (c) orange (d) black
  10. 10.📝 Does <b> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  11. 11.🔗 Which address opens when you click this link?
    <a href="news.html">About us</a>
    (a) quiz.html (b) About us (c) games.html (d) news.html
  12. 12.💬 Why do coders write comments? (a) to make links (b) to show pictures (c) to add colour (d) to leave notes
  13. 13.🎯 Which element does the selector p style? (a) <li id="main"> (b) <p class="note"> (c) <h1> (d) <h2 class="note">
  14. 14.♿ Is this heading order correct (no level skipped)?
    <h1> → <h2> → <h2> → <h2>
    (a) No (b) Yes
  15. 15.🔠 How many headings are in this code?
    <h1>I love mangoes.</h1>
    <p>I love mangoes.</p>
    <p>Fun facts</p>
    <p>The red kite</p>
  16. 16.🚀 Which file should this code go in: <img src="cat.png"> (a) script.js (b) index.html (c) style.css
  17. 17.💪 How much empty space (px) is left after the last box?
    .row {
      display: flex;
      width: 450px;
      justify-content: flex-start;
    }
    Inside are 4 boxes, each 100px wide (no margins).
  18. 18.True or false: <article> sits at the bottom. (a) True (b) False
  19. 19.🔁 What does this code print?
    let temp = 8;
    if (temp >= 43) {
      console.log("Hot");
    } else {
      console.log("Cool");
    }
    (a) Hot (b) Cool
  20. 20.🌈 In #rrggbb, which colour do the last two digits give? (a) white (b) blue (c) red (d) green
  21. 21.What is <input type="email"> for? (a) is for an email address (b) lets you tick many (c) is for one line of words (d) picks a day
  22. 22.🌍 Which one is the page’s address? (a) the browser (b) the URL (c) the server (d) HTTPS
  23. 23.📦 How wide (px) is this box from the outer edge of its left border to the outer edge of its right border?
    .box {
      width: 110px;
      padding: 30px;
      border: 5px solid black;
      margin: 0px;
    }
  24. 24.📋 Which list tag is one item of a list? (a) <ol> (b) <li> (c) <ul>
  25. 25.💪 How much empty space (px) is left after the last box?
    .row {
      display: flex;
      width: 440px;
      justify-content: flex-start;
    }
    Inside are 4 boxes, each 100px wide (no margins).
  26. 26.🔐 Is Rain#Drop_42! a strong or a weak password? (a) strong (b) weak
  27. 27.🔍 Which line is missing its closing tag?
    line 1: <h3>My pets</h3>
    line 2: <strong>Hello, world!
    line 3: <em>Our school trip</em>
    (a) line 1 (b) line 3 (c) line 2
  28. 28.📱 min-width: 800px applies when the screen is ___. (a) exactly 100px (b) 800px or wider (c) 800px or narrower (d) turned off
  29. 29.📦 How much space top to bottom (px) does this box take in all, margin included?
    .box {
      height: 70px;
      padding: 10px;
      border: 4px solid black;
      margin: 10px;
    }
  30. 30.📱 max-width: 600px applies when the screen is ___. (a) exactly 1000px (b) 600px or narrower (c) 600px or wider (d) turned off
  31. 31.🚀 Which file is best for code that reacts to clicks? (a) script.js (b) index.html (c) style.css (d) notes.txt
  32. 32.📊 Are <th> cells shown bold and centred by default? (a) Yes (b) No
  33. 33.📄 Can HTML on its own show paragraphs? (a) No (b) Yes
  34. 34.🔗 Which code links to about.html? (a) <a alt="about.html"> (b) <a src="about.html"> (c) <link about.html> (d) <a href="about.html">
  35. 35.Which of these is true of <header>? (a) holds the logo and title (b) holds one blog post (c) holds the main content (d) is the page’s key part
  36. 36.💪 Which flexbox property picks row or column? (a) align-items (b) gap (c) justify-content (d) flex-direction
  37. 37.🖌️ What colour is behind the letters?
    h1 {
      font-size: 36px;
      color: blue;
      background-color: black;
      text-align: center;
    }
    (a) blue (b) green (c) black
  38. 38.True or false: <table> holds the whole table. (a) False (b) True
  39. 39.📦 How much space top to bottom (px) does this box take in all, margin included?
    .box {
      height: 180px;
      padding: 20px;
      border: 4px solid black;
      margin: 0px;
    }
  40. 40.⚡ A JavaScript file usually ends with which extension? (a) .jpg (b) .js (c) .css (d) .html

Answer key

  1. <h1>
  2. <form>
  3. http
  4. height
  5. HTTPS
  6. <br>
  7. art.html
  8. weak
  9. orange
  10. has a closing tag
  11. news.html
  12. to leave notes
  13. <p class="note">
  14. Yes
  15. 1
  16. index.html
  17. 50
  18. False
  19. Cool
  20. blue
  21. is for an email address
  22. the URL
  23. 180
  24. <li>
  25. 40
  26. strong
  27. line 2
  28. 800px or wider
  29. 118
  30. 600px or narrower
  31. script.js
  32. Yes
  33. Yes
  34. <a href="about.html">
  35. holds the logo and title
  36. flex-direction
  37. black
  38. True
  39. 228
  40. .js

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