← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 582 · 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.♿ Does this help everyone, or make the page harder to use: write clear link text? (a) makes it harder (b) helps everyone
  2. 2.📝 How many paragraphs does this code make?
    <p>My best friend</p>
    <p>My pets</p>
    <p>Cricket is fun.</p>
  3. 3.🚀 Which program lets you see your web page while you build it? (a) a photo viewer (b) a calculator (c) a web browser (d) a music player
  4. 4.🌗 Is dark grey on white easy or hard to read? (a) easy to read (b) hard to read
  5. 5.📋 Which list tag is an unordered list? (a) <ol> (b) <ul> (c) <li>
  6. 6.🔍 Which is the odd one out? (a) rounds box corners (b) adds space around boxes (c) sets colours and fonts (d) puts a picture on a page
  7. 7.True or false: to think before you post is safe. (a) True (b) False
  8. 8.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>My Hobbies</title>
    </head>
    <body>
      <h1>My drawings</h1>
      <p>Try this poha.</p>
    </body>
    </html>
    (a) My drawings (b) body (c) My Hobbies (d) Try this poha.
  9. 9.⚖️ What colour is the text of this element?
    <p class="note" id="logo">Hi</p>
    CSS:
    #logo { color: orange; }
    #logo { color: blue; }
    (a) yellow (b) blue (c) orange (d) purple
  10. 10.🔁 How many times does this code print “Hi”?
    for (let i = 3; i < 10; i++) {
      console.log("Hi");
    }
  11. 11.📛 In <a href="x.html">, what is href? (a) a closing tag (b) an attribute (c) an element name (d) a comment
  12. 12.🔍 Which is the odd one out? (a) turns HTML into a page (b) shows pages from the web (c) opens web pages for us (d) hosts websites online
  13. 13.🌈 In #000012 the blue part is the hex number 12. What is it as a normal number?
  14. 14.📋 How many items does this list show?
    <ol>
      <li>Jamun</li>
      <li>Papaya</li>
    </ol>
  15. 15.🌍 What does a web address (URL) tell the browser? (a) your password (b) the page colour (c) how old you are (d) where the page is
  16. 16.🔡 Are HTML tag names usually written in small letters? (a) Yes (b) No
  17. 17.🖼️ The picture cannot load. Which text does the browser show instead?
    <img src="map.png" alt="Map of India" width="100">
    (a) map.png (b) Map of India (c) width (d) Birthday cake
  18. 18.🔠 How many headings are in this code?
    <h1>I love mangoes.</h1>
    <h2>Cricket is fun.</h2>
    <h2>Good morning!</h2>
    <h4>The red kite</h4>
    <h3>Rain today</h3>
  19. 19.True or false: “label every form box” helps everyone use the page. (a) False (b) True
  20. 20.🔢 To build and share your first web page, which comes first: “write the HTML” or “test in a browser”? (a) test in a browser (b) write the HTML
  21. 21.🖌️ Where does the text sit on its line?
    h1 {
      background-color: purple;
      font-size: 12px;
      text-align: right;
      color: green;
    }
    (a) on the right (b) in the middle (c) on the left
  22. 22.Which of these is an empty tag? (a) <img> (b) <p> (c) <ul> (d) <h1>
  23. 23.⚖️ What colour is the text of this element?
    <p class="box" id="main">Hi</p>
    CSS:
    .box { color: white; }
    .box { color: orange; }
    (a) orange (b) yellow (c) white (d) purple
  24. 24.True or false: HTML on its own cannot make headings. (a) True (b) False
  25. 25.🔠 How many headings are in this code?
    <h1>The red kite</h1>
    <p>My pets</p>
    <h3>Cricket is fun.</h3>
  26. 26.📄 Where does <a> go: in the head or in the body? (a) in the head (b) in the body
  27. 27.📋 Which list shows the steps of a recipe best? (a) <br> (b) <ul> (c) <hr> (d) <ol>
  28. 28.Which of these is an opening tag? (a) </b> (b) <p> (c) </li> (d) </body>
  29. 29.🔢 To build and share your first web page, which comes LAST? (a) test in a browser (b) add CSS styles (c) publish it online (d) plan what to show
  30. 30.True or false: <caption> makes one table row. (a) True (b) False
  31. 31.⚡ What does JavaScript add to a web page? (a) the page title (b) the domain name (c) only colours (d) actions and changes
  32. 32.🛡️ Online: is it safe to tell a trusted adult? (a) not safe (b) safe
  33. 33.🖌️ What colour is behind the letters?
    p {
      color: white;
      font-size: 20px;
      background-color: red;
      text-align: left;
    }
    (a) red (b) green (c) white
  34. 34.⚡ What number does this code print?
    let runs = 9;
    runs = runs + 18;
    runs = runs - 2;
    console.log(runs);
  35. 35.🌍 What is the path in this URL?
    http://school.example.in/news/today.html
    (a) http (b) school.example.in (c) /games/chess.html (d) /news/today.html
  36. 36.True or false: <input type="number"> takes only numbers. (a) True (b) False
  37. 37.📝 How many paragraphs does this code make?
    <p>Rain today</p>
    <p>Our school trip</p>
    <p>Our school trip</p>
  38. 38.True or false: in <img>, alt describes the picture. (a) True (b) False
  39. 39.🔍 One closing tag is missing. Which one?
    <i>Hello, world!</i>
    <h3>My best friend
    <strong>My pets</strong>
    (a) </h2> (b) </strong> (c) </h3> (d) </i>
  40. 40.📝 You type 5 spaces between two words in a <p>. How does the browser show them? (a) as a dot (b) as one space (c) as a new line (d) as 5 spaces

Answer key

  1. helps everyone
  2. 3
  3. a web browser
  4. easy to read
  5. <ul>
  6. puts a picture on a page
  7. True
  8. My drawings
  9. blue
  10. 7
  11. an attribute
  12. hosts websites online
  13. 18
  14. 2
  15. where the page is
  16. Yes
  17. Map of India
  18. 5
  19. True
  20. write the HTML
  21. on the right
  22. <img>
  23. orange
  24. False
  25. 2
  26. in the body
  27. <ol>
  28. <p>
  29. publish it online
  30. False
  31. actions and changes
  32. safe
  33. red
  34. 25
  35. /news/today.html
  36. True
  37. 3
  38. True
  39. </h3>
  40. as one space

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