← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 202 · 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 the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Cricket Club</title>
    </head>
    <body>
      <h1>All about me</h1>
      <p>I like to read.</p>
    </body>
    </html>
    (a) All about me (b) index.html (c) Cricket Club (d) I like to read.
  2. 2.💪 How much empty space (px) is before the first box?
    .row {
      display: flex;
      width: 500px;
      justify-content: center;
    }
    Inside are 4 boxes, each 100px wide (no margins).
  3. 3.🔠 Which heading shows the BIGGEST text: <h1>, <h4>, <h3> or <h5>? (a) <h4> (b) <h3> (c) <h1> (d) <h5>
  4. 4.⚡ What number does this code print?
    let coins = 19;
    coins = coins + 15;
    coins = coins - 3;
    console.log(coins);
  5. 5.💪 How wide (px) is each gap between two boxes?
    .row {
      display: flex;
      width: 320px;
      justify-content: space-between;
    }
    Inside are 3 boxes, each 100px wide (no margins).
  6. 6.🔗 What does HyperText mean? (a) secret text (b) text with links (c) text in colour (d) very big text
  7. 7.🛡️ Before typing a password on a site, check the address starts with ___. (a) www (b) ftp (c) http (d) https
  8. 8.🔡 Are HTML tag names usually written in small letters? (a) Yes (b) No
  9. 9.💬 Which text will NOT show on the page?
    <p>My pets</p>
    <!-- <p>Rain today</p> -->
    <p>Cricket is fun.</p>
    (a) My pets (b) Cricket is fun. (c) Rain today
  10. 10.True or false: padding is space inside the border. (a) True (b) False
  11. 11.🎯 Which sign starts an id selector? (a) & (b) @ (c) . (d) #
  12. 12.⚖️ Which selector is the weakest? (a) a class selector (b) an element selector (c) an id selector
  13. 13.What is <input type="submit"> for? (a) hides what you type (b) is for one line of words (c) is for an email address (d) sends the form
  14. 14.⚖️ What colour is the text of this element?
    <p class="menu" id="top">Hi</p>
    CSS:
    #top { color: purple; }
    #top { color: yellow; }
    (a) red (b) yellow (c) orange (d) purple
  15. 15.Which of these does JavaScript do? (a) lays out the page (b) makes a form box (c) changes the page live (d) makes a link
  16. 16.What does justify-content: flex-start do? (a) packs boxes at the start (b) puts boxes in the middle (c) equal gaps, none at ends (d) packs boxes at the end
  17. 17.♿ Who uses a screen reader? (a) only teachers (b) only robots (c) only coders (d) people who are blind
  18. 18.True or false: <input type="checkbox"> hides what you type. (a) True (b) False
  19. 19.🎯 Which element does the selector .menu style? (a) <li id="menu"> (b) <div class="big"> (c) <li class="menu"> (d) <li class="note">
  20. 20.🖌️ What colour is behind the letters?
    h1 {
      text-align: left;
      font-size: 28px;
      color: yellow;
      background-color: black;
    }
    (a) white (b) yellow (c) black
  21. 21.💪 Which flexbox property sets space between boxes? (a) flex-direction (b) justify-content (c) gap (d) align-items
  22. 22.🔢 When you open a web page, which comes FIRST? (a) you type the URL (b) the browser shows it (c) DNS finds the server (d) the server sends files
  23. 23.🔠 Are headings shown in bold by default? (a) No (b) Yes
  24. 24.📦 How much space across (px) does this box take in all, margin included?
    .box {
      width: 280px;
      padding: 30px;
      border: 3px solid black;
      margin: 20px;
    }
  25. 25.🌈 What is the biggest number one colour can have in rgb()? (a) 99 (b) 100 (c) 1000 (d) 255
  26. 26.⚡ A JavaScript file usually ends with which extension? (a) .html (b) .css (c) .jpg (d) .js
  27. 27.📋 Which list shows the steps of a recipe best? (a) <ul> (b) <hr> (c) <br> (d) <ol>
  28. 28.📦 In the box model, which part is the gap round content? (a) border (b) content (c) padding (d) margin
  29. 29.🔢 In a basic web page file, which comes first: “<!DOCTYPE html>” or “</head>”? (a) </head> (b) <!DOCTYPE html>
  30. 30.📄 Can HTML on its own add pictures to a page? (a) No (b) Yes
  31. 31.🌈 Which colour of light is strongest in rgb(86, 173, 57)? (a) blue (b) red (c) green
  32. 32.Which of these is true of <article>? (a) helps you move around (b) holds a side box of tips (c) holds the menu of links (d) holds a news story
  33. 33.🔠 Which heading shows the BIGGEST text: <h1>, <h4>, <h6> or <h3>? (a) <h3> (b) <h6> (c) <h1> (d) <h4>
  34. 34.Which of these is not safe to do online? (a) use a strong password (b) ask before downloading (c) tell a trusted adult (d) meet an online stranger
  35. 35.True or false: <table> gives the table a title. (a) True (b) False
  36. 36.🎯 Can many elements share the same class? (a) Yes (b) No
  37. 37.📊 Are <th> cells shown bold and centred by default? (a) No (b) Yes
  38. 38.💬 How many paragraphs show on the page?
    <!-- <p>Good morning!</p> -->
    <!-- <p>Our school trip</p> -->
    <p>My pets</p>
  39. 39.🔠 How many headings are in this code?
    <h1>Fun facts</h1>
    <p>I love mangoes.</p>
    <p>Hello, world!</p>
  40. 40.🖼️ Which picture file does the browser load?
    <img src="bus.jpg" alt="Our school bus" width="250">
    (a) bus.jpg (b) fort.jpg (c) Our school bus (d) tiger.jpg

Answer key

  1. Cricket Club
  2. 50
  3. <h1>
  4. 31
  5. 10
  6. text with links
  7. https
  8. Yes
  9. Rain today
  10. True
  11. #
  12. an element selector
  13. sends the form
  14. yellow
  15. changes the page live
  16. packs boxes at the start
  17. people who are blind
  18. False
  19. <li class="menu">
  20. black
  21. gap
  22. you type the URL
  23. Yes
  24. 386
  25. 255
  26. .js
  27. <ol>
  28. padding
  29. <!DOCTYPE html>
  30. Yes
  31. green
  32. holds a news story
  33. <h1>
  34. meet an online stranger
  35. False
  36. Yes
  37. Yes
  38. 1
  39. 1
  40. bus.jpg

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