← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 694 · 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.🔒 Is the connection to this address scrambled (encrypted)?
    https://www.example.net/games/chess.html
    (a) No (b) Yes
  2. 2.🔗 Which address opens when you click this link?
    <a href="about.html">Art corner</a>
    (a) Art corner (b) about.html (c) contact.html (d) https://example.com
  3. 3.🔠 Are headings shown in bold by default? (a) Yes (b) No
  4. 4.⚡ A JavaScript file usually ends with which extension? (a) .css (b) .js (c) .html (d) .jpg
  5. 5.True or false: a web server answers page requests. (a) False (b) True
  6. 6.📝 What does <br> do? (a) adds a picture (b) starts a new line (c) makes a list (d) makes text bold
  7. 7.🖼️ Which attribute of <img> tells which image to load? (a) height (b) alt (c) src (d) width
  8. 8.📋 How many items does this list show?
    <ul>
      <li>Jamun</li>
      <li>Grapes</li>
      <li>Papaya</li>
      <li>Litchi</li>
      <li>Orange</li>
    </ul>
  9. 9.🖌️ What colour is behind the letters?
    h2 {
      background-color: white;
      font-size: 16px;
      color: blue;
      text-align: center;
    }
    (a) white (b) blue (c) yellow
  10. 10.🚀 Which file should this code go in: <p>Hello!</p> (a) style.css (b) index.html (c) script.js
  11. 11.📋 Which tag goes around each item of a list? (a) <ul> (b) <ol> (c) <li> (d) <p>
  12. 12.💪 Which justify-content value packs boxes at the start? (a) flex-start (b) center (c) flex-end (d) space-between
  13. 13.📄 Where does <ul> go: in the head or in the body? (a) in the head (b) in the body
  14. 14.⚖️ What colour is the text of this element?
    <p class="note" id="hero">Hi</p>
    CSS:
    .note { color: black; }
    p { color: blue; }
    (a) purple (b) red (c) blue (d) black
  15. 15.📝 Does <br> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  16. 16.🌍 What is the domain name in this URL?
    https://www.example.net/index.html
    (a) learn.example.com (b) /index.html (c) https (d) www.example.net
  17. 17.✍️ CSS declarations go inside which brackets? (a) < > (b) ( ) (c) [ ] (d) { }
  18. 18.📝 How many paragraphs does this code make?
    <p>My pets</p>
    <h2>Fun facts</h2>
    <h2>My pets</h2>
    <p>Good morning!</p>
    <h2>The red kite</h2>
    <p>My pets</p>
  19. 19.True or false: <input type="radio"> takes only numbers. (a) False (b) True
  20. 20.📱 max-width: 600px applies when the screen is ___. (a) 600px or wider (b) exactly 1000px (c) turned off (d) 600px or narrower
  21. 21.True or false: <title> goes in the head. (a) False (b) True
  22. 22.🔤 In “HTML”, what does the L stand for? (a) Language (b) Line (c) Laptop (d) Link
  23. 23.True or false: the browser stores the site’s files. (a) True (b) False
  24. 24.Which of these goes in the head? (a) <img> (b) <title> (c) <ul> (d) <a>
  25. 25.💬 How many paragraphs show on the page?
    <!-- <p>Hello, world!</p> -->
    <!-- <p>My best friend</p> -->
    <p>Cricket is fun.</p>
    <!-- <p>Fun facts</p> -->
  26. 26.🔒 Is the connection to this address scrambled (encrypted)?
    http://www.example.com/about.html
    (a) No (b) Yes
  27. 27.💪 Which justify-content value puts boxes in the middle? (a) center (b) space-between (c) flex-end (d) flex-start
  28. 28.🔁 How many numbers does this code print?
    for (let i = 0; i < 17; i = i + 3) {
      console.log(i);
    }
  29. 29.🔠 Which heading shows the SMALLEST text: <h6>, <h2>, <h4> or <h5>? (a) <h6> (b) <h5> (c) <h2> (d) <h4>
  30. 30.⚖️ Two rules with the same selector set a colour. Which one wins? (a) the later one (b) the first one (c) the shorter one (d) neither
  31. 31.📦 How much space across (px) does this box take in all, margin included?
    .box {
      width: 260px;
      padding: 15px;
      border: 3px solid black;
      margin: 0px;
    }
  32. 32.🔢 On a typical page, from top to bottom, which comes FIRST? (a) <main> (b) <footer> (c) <header> (d) <nav>
  33. 33.True or false: HTML makes headings and lists. (a) True (b) False
  34. 34.True or false: <td> makes one data cell. (a) True (b) False
  35. 35.🏷️ Is <body> an opening tag or a closing tag? (a) an opening tag (b) a closing tag
  36. 36.True or false: <nav> sits at the very top. (a) False (b) True
  37. 37.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Cricket Club</title>
    </head>
    <body>
      <h1>Easy snacks</h1>
      <p>Mars is red.</p>
    </body>
    </html>
    (a) index.html (b) Easy snacks (c) Cricket Club (d) Mars is red.
  38. 38.📊 How many heading cells (<th>) does this table have?
    <table>
      <tr><th>Name</th><th>Fruit</th><th>Price</th></tr>
      <tr><td>Orange</td><td>Jamun</td><td>Jamun</td></tr>
      <tr><td>Papaya</td><td>Guava</td><td>Grapes</td></tr>
      <tr><td>Grapes</td><td>Guava</td><td>Jamun</td></tr>
    </table>
  39. 39.📱 min-width: 800px applies when the screen is ___. (a) 800px or wider (b) exactly 100px (c) turned off (d) 800px or narrower
  40. 40.Which of these is a strong password? (a) 123456 (b) Kite_Fl1es@Dawn (c) qwerty (d) riya2014

Answer key

  1. Yes
  2. about.html
  3. Yes
  4. .js
  5. True
  6. starts a new line
  7. src
  8. 5
  9. white
  10. index.html
  11. <li>
  12. flex-start
  13. in the body
  14. black
  15. an empty tag
  16. www.example.net
  17. { }
  18. 3
  19. False
  20. 600px or narrower
  21. True
  22. Language
  23. False
  24. <title>
  25. 1
  26. No
  27. center
  28. 6
  29. <h6>
  30. the later one
  31. 296
  32. <header>
  33. True
  34. True
  35. an opening tag
  36. False
  37. Cricket Club
  38. 3
  39. 800px or wider
  40. Kite_Fl1es@Dawn

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