← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 549 · 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.🔢 To build and share your first web page, what comes right after “test in a browser”? (a) plan what to show (b) publish it online (c) write the HTML (d) add CSS styles
  2. 2.💬 How does an HTML comment start? (a) /* (b) // (c) # (d) <!--
  3. 3.🖼️ Which picture file does the browser load?
    <img src="map.png" alt="Map of India" width="250">
    (a) Map of India (b) map.png (c) cake.jpg (d) dog.jpg
  4. 4.🚀 Which file should this code go in: p { color: red; } (a) script.js (b) style.css (c) index.html
  5. 5.True or false: <table> holds the whole table. (a) True (b) False
  6. 6.📋 Which list tag shows bullet points? (a) <li> (b) <ol> (c) <ul>
  7. 7.🔍 One closing tag is missing. Which one?
    <small>My pets</small>
    <h1>Good morning!
    <p>Our school trip</p>
    (a) </small> (b) </p> (c) </i> (d) </h1>
  8. 8.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="kite.png" alt="A red kite" width="250">
    (a) A red kite (b) Map of India (c) kite.png (d) width
  9. 9.💬 Which text will NOT show on the page?
    <!-- <p>Rain today</p> -->
    <p>Cricket is fun.</p>
    <p>I love mangoes.</p>
    (a) Rain today (b) Cricket is fun. (c) I love mangoes.
  10. 10.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="map.png" alt="Map of India" width="100">
    (a) Birthday cake (b) Map of India (c) width (d) map.png
  11. 11.🔗 What does target="_blank" do to a link? (a) makes it bold (b) hides the link (c) makes it blank (d) opens it in a new tab
  12. 12.🖌️ How big is the text, in px?
    li {
      background-color: yellow;
      text-align: center;
      font-size: 36px;
      color: white;
    }
  13. 13.✍️ In color: blue; which part is the property? (a) : (b) ; (c) color (d) blue
  14. 14.True or false: the server stores the site’s files. (a) True (b) False
  15. 15.⚡ Which JavaScript word repeats code? (a) if (b) for (c) console.log() (d) alert()
  16. 16.⚡ What number does this code print?
    let a = 13;
    let b = 13;
    console.log(a - b);
  17. 17.💬 How many paragraphs show on the page?
    <!-- <p>Our school trip</p> -->
    <p>Good morning!</p>
    <!-- <p>Fun facts</p> -->
  18. 18.🎨 Which attribute adds CSS inside one tag? (a) alt (b) href (c) src (d) style
  19. 19.🌍 What do we call the computer that stores a website? (a) a keyboard (b) a printer (c) a mouse (d) a server
  20. 20.✍️ Which property is set to 2px solid in this rule?
    .box {
      margin: 10px;
      border: 2px solid;
    }
    (a) 2px solid (b) width (c) border (d) font-style
  21. 21.🔁 How many times does this code print “Hello”?
    for (let i = 3; i <= 6; i++) {
      console.log("Hello");
    }
  22. 22.🔤 In “HTML”, what does the M stand for? (a) Markup (b) Mouse (c) Machine (d) Modern
  23. 23.📋 Does this list show bullets or numbers?
    <ol>
      <li>Mango</li>
      <li>Guava</li>
    </ol>
    (a) numbers (b) bullets
  24. 24.🔁 Which word runs code only when something is true? (a) log (b) if (c) let (d) for
  25. 25.Which of these is a strong password? (a) 111111 (b) 123456 (c) abcd1234 (d) Mango#Kite29!
  26. 26.True or false: in <img>, width sets how wide it is. (a) True (b) False
  27. 27.True or false: HTML checks a quiz answer. (a) True (b) False
  28. 28.True or false: to post your home address is not safe. (a) True (b) False
  29. 29.Which of these is a closing tag? (a) <body> (b) </li> (c) <title> (d) <h1>
  30. 30.📄 Which part holds everything you see on the page? (a) the head (b) the body (c) the doctype (d) the title
  31. 31.🔍 Which is the odd one out? (a) reacts to a button click (b) gives the page structure (c) makes a form box (d) puts a picture on a page
  32. 32.🚀 What is the home page file of a website usually called? (a) start.js (b) home.css (c) main.png (d) index.html
  33. 33.🏷️ Every HTML tag starts with which sign? (a) ( (b) { (c) [ (d) <
  34. 34.🔠 Which heading shows the SMALLEST text: <h5>, <h3>, <h1> or <h6>? (a) <h5> (b) <h1> (c) <h6> (d) <h3>
  35. 35.📱 The screen is 700px wide. What font-size (px) does the paragraph get?
    p {
      font-size: 24px;
    }
    @media (max-width: 768px) {
      p {
        font-size: 22px;
      }
    }
  36. 36.Which of these is a weak password? (a) Mango#Kite29! (b) Rain#Drop_42! (c) Chai$Cup_19x (d) qwerty
  37. 37.🔁 How many times does this code print “Hello”?
    for (let i = 0; i <= 9; i++) {
      console.log("Hello");
    }
  38. 38.⚡ What does this code show?
    let name = "Zoya";
    alert("Welcome, " + name + "!");
    (a) Welcome, name! (b) Zoya (c) name (d) Welcome, Zoya!
  39. 39.🖼️ Which tag puts a picture on a page? (a) <pic> (b) <a> (c) <p> (d) <img>
  40. 40.🔠 Which heading shows the BIGGEST text: <h5>, <h1>, <h2> or <h3>? (a) <h5> (b) <h1> (c) <h3> (d) <h2>

Answer key

  1. publish it online
  2. <!--
  3. map.png
  4. style.css
  5. True
  6. <ul>
  7. </h1>
  8. A red kite
  9. Rain today
  10. Map of India
  11. opens it in a new tab
  12. 36
  13. color
  14. True
  15. for
  16. 0
  17. 1
  18. style
  19. a server
  20. border
  21. 4
  22. Markup
  23. numbers
  24. if
  25. Mango#Kite29!
  26. True
  27. False
  28. True
  29. </li>
  30. the body
  31. reacts to a button click
  32. index.html
  33. <
  34. <h6>
  35. 22
  36. qwerty
  37. 10
  38. Welcome, Zoya!
  39. <img>
  40. <h1>

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