← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 615 · 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 text will NOT show on the page?
    <!-- <p>The red kite</p> -->
    <p>Hello, world!</p>
    <p>I love mangoes.</p>
    <p>Good morning!</p>
    (a) The red kite (b) Hello, world! (c) I love mangoes. (d) Good morning!
  2. 2.🔠 Which heading shows the BIGGEST text: <h2>, <h5>, <h6> or <h1>? (a) <h6> (b) <h2> (c) <h1> (d) <h5>
  3. 3.📝 On how many lines does the browser show this paragraph?
    <p>Stars shine<br>Sky is blue</p>
  4. 4.🎯 Which element does the selector p style? (a) <h2 class="big"> (b) <li id="top"> (c) <p class="big"> (d) <h1>
  5. 5.📊 How many rows does this table have?
    <table>
      <tr><th>Name</th><th>Fruit</th><th>Price</th></tr>
      <tr><td>Guava</td><td>Orange</td><td>Papaya</td></tr>
      <tr><td>Banana</td><td>Litchi</td><td>Grapes</td></tr>
    </table>
  6. 6.📝 You type 5 spaces between two words in a <p>. How does the browser show them? (a) as a new line (b) as a dot (c) as 5 spaces (d) as one space
  7. 7.📋 Which list tag goes inside ul or ol? (a) <ul> (b) <li> (c) <ol>
  8. 8.🔢 When you open a web page, which comes FIRST? (a) the browser asks it (b) DNS finds the server (c) the server sends files (d) you type the URL
  9. 9.🔗 Which tag makes a clickable link? (a) <a> (b) <img> (c) <p> (d) <link>
  10. 10.True or false: <ul> is an empty tag. (a) True (b) False
  11. 11.🔒 What does the lock (HTTPS) in the address bar mean? (a) the site is free (b) the data is scrambled (c) the site is fast (d) the site is a game
  12. 12.🖌️ How big is the text, in px?
    p {
      background-color: green;
      text-align: right;
      font-size: 32px;
      color: yellow;
    }
  13. 13.🏷️ Which is the closing tag for <i>? (a) <i> (b) <i/> (c) </i> (d) <\i>
  14. 14.🔐 Is 111111 a strong or a weak password? (a) strong (b) weak
  15. 15.🌐 Which one has an address bar? (a) a web server (b) a code editor (c) a web browser
  16. 16.♿ Does this help everyone, or make the page harder to use: use headings in order? (a) helps everyone (b) makes it harder
  17. 17.⚖️ Two rules with the same selector set a colour. Which one wins? (a) neither (b) the first one (c) the later one (d) the shorter one
  18. 18.🔠 How many headings are in this code?
    <h1>The red kite</h1>
    <h4>Our school trip</h4>
    <h2>The red kite</h2>
  19. 19.🔁 What does this code print?
    let marks = 36;
    if (marks < 44) {
      console.log("Pass");
    } else {
      console.log("Try again");
    }
    (a) Try again (b) Pass
  20. 20.💪 Which justify-content value puts boxes in the middle? (a) space-between (b) flex-end (c) flex-start (d) center
  21. 21.✍️ CSS declarations go inside which brackets? (a) < > (b) { } (c) [ ] (d) ( )
  22. 22.⚖️ What colour is the text of this element?
    <h1 class="note" id="end">Hi</h1>
    CSS:
    #end { color: white; }
    #end { color: yellow; }
    (a) yellow (b) blue (c) white (d) green
  23. 23.🚀 Which file should this code go in: console.log(5 + 2); (a) index.html (b) style.css (c) script.js
  24. 24.🔢 To build and share your first web page, which comes first: “publish it online” or “write the HTML”? (a) write the HTML (b) publish it online
  25. 25.True or false: <ul> goes in the head. (a) False (b) True
  26. 26.🎯 What kind of selector is #logo? (a) an element selector (b) a class selector (c) an id selector
  27. 27.🌍 What is the domain name in this URL?
    http://kids.example.org/index.html
    (a) http (b) kids.example.org (c) school.example.in (d) /index.html
  28. 28.📄 Where does the text of <title> appear? (a) at the bottom (b) in a big heading (c) nowhere (d) on the browser tab
  29. 29.True or false: a web server is where we type code. (a) True (b) False
  30. 30.Which of these does JavaScript do? (a) rounds box corners (b) checks a quiz answer (c) makes headings and lists (d) sets colours and fonts
  31. 31.📊 How many cells are in each row?
    <table>
      <tr><td>Jamun</td><td>Jamun</td><td>Banana</td></tr>
      <tr><td>Mango</td><td>Papaya</td><td>Papaya</td></tr>
    </table>
  32. 32.🖌️ Which CSS property picks the font style? (a) font-weight (b) text-align (c) font-family (d) font-size
  33. 33.📊 Which tag holds the whole table? (a) <caption> (b) <tr> (c) <td> (d) <table>
  34. 34.📋 Which list tag shows 1, 2, 3 numbers? (a) <li> (b) <ul> (c) <ol>
  35. 35.📦 In the box model, which part is the text or picture? (a) border (b) padding (c) content (d) margin
  36. 36.🔍 Which is the odd one out? (a) checks a quiz answer (b) gives the page structure (c) makes a link (d) puts a picture on a page
  37. 37.🌗 Is light grey on white easy or hard to read? (a) easy to read (b) hard to read
  38. 38.🎯 What kind of selector is body? (a) a class selector (b) an id selector (c) an element selector
  39. 39.🌈 In #0000d0 the blue part is the hex number d0. What is it as a normal number?
  40. 40.🌐 Which one answers page requests? (a) a code editor (b) a web browser (c) a web server

Answer key

  1. The red kite
  2. <h1>
  3. 2
  4. <p class="big">
  5. 3
  6. as one space
  7. <li>
  8. you type the URL
  9. <a>
  10. False
  11. the data is scrambled
  12. 32
  13. </i>
  14. weak
  15. a web browser
  16. helps everyone
  17. the later one
  18. 3
  19. Pass
  20. center
  21. { }
  22. yellow
  23. script.js
  24. write the HTML
  25. False
  26. an id selector
  27. kids.example.org
  28. on the browser tab
  29. False
  30. checks a quiz answer
  31. 3
  32. font-family
  33. <table>
  34. <ol>
  35. content
  36. checks a quiz answer
  37. hard to read
  38. an element selector
  39. 208
  40. a web server

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