← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 269 · 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 of these is true of <header>? (a) is the page’s key part (b) holds the logo and title (c) holds the menu of links (d) holds extra side notes
  2. 2.🧭 Is <footer> semantic or not semantic? (a) semantic (b) not semantic
  3. 3.📊 How many rows does this table have?
    <table>
      <tr><th>Name</th><th>Fruit</th><th>Price</th></tr>
      <tr><td>Jamun</td><td>Banana</td><td>Jamun</td></tr>
      <tr><td>Mango</td><td>Jamun</td><td>Orange</td></tr>
      <tr><td>Mango</td><td>Banana</td><td>Mango</td></tr>
    </table>
  4. 4.⚖️ What colour is the text of this element?
    <p class="star" id="intro">Hi</p>
    CSS:
    #intro { color: orange; }
    #intro { color: yellow; }
    (a) yellow (b) blue (c) orange (d) green
  5. 5.📝 On how many lines does the browser show this paragraph?
    <p>Rivers flow<br>Roses are red<br>Stars shine<br>Birds sing<br>Sky is blue</p>
  6. 6.Which of these is a strong password? (a) iloveyou (b) Blue@Tiger_74 (c) qwerty (d) 123456
  7. 7.Which of these is an opening tag? (a) <title> (b) </h1> (c) </p> (d) </b>
  8. 8.🖼️ Does <img> need a closing tag? (a) No (b) Yes
  9. 9.🌈 Which colour is rgb(255, 0, 255)? (a) magenta (b) red (c) yellow (d) bright green
  10. 10.📊 Which tag makes one data cell? (a) <td> (b) <caption> (c) <tr> (d) <table>
  11. 11.Which of these is a closing tag? (a) <p> (b) <body> (c) <b> (d) </title>
  12. 12.What is <input type="date"> for? (a) is for one line of words (b) lets you tick many (c) picks a day (d) sends the form
  13. 13.✍️ How many declarations (property: value pairs) are in this rule?
    .box {
      font-size: 20px;
      padding: 8px;
    }
  14. 14.🌗 Is blue on purple easy or hard to read? (a) hard to read (b) easy to read
  15. 15.Which of these is an opening tag? (a) </b> (b) </title> (c) <p> (d) </p>
  16. 16.🏷️ What does a closing tag have that an opening tag does not? (a) a hash # (b) a dollar $ (c) a dot . (d) a slash /
  17. 17.🔢 In a basic web page file, which comes first: “<head>” or “<html>”? (a) <head> (b) <html>
  18. 18.📱 max-width: 600px applies when the screen is ___. (a) turned off (b) 600px or narrower (c) exactly 1000px (d) 600px or wider
  19. 19.🌈 In #00002e the blue part is the hex number 2e. What is it as a normal number?
  20. 20.📝 Which tag holds a whole form? (a) <form> (b) <input> (c) <ol> (d) <table>
  21. 21.What is <input type="email"> for? (a) hides what you type (b) takes only numbers (c) is for an email address (d) lets you pick only one
  22. 22.🏷️ Every HTML tag starts with which sign? (a) < (b) [ (c) { (d) (
  23. 23.✍️ Which property is set to red in this rule?
    h1 {
      margin: 10px;
      color: red;
      text-align: center;
    }
    (a) font-size (b) color (c) text-align (d) red
  24. 24.True or false: HTML on its own can add pictures to a page. (a) False (b) True
  25. 25.🔍 Which line is missing its closing tag?
    line 1: <i>Hello, world!</i>
    line 2: <small>I love mangoes.</small>
    line 3: <h1>Cricket is fun.
    (a) line 1 (b) line 2 (c) line 3
  26. 26.📱 The screen is 414px wide. What font-size (px) does the paragraph get?
    p {
      font-size: 16px;
    }
    @media (max-width: 480px) {
      p {
        font-size: 12px;
      }
    }
  27. 27.True or false: in <img>, src tells which image to load. (a) True (b) False
  28. 28.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="fort.jpg" alt="An old fort" width="350">
    (a) A tiger asleep (b) width (c) An old fort (d) fort.jpg
  29. 29.📝 Which tag makes a big box for many lines of text? (a) <p> (b) <br> (c) <textarea> (d) <input>
  30. 30.♿ Is this heading order correct (no level skipped)?
    <h1> → <h3> → <h3> → <h4>
    (a) No (b) Yes
  31. 31.♿ Is this heading order correct (no level skipped)?
    <h1> → <h2> → <h4> → <h4>
    (a) Yes (b) No
  32. 32.True or false: <style> goes in the head. (a) True (b) False
  33. 33.True or false: .big is a class selector. (a) True (b) False
  34. 34.🌈 Which hex code is white? (a) #ff00ff (b) #ffff00 (c) #0000ff (d) #ffffff
  35. 35.📦 In the box model, which part is the gap round content? (a) margin (b) padding (c) border (d) content
  36. 36.🔠 How many <h1> headings should a page usually have? (a) 3 (b) 6 (c) 10 (d) 1
  37. 37.🔗 Which attribute holds the address of a link? (a) id (b) href (c) alt (d) src
  38. 38.🌗 Is black on white easy or hard to read? (a) hard to read (b) easy to read
  39. 39.True or false: <ul> is an unordered list. (a) False (b) True
  40. 40.🔢 In a basic web page file, which comes FIRST? (a) </html> (b) <!DOCTYPE html> (c) </head> (d) <head>

Answer key

  1. holds the logo and title
  2. semantic
  3. 4
  4. yellow
  5. 5
  6. Blue@Tiger_74
  7. <title>
  8. No
  9. magenta
  10. <td>
  11. </title>
  12. picks a day
  13. 2
  14. hard to read
  15. <p>
  16. a slash /
  17. <html>
  18. 600px or narrower
  19. 46
  20. <form>
  21. is for an email address
  22. <
  23. color
  24. True
  25. line 3
  26. 12
  27. True
  28. An old fort
  29. <textarea>
  30. No
  31. No
  32. True
  33. True
  34. #ffffff
  35. padding
  36. 1
  37. href
  38. easy to read
  39. True
  40. <!DOCTYPE html>

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