← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 579 · 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: HTML changes the text size. (a) True (b) False
  2. 2.🔍 One closing tag is missing. Which one?
    <em>My pets
    <u>Cricket is fun.</u>
    <small>I love mangoes.</small>
    (a) </u> (b) </h1> (c) </small> (d) </em>
  3. 3.📦 How much space across (px) does this box take in all, margin included?
    .box {
      width: 140px;
      padding: 30px;
      border: 1px solid black;
      margin: 0px;
    }
  4. 4.🔍 Which is the odd one out? (a) lays out the page (b) adds space around boxes (c) sets colours and fonts (d) makes a link
  5. 5.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Cricket Club</title>
    </head>
    <body>
      <h1>My drawings</h1>
      <p>I like to read.</p>
    </body>
    </html>
    (a) I like to read. (b) My drawings (c) index.html (d) Cricket Club
  6. 6.🔠 How many heading levels does HTML have? (a) 3 (b) 10 (c) 4 (d) 6
  7. 7.Which of these is a closing tag? (a) <h1> (b) </b> (c) <title> (d) <b>
  8. 8.🔠 How many <h1> headings should a page usually have? (a) 3 (b) 10 (c) 1 (d) 6
  9. 9.True or false: <li> has a closing tag. (a) False (b) True
  10. 10.📄 Where does <meta charset="utf-8"> go: in the head or in the body? (a) in the body (b) in the head
  11. 11.📋 How many items does this list show?
    <ol>
      <li>Papaya</li>
      <li>Litchi</li>
      <li>Banana</li>
      <li>Mango</li>
      <li>Guava</li>
    </ol>
  12. 12.What is <input type="password"> for? (a) lets you tick many (b) picks a day (c) hides what you type (d) takes only numbers
  13. 13.🖼️ Which attribute of <img> sets how tall it is? (a) src (b) width (c) height (d) alt
  14. 14.📝 Which tag gives a form box a name you can click? (a) <title> (b) <label> (c) <hr> (d) <h1>
  15. 15.📊 How many cells are in each row?
    <table>
      <tr><td>Guava</td><td>Orange</td></tr>
      <tr><td>Guava</td><td>Mango</td></tr>
      <tr><td>Mango</td><td>Banana</td></tr>
      <tr><td>Guava</td><td>Grapes</td></tr>
    </table>
  16. 16.🌐 Which one turns HTML into a page? (a) a code editor (b) a web browser (c) a web server
  17. 17.🔠 Which heading shows the SMALLEST text: <h5>, <h1>, <h6> or <h3>? (a) <h5> (b) <h6> (c) <h3> (d) <h1>
  18. 18.Which of these is true of a code editor? (a) turns HTML into a page (b) stores a website’s files (c) colours code to help us (d) shows pages from the web
  19. 19.True or false: <input> is an empty tag. (a) True (b) False
  20. 20.💪 Which flexbox property sets space between boxes? (a) justify-content (b) flex-direction (c) display: flex (d) gap
  21. 21.🌍 What is the domain name in this URL?
    http://www.example.com/art/gallery.html
    (a) /art/gallery.html (b) http (c) kids.example.org (d) www.example.com
  22. 22.🔍 One closing tag is missing. Which one?
    <h3>The red kite</h3>
    <h1>Cricket is fun.</h1>
    <u>Hello, world!
    (a) </h1> (b) </u> (c) </h3> (d) </p>
  23. 23.🌈 Which colour is #00ff00? (a) blue (b) red (c) bright green (d) black
  24. 24.🖌️ How big is the text, in px?
    li {
      background-color: green;
      color: purple;
      font-size: 36px;
      text-align: right;
    }
  25. 25.Which of these is true of a web server? (a) saves our .html files (b) has an address bar (c) stores a website’s files (d) shows line numbers
  26. 26.✍️ Which sign ends each CSS declaration? (a) . (b) : (c) , (d) ;
  27. 27.📋 Which list tag is an ordered list? (a) <ul> (b) <ol> (c) <li>
  28. 28.🔍 One closing tag is missing. Which one?
    <p>I love mangoes.</p>
    <small>The red kite
    <strong>Cricket is fun.</strong>
    (a) </p> (b) </small> (c) </h2> (d) </strong>
  29. 29.🖼️ Which picture file does the browser load?
    <img src="cake.jpg" alt="Birthday cake" width="350">
    (a) cake.jpg (b) dog.jpg (c) Birthday cake (d) moon.png
  30. 30.🔍 Which is the odd one out? (a) checks a quiz answer (b) reacts to a button click (c) changes the page live (d) gives the page structure
  31. 31.🔁 Which word runs code only when something is true? (a) for (b) if (c) let (d) log
  32. 32.🧭 Which semantic tag holds a news story? (a) <article> (b) <main> (c) <footer> (d) <header>
  33. 33.True or false: <style> goes in the head. (a) False (b) True
  34. 34.🖼️ How many pixels wide is the picture drawn?
    <img src="cake.jpg" alt="Birthday cake" width="300">
  35. 35.📄 Can HTML on its own make headings? (a) Yes (b) No
  36. 36.📊 Which tag holds the whole table? (a) <table> (b) <tr> (c) <td> (d) <th>
  37. 37.True or false: <img> goes in the head. (a) True (b) False
  38. 38.📋 What number does the browser show next to “Guava”?
    <ol>
      <li>Papaya</li>
      <li>Guava</li>
      <li>Mango</li>
      <li>Jamun</li>
      <li>Orange</li>
    </ol>
  39. 39.⚡ Which JavaScript word makes a new variable? (a) console.log() (b) for (c) let (d) alert()
  40. 40.🔗 Which words do you click on?
    <a href="https://example.com">Contact us</a>
    (a) Visit the site (b) href (c) Contact us (d) https://example.com

Answer key

  1. False
  2. </em>
  3. 202
  4. makes a link
  5. Cricket Club
  6. 6
  7. </b>
  8. 1
  9. True
  10. in the head
  11. 5
  12. hides what you type
  13. height
  14. <label>
  15. 2
  16. a web browser
  17. <h6>
  18. colours code to help us
  19. True
  20. gap
  21. www.example.com
  22. </u>
  23. bright green
  24. 36
  25. stores a website’s files
  26. ;
  27. <ol>
  28. </small>
  29. cake.jpg
  30. gives the page structure
  31. if
  32. <article>
  33. True
  34. 300
  35. Yes
  36. <table>
  37. False
  38. 2
  39. let
  40. Contact us

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