← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 295 · 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 colour is #ff00ff? (a) white (b) bright green (c) magenta (d) black
  2. 2.📱 Which tag helps phones show a page at the right size? (a) the br tag (b) the title tag (c) the hr tag (d) the viewport meta tag
  3. 3.🖌️ How big is the text, in px?
    h1 {
      text-align: left;
      font-size: 28px;
      background-color: purple;
      color: blue;
    }
  4. 4.📝 Which tag makes a drop-down list? (a) <ol> (b) <li> (c) <ul> (d) <select>
  5. 5.🖌️ Which CSS property makes letters bigger? (a) text-align (b) font-size (c) font-weight (d) color
  6. 6.🔐 Is iloveyou a strong or a weak password? (a) strong (b) weak
  7. 7.🔢 To build and share your first web page, which comes LAST? (a) write the HTML (b) publish it online (c) add CSS styles (d) plan what to show
  8. 8.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Class 7 Blog</title>
    </head>
    <body>
      <h1>All about me</h1>
      <p>Mars is red.</p>
    </body>
    </html>
    (a) Class 7 Blog (b) All about me (c) index.html (d) Mars is red.
  9. 9.✍️ Which property is set to bold in this rule?
    p {
      color: red;
      padding: 8px;
      font-weight: bold;
    }
    (a) font-weight (b) width (c) bold (d) border
  10. 10.True or false: in <img>, alt names the picture file. (a) False (b) True
  11. 11.💪 How much empty space (px) is before the first box?
    .row {
      display: flex;
      width: 140px;
      justify-content: flex-end;
    }
    Inside are 2 boxes, each 60px wide (no margins).
  12. 12.🔁 What does this code print?
    let age = 8;
    if (age < 21) {
      console.log("teen");
    } else {
      console.log("child");
    }
    (a) child (b) teen
  13. 13.True or false: <table> holds the whole table. (a) True (b) False
  14. 14.🔗 Which words do you click on?
    <a href="quiz.html">Play games</a>
    (a) About us (b) href (c) Play games (d) quiz.html
  15. 15.What does font-weight do? (a) sets the letter colour (b) centres a heading (c) makes letters bigger (d) makes the text bold
  16. 16.Which of these is a weak password? (a) Blue@Tiger_74 (b) password (c) Mango#Kite29! (d) S0lar!Pen#8
  17. 17.🖼️ How many pixels wide is the picture drawn?
    <img src="bus.jpg" alt="Our school bus" width="250">
  18. 18.🌍 What is the path in this URL?
    http://www.example.net/art/gallery.html
    (a) http (b) /art/gallery.html (c) /news/today.html (d) www.example.net
  19. 19.🔍 Which is the odd one out? (a) makes a form box (b) makes headings and lists (c) puts a picture on a page (d) rounds box corners
  20. 20.📝 On how many lines does the browser show this paragraph?
    <p>Rivers flow<br>Birds sing<br>Stars shine<br>Kites fly high<br>Roses are red</p>
  21. 21.🎯 Which sign starts an id selector? (a) # (b) . (c) & (d) @
  22. 22.🔠 Which heading shows the SMALLEST text: <h4>, <h5>, <h2> or <h3>? (a) <h2> (b) <h3> (c) <h5> (d) <h4>
  23. 23.💪 How wide (px) is each gap between two boxes?
    .row {
      display: flex;
      width: 170px;
      justify-content: space-between;
    }
    Inside are 2 boxes, each 80px wide (no margins).
  24. 24.🌗 Is yellow on white easy or hard to read? (a) easy to read (b) hard to read
  25. 25.🔁 What does this code print?
    let temp = 3;
    if (temp >= 20) {
      console.log("Hot");
    } else {
      console.log("Cool");
    }
    (a) Hot (b) Cool
  26. 26.🖌️ Which CSS property picks the font style? (a) color (b) text-align (c) font-weight (d) font-family
  27. 27.🖼️ Which tag puts a picture on a page? (a) <p> (b) <img> (c) <pic> (d) <a>
  28. 28.🌈 Which colour of light is strongest in rgb(65, 241, 138)? (a) blue (b) green (c) red
  29. 29.Which of these is true of a code editor? (a) turns HTML into a page (b) has an address bar (c) is where we type code (d) answers page requests
  30. 30.🏷️ Which is the closing tag for <h3>? (a) </h3> (b) <h3/> (c) <h3> (d) <\h3>
  31. 31.⚡ Where does console.log() show its output? (a) on the printer (b) on the title bar (c) in the address bar (d) in the console
  32. 32.📝 On how many lines does the browser show this paragraph?
    <p>Stars shine<br>Kites fly high<br>Roses are red<br>Rivers flow</p>
  33. 33.📦 How much space across (px) does this box take in all, margin included?
    .box {
      width: 50px;
      padding: 10px;
      border: 4px solid black;
      margin: 0px;
    }
  34. 34.♿ Who uses a screen reader? (a) only robots (b) people who are blind (c) only coders (d) only teachers
  35. 35.♿ Does this help everyone, or make the page harder to use: use big enough text? (a) helps everyone (b) makes it harder
  36. 36.📦 In the box model, which part is space inside the border? (a) border (b) padding (c) margin (d) content
  37. 37.🔍 Which line is missing its closing tag?
    line 1: <small>I love mangoes.
    line 2: <h1>The red kite</h1>
    line 3: <h2>Cricket is fun.</h2>
    (a) line 1 (b) line 2 (c) line 3
  38. 38.Which of these is an empty tag? (a) <img> (b) <p> (c) <ul> (d) <h1>
  39. 39.🌐 Which one shows line numbers? (a) a web server (b) a web browser (c) a code editor
  40. 40.🧩 Which language changes the text size? (a) JavaScript (b) CSS (c) HTML

Answer key

  1. magenta
  2. the viewport meta tag
  3. 28
  4. <select>
  5. font-size
  6. weak
  7. publish it online
  8. Class 7 Blog
  9. font-weight
  10. False
  11. 20
  12. teen
  13. True
  14. Play games
  15. makes the text bold
  16. password
  17. 250
  18. /art/gallery.html
  19. rounds box corners
  20. 5
  21. #
  22. <h5>
  23. 10
  24. hard to read
  25. Cool
  26. font-family
  27. <img>
  28. green
  29. is where we type code
  30. </h3>
  31. in the console
  32. 4
  33. 78
  34. people who are blind
  35. helps everyone
  36. padding
  37. line 1
  38. <img>
  39. a code editor
  40. CSS

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