← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 19 · 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.📝 On how many lines does the browser show this paragraph?
    <p>Rivers flow<br>Birds sing<br>Stars shine<br>Roses are red<br>Sky is blue</p>
  2. 2.True or false: the URL sends the page back. (a) True (b) False
  3. 3.What does background-color do? (a) picks the font style (b) makes letters bigger (c) colours behind the text (d) centres a heading
  4. 4.🔍 One closing tag is missing. Which one?
    <small>My best friend</small>
    <b>Our school trip</b>
    <h2>Good morning!
    (a) </strong> (b) </h2> (c) </small> (d) </b>
  5. 5.Which of these does CSS do? (a) makes headings and lists (b) gives the page structure (c) checks a quiz answer (d) adds space around boxes
  6. 6.🔍 Which is the odd one out? (a) rounds box corners (b) lays out the page (c) checks a quiz answer (d) adds space around boxes
  7. 7.True or false: <a href="a.html">Go</a> goes in script.js. (a) False (b) True
  8. 8.♿ What does good colour contrast mean? (a) text stands out clearly (b) many bright colours (c) only red text (d) no colours at all
  9. 9.📋 Does this list show bullets or numbers?
    <ol>
      <li>Jamun</li>
      <li>Guava</li>
    </ol>
    (a) bullets (b) numbers
  10. 10.📱 Responsive design means a page ___. (a) never changes (b) has no pictures (c) is only for laptops (d) fits every screen
  11. 11.📝 Which input type takes only numbers? (a) password (b) email (c) number (d) checkbox
  12. 12.🔠 Which heading shows the BIGGEST text: <h6>, <h4>, <h1> or <h2>? (a) <h6> (b) <h4> (c) <h2> (d) <h1>
  13. 13.Which colour pair is easy to read? (a) white on dark blue (b) blue on purple (c) yellow on white (d) pink on red
  14. 14.💬 How many paragraphs show on the page?
    <!-- <p>My best friend</p> -->
    <p>Cricket is fun.</p>
    <p>Fun facts</p>
  15. 15.🔠 Which heading shows the SMALLEST text: <h5>, <h1>, <h4> or <h2>? (a) <h4> (b) <h5> (c) <h1> (d) <h2>
  16. 16.🔍 Which is the odd one out? (a) is where we type code (b) colours code to help us (c) shows line numbers (d) answers page requests
  17. 17.🎯 Which CSS selector matches this element?
    <div class="red" id="top">Hello</div>
    (a) div (b) #intro (c) #red (d) .top
  18. 18.🌐 Which one opens web pages for us? (a) a web browser (b) a code editor (c) a web server
  19. 19.🔢 When you open a web page, which comes first: “you type the URL” or “the browser shows it”? (a) you type the URL (b) the browser shows it
  20. 20.💬 How does an HTML comment start? (a) // (b) /* (c) # (d) <!--
  21. 21.📋 How many items does this list show?
    <ul>
      <li>Litchi</li>
      <li>Guava</li>
      <li>Jamun</li>
    </ul>
  22. 22.📱 The screen is 1100px wide. Does the rule inside @media apply?
    p {
      font-size: 20px;
    }
    @media (max-width: 768px) {
      p {
        font-size: 16px;
      }
    }
    (a) No (b) Yes
  23. 23.⚖️ What colour is the text of this element?
    <p class="menu" id="end">Hi</p>
    CSS:
    p { color: white; }
    p { color: green; }
    (a) white (b) blue (c) green (d) orange
  24. 24.🔍 Which is the odd one out? (a) shows line numbers (b) sends pages over the net (c) colours code to help us (d) saves our .html files
  25. 25.🎯 How many elements on a page should have the same id? (a) any number (b) 1 (c) 2 (d) 5
  26. 26.🔁 Which word runs code only when something is true? (a) log (b) if (c) let (d) for
  27. 27.🔠 Which heading shows the BIGGEST text: <h6>, <h5>, <h4> or <h1>? (a) <h6> (b) <h1> (c) <h4> (d) <h5>
  28. 28.🔗 Where does this link open?
    <a href="about.html">Maths fun</a>
    (a) in a new tab (b) in the same tab
  29. 29.📄 Which part holds everything you see on the page? (a) the title (b) the body (c) the doctype (d) the head
  30. 30.📝 How many paragraphs does this code make?
    <p>Good morning!</p>
    <p>The red kite</p>
    <h2>Hello, world!</h2>
    <p>The red kite</p>
    <h2>I love mangoes.</h2>
  31. 31.🎯 Which CSS selector matches this element?
    <h1 class="star" id="logo">Hello</h1>
    (a) .star (b) h2 (c) #star (d) .logo
  32. 32.🌍 Which one sends the page back? (a) the browser (b) the server (c) HTTPS (d) the URL
  33. 33.✍️ What is the selector in this CSS rule?
    #top {
      text-align: center;
      font-weight: bold;
      background-color: yellow;
      color: red;
    }
    (a) bold (b) #top (c) li (d) text-align
  34. 34.🌗 Is red on green easy or hard to read? (a) easy to read (b) hard to read
  35. 35.💬 How many paragraphs show on the page?
    <!-- <p>Good morning!</p> -->
    <!-- <p>My best friend</p> -->
    <!-- <p>Rain today</p> -->
    <p>Our school trip</p>
  36. 36.True or false: the border is a solid or dotted edge. (a) False (b) True
  37. 37.📝 On how many lines does the browser show this paragraph?
    <p>Stars shine<br>Sky is blue</p>
  38. 38.🔢 In a basic web page file, which comes first: “<!DOCTYPE html>” or “</body>”? (a) </body> (b) <!DOCTYPE html>
  39. 39.🌐 Which one has an address bar? (a) a code editor (b) a web server (c) a web browser
  40. 40.🔠 Which heading shows the BIGGEST text: <h2>, <h5>, <h3> or <h4>? (a) <h5> (b) <h2> (c) <h4> (d) <h3>

Answer key

  1. 5
  2. False
  3. colours behind the text
  4. </h2>
  5. adds space around boxes
  6. checks a quiz answer
  7. False
  8. text stands out clearly
  9. numbers
  10. fits every screen
  11. number
  12. <h1>
  13. white on dark blue
  14. 2
  15. <h5>
  16. answers page requests
  17. div
  18. a web browser
  19. you type the URL
  20. <!--
  21. 3
  22. No
  23. green
  24. sends pages over the net
  25. 1
  26. if
  27. <h1>
  28. in the same tab
  29. the body
  30. 3
  31. .star
  32. the server
  33. #top
  34. hard to read
  35. 1
  36. True
  37. 2
  38. <!DOCTYPE html>
  39. a web browser
  40. <h2>

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