← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 806 · 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: in <img>, width tells which image to load. (a) True (b) False
  2. 2.📋 Which list shows the steps of a recipe best? (a) <hr> (b) <ol> (c) <br> (d) <ul>
  3. 3.📋 Which list tag lists steps in order? (a) <ol> (b) <ul> (c) <li>
  4. 4.🎯 Which sign starts an id selector? (a) @ (b) & (c) # (d) .
  5. 5.Which of these is an opening tag? (a) <li> (b) </title> (c) </li> (d) </body>
  6. 6.🌈 Hex digits go 0 to 9, then A to which letter? (a) J (b) Z (c) G (d) F
  7. 7.📊 Which tag gives the table a title? (a) <tr> (b) <td> (c) <caption> (d) <table>
  8. 8.📄 Where does <ul> go: in the head or in the body? (a) in the body (b) in the head
  9. 9.🏷️ What does a closing tag have that an opening tag does not? (a) a slash / (b) a dot . (c) a dollar $ (d) a hash #
  10. 10.True or false: <li> lists things in any order. (a) True (b) False
  11. 11.🔁 What is the LAST number this code prints?
    for (let i = 0; i < 19; i = i + 2) {
      console.log(i);
    }
  12. 12.True or false: the border is the text or picture. (a) False (b) True
  13. 13.🌍 What finds the server for a domain name like example.com? (a) CSS (b) HTML (c) alt (d) DNS
  14. 14.Which of these has a closing tag? (a) <img> (b) <meta> (c) <ul> (d) <hr>
  15. 15.True or false: in <img>, alt tells which image to load. (a) False (b) True
  16. 16.True or false: HTTPS stores the site’s files. (a) True (b) False
  17. 17.♿ Does this help everyone, or make the page harder to use: label every form box? (a) makes it harder (b) helps everyone
  18. 18.⚖️ What colour is the text of this element?
    <h1 class="note" id="intro">Hi</h1>
    CSS:
    h1 { color: white; }
    h1 { color: green; }
    (a) white (b) orange (c) purple (d) green
  19. 19.📝 What does a password box show instead of letters? (a) dots (b) numbers (c) emojis (d) capital letters
  20. 20.🔠 How many headings are in this code?
    <h1>My pets</h1>
    <p>Our school trip</p>
    <p>The red kite</p>
    <h2>Fun facts</h2>
    <p>I love mangoes.</p>
  21. 21.🏷️ Which is the closing tag for <h2>? (a) <h2> (b) <\h2> (c) </h2> (d) <h2/>
  22. 22.🖌️ Which CSS property makes letters bigger? (a) font-weight (b) color (c) font-size (d) background-color
  23. 23.Which of these is padding? (a) space outside the border (b) the text or picture (c) the gap to other boxes (d) space inside the border
  24. 24.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Class 7 Blog</title>
    </head>
    <body>
      <h1>Planets</h1>
      <p>I like to read.</p>
    </body>
    </html>
    (a) I like to read. (b) Class 7 Blog (c) Planets (d) body
  25. 25.🌈 Which colour is #00ff00? (a) magenta (b) red (c) bright green (d) black
  26. 26.⚡ What does this code print? (Look at the quotes!)
    let x = "8";
    let y = 9;
    console.log(x + y);
    (a) 17 (b) Error (c) 89
  27. 27.Which of these is true of <article>? (a) helps you move around (b) holds one blog post (c) is the page’s key part (d) sits at the very top
  28. 28.🖌️ What colour is behind the letters?
    h1 {
      text-align: left;
      background-color: green;
      color: red;
      font-size: 16px;
    }
    (a) red (b) green (c) yellow
  29. 29.True or false: a web server answers page requests. (a) True (b) False
  30. 30.🔠 Which heading shows the SMALLEST text: <h6>, <h1>, <h5> or <h2>? (a) <h5> (b) <h6> (c) <h2> (d) <h1>
  31. 31.📋 Which tag goes around each item of a list? (a) <ul> (b) <li> (c) <ol> (d) <p>
  32. 32.📦 How much space top to bottom (px) does this box take in all, margin included?
    .box {
      height: 160px;
      padding: 5px;
      border: 1px solid black;
      margin: 0px;
    }
  33. 33.📝 At most, how many of these can be chosen at the same time?
    <form>
      <input type="checkbox" name="fruit"> Guava
      <input type="checkbox" name="fruit"> Litchi
      <input type="checkbox" name="fruit"> Mango
    </form>
  34. 34.What does text-align do? (a) picks the font style (b) sets the letter colour (c) makes letters bigger (d) centres a heading
  35. 35.🎨 What does CSS stand for? (a) Creative Sheet System (b) Cascading Style Sheets (c) Colourful Site Styles (d) Computer Style Sheets
  36. 36.🎯 Which element does the selector #logo style? (a) <div id="end"> (b) <span class="note"> (c) <div id="logo"> (d) <div class="logo">
  37. 37.True or false: <th> makes a heading cell. (a) False (b) True
  38. 38.📱 max-width: 600px applies when the screen is ___. (a) 600px or wider (b) turned off (c) 600px or narrower (d) exactly 1000px
  39. 39.🖌️ What colour is behind the letters?
    li {
      color: red;
      background-color: white;
      text-align: left;
      font-size: 40px;
    }
    (a) white (b) red (c) yellow
  40. 40.💬 Which text will NOT show on the page?
    <!-- <p>Hello, world!</p> -->
    <p>My best friend</p>
    <p>My pets</p>
    (a) Hello, world! (b) My best friend (c) My pets

Answer key

  1. False
  2. <ol>
  3. <ol>
  4. #
  5. <li>
  6. F
  7. <caption>
  8. in the body
  9. a slash /
  10. False
  11. 18
  12. False
  13. DNS
  14. <ul>
  15. False
  16. False
  17. helps everyone
  18. green
  19. dots
  20. 2
  21. </h2>
  22. font-size
  23. space inside the border
  24. Planets
  25. bright green
  26. 89
  27. holds one blog post
  28. green
  29. True
  30. <h6>
  31. <li>
  32. 172
  33. 3
  34. centres a heading
  35. Cascading Style Sheets
  36. <div id="logo">
  37. True
  38. 600px or narrower
  39. white
  40. Hello, world!

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