← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 384 · 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.📝 What does <br> do? (a) makes text bold (b) starts a new line (c) adds a picture (d) makes a list
  2. 2.🔢 To build and share your first web page, which comes first: “publish it online” or “plan what to show”? (a) publish it online (b) plan what to show
  3. 3.🔠 Which heading shows the BIGGEST text: <h2>, <h4>, <h6> or <h3>? (a) <h6> (b) <h2> (c) <h3> (d) <h4>
  4. 4.🌈 Which hex code is cyan? (a) #00ffff (b) #ff0000 (c) #00ff00 (d) #ffffff
  5. 5.🔍 One closing tag is missing. Which one?
    <i>The red kite</i>
    <h3>Hello, world!
    <p>My best friend</p>
    (a) </u> (b) </h3> (c) </i> (d) </p>
  6. 6.⚡ What number does this code print?
    let score = 6;
    score = score + 2;
    score = score - 1;
    console.log(score);
  7. 7.✍️ CSS declarations go inside which brackets? (a) [ ] (b) ( ) (c) < > (d) { }
  8. 8.🚀 Which file should this code go in: score = score + 1; (a) style.css (b) script.js (c) index.html
  9. 9.📋 Which list suits a shopping list in any order? (a) <hr> (b) <br> (c) <ul> (d) <ol>
  10. 10.True or false: <input type="checkbox"> picks a day. (a) False (b) True
  11. 11.🧭 Why use <nav> instead of <div> for a menu? (a) it tells its meaning (b) it makes text red (c) it loads faster (d) it adds pictures
  12. 12.📦 How much space top to bottom (px) does this box take in all, margin included?
    .box {
      height: 160px;
      padding: 30px;
      border: 3px solid black;
      margin: 5px;
    }
  13. 13.True or false: <br> has a closing tag. (a) False (b) True
  14. 14.🔁 When does the else part run? (a) never (b) always (c) when if is true (d) when if is false
  15. 15.📋 Which tag goes around each item of a list? (a) <ol> (b) <p> (c) <li> (d) <ul>
  16. 16.Which of these is a strong password? (a) abcd1234 (b) Mango#Kite29! (c) password (d) 123456
  17. 17.🔗 Which address opens when you click this link?
    <a href="news.html">About us</a>
    (a) quiz.html (b) news.html (c) About us (d) games.html
  18. 18.🔢 To build and share your first web page, which comes LAST? (a) add CSS styles (b) write the HTML (c) plan what to show (d) publish it online
  19. 19.💬 Can anyone read your comments by viewing the page source? (a) Yes (b) No
  20. 20.True or false: <input> has a closing tag. (a) True (b) False
  21. 21.🔁 What number does this code print?
    let total = 0;
    for (let i = 1; i <= 8; i++) {
      total = total + 6;
    }
    console.log(total);
  22. 22.⚡ Where does console.log() show its output? (a) on the printer (b) on the title bar (c) in the console (d) in the address bar
  23. 23.True or false: margin is a solid or dotted edge. (a) False (b) True
  24. 24.🧭 Which semantic tag holds the menu of links? (a) <aside> (b) <nav> (c) <header> (d) <main>
  25. 25.🌈 Which colour is rgb(255, 255, 255)? (a) white (b) magenta (c) cyan (d) yellow
  26. 26.🔁 What number does this code print?
    let total = 0;
    for (let i = 1; i <= 4; i++) {
      total = total + 7;
    }
    console.log(total);
  27. 27.🔢 In a basic web page file, which comes FIRST? (a) <head> (b) <!DOCTYPE html> (c) </html> (d) </head>
  28. 28.⚡ Which tag holds JavaScript in a page? (a) <js> (b) <style> (c) <code> (d) <script>
  29. 29.What does font-weight do? (a) makes the text bold (b) centres a heading (c) sets the letter colour (d) makes letters bigger
  30. 30.✍️ Which sign goes between a property and its value? (a) ; (b) : (c) = (d) -
  31. 31.⚡ Which word makes a new variable? (a) make (b) give (c) let (d) put
  32. 32.⚖️ What colour is the text of this element?
    <h2 class="big" id="main">Hi</h2>
    CSS:
    h2 { color: red; }
    h2 { color: green; }
    (a) green (b) orange (c) red (d) blue
  33. 33.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>My Hobbies</title>
    </head>
    <body>
      <h1>Welcome!</h1>
      <p>Mars is red.</p>
    </body>
    </html>
    (a) My Hobbies (b) body (c) Mars is red. (d) Welcome!
  34. 34.📄 Where does the text of <title> appear? (a) nowhere (b) in a big heading (c) at the bottom (d) on the browser tab
  35. 35.🖼️ Which picture file does the browser load?
    <img src="bus.jpg" alt="Our school bus" width="50">
    (a) fort.jpg (b) Our school bus (c) tiger.jpg (d) bus.jpg
  36. 36.📝 Which tag holds a whole form? (a) <form> (b) <input> (c) <table> (d) <ol>
  37. 37.🎨 Which attribute adds CSS inside one tag? (a) href (b) src (c) alt (d) style
  38. 38.🏷️ What does a closing tag have that an opening tag does not? (a) a slash / (b) a hash # (c) a dot . (d) a dollar $
  39. 39.🔢 To build and share your first web page, which comes first: “plan what to show” or “test in a browser”? (a) test in a browser (b) plan what to show
  40. 40.🔒 Is the connection to this address scrambled (encrypted)?
    https://school.example.in/games/chess.html
    (a) Yes (b) No

Answer key

  1. starts a new line
  2. plan what to show
  3. <h2>
  4. #00ffff
  5. </h3>
  6. 7
  7. { }
  8. script.js
  9. <ul>
  10. False
  11. it tells its meaning
  12. 236
  13. False
  14. when if is false
  15. <li>
  16. Mango#Kite29!
  17. news.html
  18. publish it online
  19. Yes
  20. False
  21. 48
  22. in the console
  23. False
  24. <nav>
  25. white
  26. 28
  27. <!DOCTYPE html>
  28. <script>
  29. makes the text bold
  30. :
  31. let
  32. green
  33. Welcome!
  34. on the browser tab
  35. bus.jpg
  36. <form>
  37. style
  38. a slash /
  39. plan what to show
  40. Yes

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