← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 274 · 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.True or false: margin is the line round the box. (a) True (b) False
  2. 2.📝 How many paragraphs does this code make?
    <p>Cricket is fun.</p>
    <h2>Cricket is fun.</h2>
    <p>Good morning!</p>
  3. 3.✍️ What value is given to width in this rule?
    h1 {
      background-color: yellow;
      width: 300px;
    }
    (a) red (b) italic (c) 300px (d) width
  4. 4.📝 How many paragraphs does this code make?
    <p>Hello, world!</p>
    <h2>My pets</h2>
    <p>The red kite</p>
  5. 5.📄 Where does <style> go: in the head or in the body? (a) in the head (b) in the body
  6. 6.Which of these is the border? (a) the gap to other boxes (b) a solid or dotted edge (c) space inside the border (d) the text or picture
  7. 7.Which of these does CSS do? (a) rounds box corners (b) counts down a timer (c) makes headings and lists (d) shows a pop-up message
  8. 8.True or false: JavaScript makes a link. (a) False (b) True
  9. 9.True or false: <input type="radio"> picks a day. (a) True (b) False
  10. 10.📋 How many items does this list show?
    <ul>
      <li>Mango</li>
      <li>Orange</li>
      <li>Litchi</li>
    </ul>
  11. 11.True or false: <table> goes in the body. (a) False (b) True
  12. 12.What does font-size do? (a) colours behind the text (b) picks the font style (c) sets the letter colour (d) makes letters bigger
  13. 13.🔠 Which heading shows the BIGGEST text: <h2>, <h1>, <h3> or <h4>? (a) <h4> (b) <h1> (c) <h2> (d) <h3>
  14. 14.🌍 What is the path in this URL?
    http://school.example.in/about.html
    (a) school.example.in (b) http (c) /maths/tables.html (d) /about.html
  15. 15.Which of these is an empty tag? (a) <h1> (b) <li> (c) <p> (d) <input>
  16. 16.📋 Which list tag shows bullet points? (a) <ol> (b) <li> (c) <ul>
  17. 17.Which of these is a weak password? (a) Rain#Drop_42! (b) password (c) Kite_Fl1es@Dawn (d) S0lar!Pen#8
  18. 18.📦 How much space top to bottom (px) does this box take in all, margin included?
    .box {
      height: 160px;
      padding: 10px;
      border: 1px solid black;
      margin: 15px;
    }
  19. 19.True or false: <footer> sits at the bottom. (a) False (b) True
  20. 20.🔗 What does target="_blank" do to a link? (a) makes it blank (b) hides the link (c) makes it bold (d) opens it in a new tab
  21. 21.🖼️ How many pixels wide is the picture drawn?
    <img src="map.png" alt="Map of India" width="100">
  22. 22.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="moon.png" alt="The full moon" width="350">
    (a) The full moon (b) width (c) Our school bus (d) moon.png
  23. 23.True or false: in <img>, width describes the picture. (a) True (b) False
  24. 24.Which of these is a weak password? (a) S0lar!Pen#8 (b) Kite_Fl1es@Dawn (c) riya2014 (d) Rain#Drop_42!
  25. 25.Which of these does HTML do? (a) puts a picture on a page (b) rounds box corners (c) sets colours and fonts (d) adds space around boxes
  26. 26.⚖️ What colour is the text of this element?
    <h1 class="red" id="main">Hi</h1>
    CSS:
    h1 { color: yellow; }
    h1 { color: blue; }
    (a) blue (b) yellow (c) black (d) red
  27. 27.⚡ What does this code print? (Look at the quotes!)
    let x = "7";
    let y = 4;
    console.log(x + y);
    (a) 74 (b) Error (c) 11
  28. 28.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="kite.png" alt="A red kite" width="300">
    (a) kite.png (b) width (c) A red kite (d) Map of India
  29. 29.Which of these does JavaScript do? (a) rounds box corners (b) makes a form box (c) lays out the page (d) counts down a timer
  30. 30.🎯 How many elements on a page should have the same id? (a) any number (b) 1 (c) 5 (d) 2
  31. 31.♿ Is this heading order correct (no level skipped)?
    <h1> → <h3> → <h3> → <h3>
    (a) No (b) Yes
  32. 32.🚀 Which file is best for the colours and fonts? (a) index.html (b) photo.jpg (c) style.css (d) script.js
  33. 33.🔠 Which heading shows the BIGGEST text: <h5>, <h4>, <h2> or <h3>? (a) <h3> (b) <h5> (c) <h2> (d) <h4>
  34. 34.🎨 What does CSS stand for? (a) Creative Sheet System (b) Computer Style Sheets (c) Colourful Site Styles (d) Cascading Style Sheets
  35. 35.📊 Which tag makes a heading cell? (a) <caption> (b) <tr> (c) <table> (d) <th>
  36. 36.🌗 Is red on green easy or hard to read? (a) hard to read (b) easy to read
  37. 37.🎨 A CSS file usually ends with which extension? (a) .js (b) .css (c) .html (d) .png
  38. 38.🔁 What does i++ do? (a) prints i (b) adds 1 to i (c) takes 1 from i (d) doubles i
  39. 39.📊 How many cells are in each row?
    <table>
      <tr><td>Jamun</td><td>Grapes</td></tr>
      <tr><td>Papaya</td><td>Litchi</td></tr>
      <tr><td>Mango</td><td>Guava</td></tr>
    </table>
  40. 40.♿ Does this help everyone, or make the page harder to use: use big enough text? (a) makes it harder (b) helps everyone

Answer key

  1. False
  2. 2
  3. 300px
  4. 2
  5. in the head
  6. a solid or dotted edge
  7. rounds box corners
  8. False
  9. False
  10. 3
  11. True
  12. makes letters bigger
  13. <h1>
  14. /about.html
  15. <input>
  16. <ul>
  17. password
  18. 212
  19. True
  20. opens it in a new tab
  21. 100
  22. The full moon
  23. False
  24. riya2014
  25. puts a picture on a page
  26. blue
  27. 74
  28. A red kite
  29. counts down a timer
  30. 1
  31. No
  32. style.css
  33. <h2>
  34. Cascading Style Sheets
  35. <th>
  36. hard to read
  37. .css
  38. adds 1 to i
  39. 2
  40. helps everyone

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