← Web development final test lesson New set →

Web Development Worksheet: Final Test

HTML and CSS lesson 30: Web development final test · Set 879 · 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.📄 Can HTML on its own run a game loop? (a) Yes (b) No
  2. 2.🔠 How many <h1> headings should a page usually have? (a) 10 (b) 6 (c) 1 (d) 3
  3. 3.📋 Which list shows the steps of a recipe best? (a) <ul> (b) <hr> (c) <ol> (d) <br>
  4. 4.🚀 Which file should this code go in: p { color: red; } (a) script.js (b) index.html (c) style.css
  5. 5.True or false: to check for https first is not safe. (a) False (b) True
  6. 6.🔠 Which tag is used for the main title on a page? (a) <h1> (b) <p> (c) <h6> (d) <br>
  7. 7.True or false: <td> makes one data cell. (a) False (b) True
  8. 8.📝 On how many lines does the browser show this paragraph?
    <p>Rivers flow<br>Kites fly high</p>
  9. 9.🔗 Which attribute holds the address of a link? (a) id (b) src (c) href (d) alt
  10. 10.📝 Does <input> have a closing tag, or is it an empty tag? (a) has a closing tag (b) an empty tag
  11. 11.True or false: margin is the gap to other boxes. (a) True (b) False
  12. 12.True or false: <input type="checkbox"> is for an email address. (a) True (b) False
  13. 13.📋 Which list tag shows bullet points? (a) <li> (b) <ul> (c) <ol>
  14. 14.✍️ What value is given to font-weight in this rule?
    body {
      font-weight: bold;
      background-color: yellow;
    }
    (a) 300px (b) font-weight (c) bold (d) 2px solid
  15. 15.🔠 Which heading shows the SMALLEST text: <h2>, <h1>, <h3> or <h5>? (a) <h5> (b) <h3> (c) <h1> (d) <h2>
  16. 16.True or false: <th> gives the table a title. (a) False (b) True
  17. 17.True or false: the URL is the page’s address. (a) False (b) True
  18. 18.🌐 Which one opens web pages for us? (a) a web server (b) a code editor (c) a web browser
  19. 19.💬 How many paragraphs show on the page?
    <!-- <p>My best friend</p> -->
    <p>I love mangoes.</p>
    <p>Good morning!</p>
  20. 20.True or false: JavaScript sets colours and fonts. (a) True (b) False
  21. 21.True or false: “link text “click here”” makes the page harder to use. (a) True (b) False
  22. 22.🧩 Which language makes a link? (a) HTML (b) JavaScript (c) CSS
  23. 23.💪 Which flexbox property sets space between boxes? (a) justify-content (b) gap (c) align-items (d) flex-direction
  24. 24.🔐 Is abcd1234 a strong or a weak password? (a) strong (b) weak
  25. 25.🌍 Which program shows a web page to us? (a) a paint program (b) a music player (c) a web browser (d) a calculator
  26. 26.What is <input type="email"> for? (a) lets you pick only one (b) sends the form (c) is for an email address (d) takes only numbers
  27. 27.🔢 On a typical page, from top to bottom, which comes first: “<footer>” or “<nav>”? (a) <footer> (b) <nav>
  28. 28.True or false: JavaScript rounds box corners. (a) True (b) False
  29. 29.🔠 How many headings are in this code?
    <h1>Fun facts</h1>
    <p>My pets</p>
    <h2>My pets</h2>
    <p>My pets</p>
    <h4>Hello, world!</h4>
  30. 30.Which of these is true of a web browser? (a) shows line numbers (b) sends pages over the net (c) shows pages from the web (d) stores a website’s files
  31. 31.Which of these is an opening tag? (a) </p> (b) </b> (c) </body> (d) <li>
  32. 32.♿ What does good colour contrast mean? (a) text stands out clearly (b) no colours at all (c) only red text (d) many bright colours
  33. 33.🧩 Which language counts down a timer? (a) HTML (b) CSS (c) JavaScript
  34. 34.🎨 A CSS file usually ends with which extension? (a) .js (b) .png (c) .html (d) .css
  35. 35.📝 Which tag gives a form box a name you can click? (a) <h1> (b) <hr> (c) <label> (d) <title>
  36. 36.🖌️ Where does the text sit on its line?
    h1 {
      text-align: right;
      background-color: red;
      font-size: 16px;
      color: green;
    }
    (a) in the middle (b) on the left (c) on the right
  37. 37.✍️ What is the selector in this CSS rule?
    .note {
      font-style: italic;
      color: red;
      text-align: center;
    }
    (a) #top (b) .note (c) red (d) font-style
  38. 38.✍️ How many declarations (property: value pairs) are in this rule?
    #top {
      background-color: yellow;
      margin: 10px;
      color: red;
      width: 300px;
    }
  39. 39.✍️ What is the selector in this CSS rule?
    li {
      margin: 10px;
      width: 300px;
      font-weight: bold;
    }
    (a) 300px (b) body (c) li (d) margin
  40. 40.✍️ What is the selector in this CSS rule?
    li {
      background-color: yellow;
      width: 300px;
      font-size: 20px;
    }
    (a) background-color (b) 300px (c) li (d) body

Answer key

  1. No
  2. 1
  3. <ol>
  4. style.css
  5. False
  6. <h1>
  7. True
  8. 2
  9. href
  10. an empty tag
  11. True
  12. False
  13. <ul>
  14. bold
  15. <h5>
  16. False
  17. True
  18. a web browser
  19. 2
  20. False
  21. True
  22. HTML
  23. gap
  24. weak
  25. a web browser
  26. is for an email address
  27. <nav>
  28. False
  29. 3
  30. shows pages from the web
  31. <li>
  32. text stands out clearly
  33. JavaScript
  34. .css
  35. <label>
  36. on the right
  37. .note
  38. 4
  39. li
  40. li

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