← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 400 · 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.📄 Can HTML on its own make a form? (a) No (b) Yes
  2. 2.📄 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>Try this poha.</p>
    </body>
    </html>
    (a) Try this poha. (b) Class 7 Blog (c) index.html (d) All about me
  3. 3.🔠 Which heading shows the SMALLEST text: <h1>, <h2>, <h3> or <h4>? (a) <h1> (b) <h3> (c) <h2> (d) <h4>
  4. 4.⚖️ What colour is the text of this element?
    <h2 class="menu" id="intro">Hi</h2>
    CSS:
    h2 { color: white; }
    h2 { color: yellow; }
    (a) green (b) white (c) yellow (d) blue
  5. 5.📊 How many heading cells (<th>) does this table have?
    <table>
      <tr><th>Name</th><th>Fruit</th></tr>
      <tr><td>Papaya</td><td>Banana</td></tr>
    </table>
  6. 6.🌈 Which colour of light is strongest in rgb(77, 78, 185)? (a) green (b) blue (c) red
  7. 7.💪 Which flexbox property turns on flexbox? (a) flex-direction (b) display: flex (c) align-items (d) gap
  8. 8.⚖️ What colour is the text of this element?
    <h2 class="red" id="intro">Hi</h2>
    CSS:
    .red { color: yellow; }
    .red { color: blue; }
    (a) blue (b) red (c) yellow (d) white
  9. 9.🔗 Which address opens when you click this link?
    <a href="https://example.com">Play games</a>
    (a) Play games (b) maths.html (c) art.html (d) https://example.com
  10. 10.🔠 How many heading levels does HTML have? (a) 4 (b) 3 (c) 6 (d) 10
  11. 11.🔗 Which address opens when you click this link?
    <a href="news.html">About us</a>
    (a) news.html (b) About us (c) quiz.html (d) games.html
  12. 12.⚖️ What colour is the text of this element?
    <h1 class="big" id="main">Hi</h1>
    CSS:
    #main { color: red; }
    #main { color: white; }
    (a) orange (b) red (c) purple (d) white
  13. 13.True or false: the server asks for a web page. (a) False (b) True
  14. 14.🎯 Which CSS selector matches this element?
    <span class="note" id="hero">Hello</span>
    (a) #top (b) #hero (c) .big (d) .hero
  15. 15.💬 How many paragraphs show on the page?
    <p>My pets</p>
    <!-- <p>Cricket is fun.</p> -->
    <p>Rain today</p>
    <p>Hello, world!</p>
  16. 16.🔍 Which is the odd one out? (a) opens web pages for us (b) turns HTML into a page (c) has an address bar (d) sends pages over the net
  17. 17.📊 Which tag holds the whole table? (a) <table> (b) <tr> (c) <th> (d) <td>
  18. 18.What does justify-content: flex-start do? (a) equal gaps, none at ends (b) packs boxes at the start (c) puts boxes in the middle (d) packs boxes at the end
  19. 19.🖼️ How many pixels wide is the picture drawn?
    <img src="map.png" alt="Map of India" width="100">
  20. 20.⚖️ What colour is the text of this element?
    <h1 class="box" id="intro">Hi</h1>
    CSS:
    .box { color: orange; }
    #intro { color: white; }
    h1 { color: black; }
    (a) orange (b) red (c) white (d) black
  21. 21.🎨 What does CSS stand for? (a) Creative Sheet System (b) Cascading Style Sheets (c) Colourful Site Styles (d) Computer Style Sheets
  22. 22.🔁 How many numbers does this code print?
    for (let i = 0; i < 14; i = i + 4) {
      console.log(i);
    }
  23. 23.📄 Where does <meta charset="utf-8"> go: in the head or in the body? (a) in the body (b) in the head
  24. 24.✍️ Which property is set to center in this rule?
    #top {
      text-align: center;
      width: 300px;
    }
    (a) text-align (b) background-color (c) center (d) margin
  25. 25.⚡ What does this code print? (Look at the quotes!)
    let x = "8";
    let y = 2;
    console.log(x + y);
    (a) 10 (b) Error (c) 82
  26. 26.✍️ How many declarations (property: value pairs) are in this rule?
    h2 {
      background-color: yellow;
      padding: 8px;
      font-weight: bold;
      text-align: center;
    }
  27. 27.🧩 Which language rounds box corners? (a) JavaScript (b) CSS (c) HTML
  28. 28.True or false: <input type="password"> picks a day. (a) False (b) True
  29. 29.🔍 Which is the odd one out? (a) sets colours and fonts (b) changes the text size (c) changes the page live (d) adds space around boxes
  30. 30.What does justify-content: space-between do? (a) packs boxes at the end (b) packs boxes at the start (c) puts boxes in the middle (d) equal gaps, none at ends
  31. 31.True or false: JavaScript adds space around boxes. (a) True (b) False
  32. 32.🌈 Which colour is rgb(255, 0, 0)? (a) cyan (b) white (c) bright green (d) red
  33. 33.True or false: to type a password on http is not safe. (a) False (b) True
  34. 34.📊 How many cells does this table have in all?
    <table>
      <tr><td>Litchi</td><td>Mango</td></tr>
      <tr><td>Guava</td><td>Guava</td></tr>
      <tr><td>Orange</td><td>Banana</td></tr>
    </table>
  35. 35.🔡 Are HTML tag names usually written in small letters? (a) No (b) Yes
  36. 36.True or false: .menu is a class selector. (a) False (b) True
  37. 37.⚖️ Which selector is the weakest? (a) a class selector (b) an element selector (c) an id selector
  38. 38.♿ Does this help everyone, or make the page harder to use: add alt text to images? (a) helps everyone (b) makes it harder
  39. 39.🌐 Which one sends pages over the net? (a) a web browser (b) a code editor (c) a web server
  40. 40.Which of these is a closing tag? (a) <body> (b) </p> (c) <title> (d) <li>

Answer key

  1. Yes
  2. Class 7 Blog
  3. <h4>
  4. yellow
  5. 2
  6. blue
  7. display: flex
  8. blue
  9. https://example.com
  10. 6
  11. news.html
  12. white
  13. False
  14. #hero
  15. 3
  16. sends pages over the net
  17. <table>
  18. packs boxes at the start
  19. 100
  20. white
  21. Cascading Style Sheets
  22. 4
  23. in the head
  24. text-align
  25. 82
  26. 4
  27. CSS
  28. False
  29. changes the page live
  30. equal gaps, none at ends
  31. False
  32. red
  33. True
  34. 6
  35. Yes
  36. True
  37. an element selector
  38. helps everyone
  39. a web server
  40. </p>

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