← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 697 · 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: <title> goes in the head. (a) True (b) False
  2. 2.🔢 To build and share your first web page, what comes right after “test in a browser”? (a) write the HTML (b) add CSS styles (c) publish it online (d) plan what to show
  3. 3.True or false: <hr> has a closing tag. (a) True (b) False
  4. 4.🎨 Which tag connects an outside CSS file? (a) <a> (b) <img> (c) <link> (d) <css>
  5. 5.🔁 Which loop repeats code a set number of times? (a) else (b) let (c) if (d) for
  6. 6.📝 You type 5 spaces between two words in a <p>. How does the browser show them? (a) as 5 spaces (b) as one space (c) as a dot (d) as a new line
  7. 7.🧩 Which language counts down a timer? (a) CSS (b) JavaScript (c) HTML
  8. 8.⚖️ What colour is the text of this element?
    <p class="box" id="intro">Hi</p>
    CSS:
    p { color: green; }
    #intro { color: red; }
    (a) red (b) yellow (c) orange (d) green
  9. 9.⚖️ What colour is the text of this element?
    <p class="big" id="end">Hi</p>
    CSS:
    p { color: green; }
    .big { color: orange; }
    #end { color: black; }
    (a) white (b) black (c) green (d) orange
  10. 10.📋 How many items does this list show?
    <ul>
      <li>Banana</li>
      <li>Guava</li>
      <li>Orange</li>
      <li>Papaya</li>
      <li>Jamun</li>
      <li>Litchi</li>
    </ul>
  11. 11.📦 How much space top to bottom (px) does this box take in all, margin included?
    .box {
      height: 130px;
      padding: 20px;
      border: 3px solid black;
      margin: 20px;
    }
  12. 12.📱 The screen is 820px wide. What font-size (px) does the paragraph get?
    p {
      font-size: 20px;
    }
    @media (min-width: 480px) {
      p {
        font-size: 28px;
      }
    }
  13. 13.Which of these goes in the head? (a) <title> (b) <h1> (c) <a> (d) <img>
  14. 14.🎨 One CSS file can style how many pages? (a) only one word (b) only one image (c) many pages (d) no pages
  15. 15.Which of these has a closing tag? (a) <img> (b) <br> (c) <b> (d) <meta>
  16. 16.📋 Which list tag shows bullet points? (a) <ol> (b) <li> (c) <ul>
  17. 17.True or false: <ul> shows 1, 2, 3 numbers. (a) False (b) True
  18. 18.🔢 To build and share your first web page, which comes LAST? (a) add CSS styles (b) publish it online (c) test in a browser (d) plan what to show
  19. 19.📝 What does <br> do? (a) makes a list (b) adds a picture (c) makes text bold (d) starts a new line
  20. 20.True or false: in <img>, height tells which image to load. (a) True (b) False
  21. 21.💬 Which text will NOT show on the page?
    <!-- <p>Our school trip</p> -->
    <p>Fun facts</p>
    <p>Cricket is fun.</p>
    <p>My best friend</p>
    (a) Our school trip (b) Cricket is fun. (c) My best friend (d) Fun facts
  22. 22.True or false: the URL scrambles data on its way. (a) True (b) False
  23. 23.🌍 Which one asks for a web page? (a) the browser (b) the server (c) HTTPS (d) the URL
  24. 24.📦 How wide (px) is this box from the outer edge of its left border to the outer edge of its right border?
    .box {
      width: 210px;
      padding: 15px;
      border: 5px solid black;
      margin: 5px;
    }
  25. 25.📝 How many paragraphs does this code make?
    <p>Fun facts</p>
    <h2>My best friend</h2>
    <h2>Fun facts</h2>
    <h2>Fun facts</h2>
    <h2>My best friend</h2>
    <p>Cricket is fun.</p>
  26. 26.📦 How much space across (px) does this box take in all, margin included?
    .box {
      width: 110px;
      padding: 15px;
      border: 4px solid black;
      margin: 0px;
    }
  27. 27.🏷️ Every HTML tag starts with which sign? (a) [ (b) { (c) < (d) (
  28. 28.What is <input type="email"> for? (a) picks a day (b) lets you pick only one (c) is for an email address (d) hides what you type
  29. 29.📄 Where does <meta charset="utf-8"> go: in the head or in the body? (a) in the head (b) in the body
  30. 30.💬 How many paragraphs show on the page?
    <p>Rain today</p>
    <p>The red kite</p>
    <!-- <p>My pets</p> -->
  31. 31.🔠 How many headings are in this code?
    <h1>Cricket is fun.</h1>
    <p>The red kite</p>
    <p>Rain today</p>
    <h3>Rain today</h3>
  32. 32.What does font-family do? (a) centres a heading (b) makes the text bold (c) colours behind the text (d) picks the font style
  33. 33.💪 Which justify-content value packs boxes at the start? (a) flex-end (b) flex-start (c) center (d) space-between
  34. 34.True or false: <li> goes inside ul or ol. (a) False (b) True
  35. 35.🌍 What is the protocol in this URL?
    http://www.example.net/maths/tables.html
    (a) /maths/tables.html (b) www.example.net (c) https (d) http
  36. 36.🌐 Which one is where we type code? (a) a code editor (b) a web server (c) a web browser
  37. 37.🔍 Which is the odd one out? (a) changes the page live (b) rounds box corners (c) checks a quiz answer (d) counts down a timer
  38. 38.🔠 Which heading shows the SMALLEST text: <h6>, <h4>, <h5> or <h1>? (a) <h4> (b) <h5> (c) <h6> (d) <h1>
  39. 39.True or false: in <img>, height describes the picture. (a) True (b) False
  40. 40.🏷️ What does a closing tag have that an opening tag does not? (a) a dot . (b) a slash / (c) a dollar $ (d) a hash #

Answer key

  1. True
  2. publish it online
  3. False
  4. <link>
  5. for
  6. as one space
  7. JavaScript
  8. red
  9. black
  10. 6
  11. 216
  12. 28
  13. <title>
  14. many pages
  15. <b>
  16. <ul>
  17. False
  18. publish it online
  19. starts a new line
  20. False
  21. Our school trip
  22. False
  23. the browser
  24. 250
  25. 2
  26. 148
  27. <
  28. is for an email address
  29. in the head
  30. 2
  31. 2
  32. picks the font style
  33. flex-start
  34. True
  35. http
  36. a code editor
  37. rounds box corners
  38. <h6>
  39. False
  40. a slash /

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