← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 801 · 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: <td> makes one data cell. (a) True (b) False
  2. 2.♿ Does this help everyone, or make the page harder to use: label every form box? (a) makes it harder (b) helps everyone
  3. 3.🛡️ Online: is it safe to share your password? (a) safe (b) not safe
  4. 4.📝 Does <p> have a closing tag, or is it an empty tag? (a) an empty tag (b) has a closing tag
  5. 5.🔗 What does target="_blank" do to a link? (a) hides the link (b) makes it bold (c) opens it in a new tab (d) makes it blank
  6. 6.⚖️ Two rules with the same selector set a colour. Which one wins? (a) neither (b) the later one (c) the shorter one (d) the first one
  7. 7.Which of these is true of a code editor? (a) stores a website’s files (b) shows line numbers (c) shows pages from the web (d) sends pages over the net
  8. 8.🔠 How many <h1> headings should a page usually have? (a) 3 (b) 6 (c) 1 (d) 10
  9. 9.🔢 On a typical page, from top to bottom, which comes FIRST? (a) <main> (b) <header> (c) <footer> (d) <nav>
  10. 10.🌗 Is white on dark blue easy or hard to read? (a) easy to read (b) hard to read
  11. 11.🌈 How many pairs of hex digits are in a colour like #ff8800? (a) 2 (b) 3 (c) 4 (d) 6
  12. 12.True or false: HTML on its own cannot make tables. (a) True (b) False
  13. 13.🔠 How many headings are in this code?
    <h1>Rain today</h1>
    <h4>The red kite</h4>
    <h3>My pets</h3>
  14. 14.🔁 What does this code print?
    let temp = 7;
    if (temp < 14) {
      console.log("Hot");
    } else {
      console.log("Cool");
    }
    (a) Cool (b) Hot
  15. 15.💬 Why do coders write comments? (a) to make links (b) to show pictures (c) to add colour (d) to leave notes
  16. 16.🖌️ Which CSS property picks the font style? (a) font-family (b) background-color (c) color (d) font-weight
  17. 17.📄 What is the first line of an HTML5 page? (a) <head> (b) <!DOCTYPE html> (c) <body> (d) <html>
  18. 18.🔍 One closing tag is missing. Which one?
    <h3>Cricket is fun.
    <b>Good morning!</b>
    <h2>I love mangoes.</h2>
    (a) </i> (b) </h2> (c) </b> (d) </h3>
  19. 19.📋 How many items does this list show?
    <ol>
      <li>Litchi</li>
      <li>Orange</li>
    </ol>
  20. 20.📋 Which tag goes around each item of a list? (a) <p> (b) <ol> (c) <li> (d) <ul>
  21. 21.🧩 Which language gives the page structure? (a) JavaScript (b) CSS (c) HTML
  22. 22.📋 How many items does this list show?
    <ul>
      <li>Banana</li>
      <li>Papaya</li>
      <li>Guava</li>
      <li>Grapes</li>
    </ul>
  23. 23.🌈 In #010000 the red part is the hex number 01. What is it as a normal number?
  24. 24.🧩 Which language lays out the page? (a) CSS (b) HTML (c) JavaScript
  25. 25.🎯 Which CSS selector matches this element?
    <div class="note" id="main">Hello</div>
    (a) div (b) span (c) .main (d) #logo
  26. 26.📦 In the box model, which part is space inside the border? (a) content (b) margin (c) border (d) padding
  27. 27.🔠 How many headings are in this code?
    <h1>Good morning!</h1>
    <p>My pets</p>
    <p>I love mangoes.</p>
    <p>Hello, world!</p>
  28. 28.What does font-weight do? (a) picks the font style (b) sets the letter colour (c) makes the text bold (d) centres a heading
  29. 29.🎯 What kind of selector is .menu? (a) an id selector (b) an element selector (c) a class selector
  30. 30.🔗 Which words do you click on?
    <a href="contact.html">Take the quiz</a>
    (a) href (b) contact.html (c) Take the quiz (d) Play games
  31. 31.🧭 Which semantic tag holds the menu of links? (a) <main> (b) <footer> (c) <nav> (d) <aside>
  32. 32.✍️ Which property is set to 2px solid in this rule?
    li {
      font-weight: bold;
      border: 2px solid;
      color: red;
      margin: 10px;
    }
    (a) font-style (b) border (c) width (d) 2px solid
  33. 33.🧭 Is <header> semantic or not semantic? (a) semantic (b) not semantic
  34. 34.Which of these is true of <article>? (a) holds a news story (b) helps you move around (c) sits at the very top (d) holds the logo and title
  35. 35.🌍 Which one stores the site’s files? (a) the browser (b) the URL (c) the server (d) HTTPS
  36. 36.🖼️ How many pixels wide is the picture drawn?
    <img src="fort.jpg" alt="An old fort" width="150">
  37. 37.Which of these is an opening tag? (a) </p> (b) <p> (c) </title> (d) </body>
  38. 38.✍️ Which property is set to 300px in this rule?
    li {
      width: 300px;
      font-weight: bold;
    }
    (a) font-style (b) width (c) 300px (d) color
  39. 39.📋 How many items does this list show?
    <ul>
      <li>Papaya</li>
      <li>Banana</li>
      <li>Mango</li>
      <li>Grapes</li>
      <li>Orange</li>
      <li>Litchi</li>
    </ul>
  40. 40.📝 What do we need to write HTML? (a) a paintbrush (b) a printer (c) a plain text editor (d) a microphone

Answer key

  1. True
  2. helps everyone
  3. not safe
  4. has a closing tag
  5. opens it in a new tab
  6. the later one
  7. shows line numbers
  8. 1
  9. <header>
  10. easy to read
  11. 3
  12. False
  13. 3
  14. Hot
  15. to leave notes
  16. font-family
  17. <!DOCTYPE html>
  18. </h3>
  19. 2
  20. <li>
  21. HTML
  22. 4
  23. 1
  24. CSS
  25. div
  26. padding
  27. 1
  28. makes the text bold
  29. a class selector
  30. Take the quiz
  31. <nav>
  32. border
  33. semantic
  34. holds a news story
  35. the server
  36. 150
  37. <p>
  38. width
  39. 6
  40. a plain text editor

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