← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 117 · 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 lays out the page. (a) False (b) True
  2. 2.🌈 Which colour is #00ffff? (a) red (b) cyan (c) white (d) black
  3. 3.🔗 Where does this link open?
    <a href="quiz.html">Contact us</a>
    (a) in a new tab (b) in the same tab
  4. 4.📱 The screen is 375px wide. What font-size (px) does the paragraph get?
    p {
      font-size: 12px;
    }
    @media (min-width: 1024px) {
      p {
        font-size: 20px;
      }
    }
  5. 5.🖼️ How many pixels wide is the picture drawn?
    <img src="fort.jpg" alt="An old fort" width="50">
  6. 6.🔠 How many heading levels does HTML have? (a) 4 (b) 10 (c) 6 (d) 3
  7. 7.Which of these is not safe to do online? (a) post your home address (b) keep passwords secret (c) use a nickname in games (d) log out on shared PCs
  8. 8.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Art Gallery</title>
    </head>
    <body>
      <h1>Welcome!</h1>
      <p>Try this poha.</p>
    </body>
    </html>
    (a) Try this poha. (b) body (c) Welcome! (d) Art Gallery
  9. 9.True or false: a code editor is where we type code. (a) True (b) False
  10. 10.⚖️ What colour is the text of this element?
    <p class="big" id="logo">Hi</p>
    CSS:
    .big { color: red; }
    .big { color: yellow; }
    (a) purple (b) red (c) orange (d) yellow
  11. 11.True or false: <td> holds the whole table. (a) False (b) True
  12. 12.📄 Where does <ul> go: in the head or in the body? (a) in the body (b) in the head
  13. 13.⚡ What does this code show?
    let name = "Arjun";
    alert("Well done, " + name + "!");
    (a) Arjun (b) Well done, Arjun! (c) name (d) Well done, name!
  14. 14.🔐 Is Rain#Drop_42! a strong or a weak password? (a) strong (b) weak
  15. 15.🔍 Which is the odd one out? (a) puts a picture on a page (b) makes a link (c) makes headings and lists (d) checks a quiz answer
  16. 16.🔗 What does HyperText mean? (a) secret text (b) very big text (c) text with links (d) text in colour
  17. 17.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Cricket Club</title>
    </head>
    <body>
      <h1>Planets</h1>
      <p>Thanks for visiting.</p>
    </body>
    </html>
    (a) Thanks for visiting. (b) Cricket Club (c) body (d) Planets
  18. 18.💬 How many paragraphs show on the page?
    <p>I love mangoes.</p>
    <!-- <p>Hello, world!</p> -->
    <!-- <p>My best friend</p> -->
  19. 19.🔗 Which address opens when you click this link?
    <a href="maths.html">About us</a>
    (a) art.html (b) maths.html (c) news.html (d) About us
  20. 20.🎯 Which CSS selector matches this element?
    <span class="big" id="main">Hello</span>
    (a) #big (b) span (c) .main (d) p
  21. 21.Which colour pair is hard to read? (a) white on dark blue (b) pink on red (c) dark grey on white (d) black on white
  22. 22.🖼️ Does <img> need a closing tag? (a) Yes (b) No
  23. 23.🖼️ Why do we add alt text to an image? (a) to load it faster (b) to colour it (c) to describe the image (d) to make it bigger
  24. 24.✍️ Which property is set to center in this rule?
    p {
      text-align: center;
      color: red;
    }
    (a) text-align (b) margin (c) background-color (d) center
  25. 25.📱 The screen is 375px wide. Does the rule inside @media apply?
    p {
      font-size: 20px;
    }
    @media (max-width: 480px) {
      p {
        font-size: 18px;
      }
    }
    (a) No (b) Yes
  26. 26.Which of these is an opening tag? (a) </title> (b) </p> (c) <title> (d) </body>
  27. 27.🌍 What do we call the computer that stores a website? (a) a keyboard (b) a server (c) a mouse (d) a printer
  28. 28.🔢 On a typical page, from top to bottom, which comes LAST? (a) <header> (b) <footer> (c) <main> (d) <nav>
  29. 29.True or false: <li> shows 1, 2, 3 numbers. (a) True (b) False
  30. 30.True or false: <ul> is an empty tag. (a) False (b) True
  31. 31.🌍 What is the domain name in this URL?
    https://kids.example.org/news/today.html
    (a) kids.example.org (b) /news/today.html (c) school.example.in (d) https
  32. 32.True or false: <ul> shows bullet points. (a) False (b) True
  33. 33.🔢 When you open a web page, which comes first: “you type the URL” or “DNS finds the server”? (a) you type the URL (b) DNS finds the server
  34. 34.💬 Which text will NOT show on the page?
    <p>Good morning!</p>
    <!-- <p>Rain today</p> -->
    <p>Cricket is fun.</p>
    (a) Cricket is fun. (b) Rain today (c) Good morning!
  35. 35.📦 In the box model, which part is space inside the border? (a) margin (b) border (c) padding (d) content
  36. 36.🚀 What is the home page file of a website usually called? (a) main.png (b) index.html (c) home.css (d) start.js
  37. 37.📱 The screen is 540px wide. Does the rule inside @media apply?
    p {
      font-size: 12px;
    }
    @media (max-width: 1024px) {
      p {
        font-size: 10px;
      }
    }
    (a) No (b) Yes
  38. 38.📦 How much space top to bottom (px) does this box take in all, margin included?
    .box {
      height: 60px;
      padding: 20px;
      border: 3px solid black;
      margin: 15px;
    }
  39. 39.🔐 Is qwerty a strong or a weak password? (a) strong (b) weak
  40. 40.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Cricket Club</title>
    </head>
    <body>
      <h1>Welcome!</h1>
      <p>I like to read.</p>
    </body>
    </html>
    (a) I like to read. (b) index.html (c) Welcome! (d) Cricket Club

Answer key

  1. False
  2. cyan
  3. in the same tab
  4. 12
  5. 50
  6. 6
  7. post your home address
  8. Welcome!
  9. True
  10. yellow
  11. False
  12. in the body
  13. Well done, Arjun!
  14. strong
  15. checks a quiz answer
  16. text with links
  17. Planets
  18. 1
  19. maths.html
  20. span
  21. pink on red
  22. No
  23. to describe the image
  24. text-align
  25. Yes
  26. <title>
  27. a server
  28. <footer>
  29. False
  30. False
  31. kids.example.org
  32. True
  33. you type the URL
  34. Rain today
  35. padding
  36. index.html
  37. Yes
  38. 136
  39. weak
  40. Cricket Club

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