← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 907 · 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.⚖️ What colour is the text of this element?
    <p class="big" id="intro">Hi</p>
    CSS:
    p { color: green; }
    p { color: blue; }
    (a) blue (b) green (c) black (d) red
  2. 2.🧩 Which language makes headings and lists? (a) CSS (b) JavaScript (c) HTML
  3. 3.🌗 Is blue on purple easy or hard to read? (a) easy to read (b) hard to read
  4. 4.📊 How many rows does this table have?
    <table>
      <tr><th>Name</th><th>Fruit</th><th>Price</th><th>Day</th></tr>
      <tr><td>Papaya</td><td>Jamun</td><td>Orange</td><td>Litchi</td></tr>
      <tr><td>Orange</td><td>Papaya</td><td>Mango</td><td>Mango</td></tr>
      <tr><td>Jamun</td><td>Mango</td><td>Jamun</td><td>Papaya</td></tr>
    </table>
  5. 5.💬 How many paragraphs show on the page?
    <!-- <p>Cricket is fun.</p> -->
    <p>Good morning!</p>
    <p>The red kite</p>
    <!-- <p>Fun facts</p> -->
  6. 6.📊 How many cells are in each row?
    <table>
      <tr><td>Orange</td><td>Grapes</td></tr>
      <tr><td>Banana</td><td>Jamun</td></tr>
      <tr><td>Papaya</td><td>Litchi</td></tr>
      <tr><td>Papaya</td><td>Papaya</td></tr>
    </table>
  7. 7.🌈 Which colour of light is strongest in rgb(58, 184, 58)? (a) blue (b) red (c) green
  8. 8.🔗 Which address opens when you click this link?
    <a href="news.html">Take the quiz</a>
    (a) news.html (b) quiz.html (c) games.html (d) Take the quiz
  9. 9.📱 Which tag helps phones show a page at the right size? (a) the title tag (b) the viewport meta tag (c) the hr tag (d) the br tag
  10. 10.📊 Where do <td> cells go? (a) inside a <li> (b) inside a <p> (c) inside the <head> (d) inside a <tr>
  11. 11.📦 How much space across (px) does this box take in all, margin included?
    .box {
      width: 300px;
      padding: 15px;
      border: 1px solid black;
      margin: 10px;
    }
  12. 12.🌈 Hex digits go 0 to 9, then A to which letter? (a) F (b) Z (c) G (d) J
  13. 13.Which of these is a weak password? (a) Rain#Drop_42! (b) Kite_Fl1es@Dawn (c) Mango#Kite29! (d) password
  14. 14.⚖️ What colour is the text of this element?
    <p class="red" id="hero">Hi</p>
    CSS:
    #hero { color: orange; }
    p { color: yellow; }
    (a) yellow (b) black (c) blue (d) orange
  15. 15.📝 On how many lines does the browser show this paragraph?
    <p>Birds sing<br>Kites fly high<br>Roses are red<br>Stars shine</p>
  16. 16.✍️ Which sign goes between a property and its value? (a) - (b) : (c) ; (d) =
  17. 17.🔢 To build and share your first web page, which comes first: “publish it online” or “test in a browser”? (a) test in a browser (b) publish it online
  18. 18.🌍 What is the protocol in this URL?
    https://www.example.net/news/today.html
    (a) /news/today.html (b) https (c) http (d) www.example.net
  19. 19.📦 How wide (px) is this box from the outer edge of its left border to the outer edge of its right border?
    .box {
      width: 180px;
      padding: 25px;
      border: 4px solid black;
      margin: 20px;
    }
  20. 20.🌐 Which one answers page requests? (a) a web server (b) a web browser (c) a code editor
  21. 21.📝 What do we need to write HTML? (a) a microphone (b) a paintbrush (c) a plain text editor (d) a printer
  22. 22.📋 How many items does this list show?
    <ol>
      <li>Grapes</li>
      <li>Jamun</li>
      <li>Banana</li>
      <li>Orange</li>
      <li>Litchi</li>
      <li>Mango</li>
    </ol>
  23. 23.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="moon.png" alt="The full moon" width="250">
    (a) Our school bus (b) The full moon (c) moon.png (d) width
  24. 24.What does font-weight do? (a) centres a heading (b) makes the text bold (c) picks the font style (d) makes letters bigger
  25. 25.True or false: a code editor hosts websites online. (a) False (b) True
  26. 26.🖌️ How big is the text, in px?
    p {
      background-color: green;
      color: red;
      font-size: 16px;
      text-align: right;
    }
  27. 27.🔠 Which heading shows the BIGGEST text: <h5>, <h2>, <h6> or <h3>? (a) <h3> (b) <h6> (c) <h2> (d) <h5>
  28. 28.🛡️ Online: is it safe to keep passwords secret? (a) safe (b) not safe
  29. 29.True or false: in <img>, alt names the picture file. (a) False (b) True
  30. 30.🔗 Which code links to about.html? (a) <a src="about.html"> (b) <link about.html> (c) <a alt="about.html"> (d) <a href="about.html">
  31. 31.🔠 Which tag is used for the main title on a page? (a) <p> (b) <h6> (c) <h1> (d) <br>
  32. 32.True or false: <input type="email"> is for an email address. (a) False (b) True
  33. 33.🎯 What kind of selector is .note? (a) a class selector (b) an element selector (c) an id selector
  34. 34.🔗 What does HyperText mean? (a) secret text (b) text in colour (c) text with links (d) very big text
  35. 35.📋 Does this list show bullets or numbers?
    <ol>
      <li>Mango</li>
      <li>Orange</li>
    </ol>
    (a) bullets (b) numbers
  36. 36.⚡ Which JavaScript word makes a new variable? (a) console.log() (b) let (c) if (d) alert()
  37. 37.📄 Which part holds everything you see on the page? (a) the title (b) the body (c) the doctype (d) the head
  38. 38.📝 How many <input> tags are in this form?
    <form>
      <input type="number">
      <input type="email">
      <input type="checkbox">
      <input type="text">
      <input type="date">
      <input type="submit" value="Send">
    </form>
  39. 39.📄 Where does <p> go: in the head or in the body? (a) in the body (b) in the head
  40. 40.🚀 Which file should this code go in: alert(score); (a) script.js (b) style.css (c) index.html

Answer key

  1. blue
  2. HTML
  3. hard to read
  4. 4
  5. 2
  6. 2
  7. green
  8. news.html
  9. the viewport meta tag
  10. inside a <tr>
  11. 352
  12. F
  13. password
  14. orange
  15. 4
  16. :
  17. test in a browser
  18. https
  19. 238
  20. a web server
  21. a plain text editor
  22. 6
  23. The full moon
  24. makes the text bold
  25. False
  26. 16
  27. <h2>
  28. safe
  29. False
  30. <a href="about.html">
  31. <h1>
  32. True
  33. a class selector
  34. text with links
  35. numbers
  36. let
  37. the body
  38. 6
  39. in the body
  40. script.js

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