← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 492 · 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.🖼️ How many pixels wide is the picture drawn?
    <img src="kite.png" alt="A red kite" width="350">
  2. 2.⚡ Which JavaScript word runs code when true? (a) for (b) let (c) console.log() (d) if
  3. 3.🌈 Which colour is #00ffff? (a) cyan (b) red (c) blue (d) magenta
  4. 4.🛡️ Online: is it safe to keep passwords secret? (a) not safe (b) safe
  5. 5.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Class 7 Blog</title>
    </head>
    <body>
      <h1>Planets</h1>
      <p>Here is my best one.</p>
    </body>
    </html>
    (a) Here is my best one. (b) Class 7 Blog (c) index.html (d) Planets
  6. 6.📋 Which list tag is an ordered list? (a) <ol> (b) <li> (c) <ul>
  7. 7.🔠 Which heading shows the BIGGEST text: <h4>, <h1>, <h6> or <h2>? (a) <h2> (b) <h4> (c) <h6> (d) <h1>
  8. 8.🌈 Which colour of light is strongest in rgb(210, 73, 35)? (a) green (b) red (c) blue
  9. 9.💬 How many paragraphs show on the page?
    <!-- <p>Hello, world!</p> -->
    <p>Fun facts</p>
    <p>The red kite</p>
  10. 10.⚡ What number does this code print?
    let score = 21;
    score = score + 6;
    score = score - 6;
    console.log(score);
  11. 11.📄 Where does <ul> go: in the head or in the body? (a) in the head (b) in the body
  12. 12.📊 How many cells does this table have in all?
    <table>
      <tr><td>Papaya</td><td>Papaya</td><td>Litchi</td></tr>
      <tr><td>Papaya</td><td>Mango</td><td>Grapes</td></tr>
    </table>
  13. 13.Which of these is true of <footer>? (a) sits at the bottom (b) sits at the very top (c) holds the logo and title (d) holds one blog post
  14. 14.🖌️ Which CSS property makes letters bigger? (a) font-family (b) font-size (c) font-weight (d) text-align
  15. 15.♿ A part of the page is under a <h2> heading. Which tag should its sub-heading use? (a) <h1> (b) <h3> (c) <h5> (d) <h4>
  16. 16.Which colour pair is hard to read? (a) white on black (b) light grey on white (c) dark grey on white (d) black on white
  17. 17.⚖️ What colour is the text of this element?
    <p class="note" id="top">Hi</p>
    CSS:
    p { color: black; }
    p { color: yellow; }
    (a) black (b) orange (c) red (d) yellow
  18. 18.Which of these is true of a web server? (a) turns HTML into a page (b) colours code to help us (c) hosts websites online (d) has an address bar
  19. 19.🔗 Which words do you click on?
    <a href="quiz.html">Visit the site</a>
    (a) quiz.html (b) href (c) Maths fun (d) Visit the site
  20. 20.📛 In <a href="x.html">, what is href? (a) an element name (b) a comment (c) an attribute (d) a closing tag
  21. 21.🌍 Which one asks for a web page? (a) HTTPS (b) the browser (c) the server (d) the URL
  22. 22.🔠 Which heading shows the SMALLEST text: <h2>, <h3>, <h5> or <h6>? (a) <h5> (b) <h3> (c) <h2> (d) <h6>
  23. 23.🔠 Which tag is the least important heading? (a) <h6> (b) <h3> (c) <h1> (d) <p>
  24. 24.🔍 One closing tag is missing. Which one?
    <h1>Cricket is fun.
    <i>The red kite</i>
    <h2>My best friend</h2>
    (a) </i> (b) </h2> (c) </em> (d) </h1>
  25. 25.🔐 Is Chai$Cup_19x a strong or a weak password? (a) strong (b) weak
  26. 26.🌍 Which one is the page’s address? (a) the browser (b) the URL (c) the server (d) HTTPS
  27. 27.📋 Which list tag is an unordered list? (a) <ul> (b) <li> (c) <ol>
  28. 28.Which of these is the content? (a) the line round the box (b) space inside the border (c) the text or picture (d) the gap to other boxes
  29. 29.📱 The screen is 700px wide. What font-size (px) does the paragraph get?
    p {
      font-size: 20px;
    }
    @media (min-width: 600px) {
      p {
        font-size: 28px;
      }
    }
  30. 30.🚀 Which file should this code go in: <img src="cat.png"> (a) style.css (b) index.html (c) script.js
  31. 31.🧭 Which semantic tag sits at the bottom? (a) <footer> (b) <nav> (c) <aside> (d) <header>
  32. 32.🔠 How many headings are in this code?
    <h1>Cricket is fun.</h1>
    <p>The red kite</p>
    <p>Fun facts</p>
    <p>Fun facts</p>
  33. 33.💬 How many paragraphs show on the page?
    <!-- <p>Fun facts</p> -->
    <p>My pets</p>
    <!-- <p>Our school trip</p> -->
  34. 34.♿ Which link text is clearest? (a) Read the fruit facts (b) here (c) click here (d) link
  35. 35.🌍 Which one stores the site’s files? (a) HTTPS (b) the URL (c) the server (d) the browser
  36. 36.📝 Which input type lets you tick many? (a) date (b) checkbox (c) password (d) text
  37. 37.🚀 Which file should this code go in: alert(score); (a) script.js (b) style.css (c) index.html
  38. 38.🔗 Which code links to about.html? (a) <a src="about.html"> (b) <a alt="about.html"> (c) <link about.html> (d) <a href="about.html">
  39. 39.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>My Hobbies</title>
    </head>
    <body>
      <h1>My drawings</h1>
      <p>I like to read.</p>
    </body>
    </html>
    (a) My drawings (b) index.html (c) My Hobbies (d) I like to read.
  40. 40.🌈 Which colour of light is strongest in rgb(22, 85, 176)? (a) blue (b) red (c) green

Answer key

  1. 350
  2. if
  3. cyan
  4. safe
  5. Class 7 Blog
  6. <ol>
  7. <h1>
  8. red
  9. 2
  10. 21
  11. in the body
  12. 6
  13. sits at the bottom
  14. font-size
  15. <h3>
  16. light grey on white
  17. yellow
  18. hosts websites online
  19. Visit the site
  20. an attribute
  21. the browser
  22. <h6>
  23. <h6>
  24. </h1>
  25. strong
  26. the URL
  27. <ul>
  28. the text or picture
  29. 28
  30. index.html
  31. <footer>
  32. 1
  33. 1
  34. Read the fruit facts
  35. the server
  36. checkbox
  37. script.js
  38. <a href="about.html">
  39. My Hobbies
  40. blue

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