← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

HTML and CSS lesson 8: Page structure: head and body · Set 517 · 40 questions
TalentJR

Code tip (Head for the browser, body for you): <!DOCTYPE html> first, then <html> with <head> and <body> inside. The head holds <title> (shown on the browser tab), <meta>, <style> and <link>. The body holds everything you see on the page.

NameDateTime takenScore ___ / 40
  1. 1.📄 What is the first line of an HTML5 page? (a) <html> (b) <head> (c) <!DOCTYPE html> (d) <body>
  2. 2.True or false: <style> goes in the body. (a) True (b) False
  3. 3.Which of these goes in the body? (a) <a> (b) <meta charset="utf-8"> (c) <title> (d) <link rel="stylesheet">
  4. 4.📄 Where does <a> go: in the head or in the body? (a) in the head (b) in the body
  5. 5.📄 What is the big heading shown on 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) I like to read. (b) body (c) My Hobbies (d) My drawings
  6. 6.True or false: <img> goes in the body. (a) True (b) False
  7. 7.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Class 7 Blog</title>
    </head>
    <body>
      <h1>Easy snacks</h1>
      <p>Here is my best one.</p>
    </body>
    </html>
    (a) Here is my best one. (b) Class 7 Blog (c) body (d) Easy snacks
  8. 8.📄 Where does <table> go: in the head or in the body? (a) in the head (b) in the body
  9. 9.Which of these goes in the body? (a) <style> (b) <link rel="stylesheet"> (c) <ul> (d) <title>
  10. 10.🔢 In a basic web page file, which comes first: “<head>” or “</head>”? (a) </head> (b) <head>
  11. 11.📄 Where does <h1> go: in the head or in the body? (a) in the head (b) in the body
  12. 12.Which of these goes in the body? (a) <table> (b) <title> (c) <style> (d) <link rel="stylesheet">
  13. 13.Which of these goes in the body? (a) <p> (b) <link rel="stylesheet"> (c) <title> (d) <meta charset="utf-8">
  14. 14.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Space Facts</title>
    </head>
    <body>
      <h1>Planets</h1>
      <p>I like to read.</p>
    </body>
    </html>
    (a) Planets (b) body (c) I like to read. (d) Space Facts
  15. 15.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Class 7 Blog</title>
    </head>
    <body>
      <h1>Planets</h1>
      <p>We won by 5 runs.</p>
    </body>
    </html>
    (a) Class 7 Blog (b) Planets (c) We won by 5 runs. (d) body
  16. 16.📄 Which part holds everything you see on the page? (a) the head (b) the doctype (c) the body (d) the title
  17. 17.📄 Where does <p> go: in the head or in the body? (a) in the head (b) in the body
  18. 18.Which of these goes in the head? (a) <a> (b) <meta charset="utf-8"> (c) <table> (d) <ul>
  19. 19.True or false: <a> goes in the head. (a) False (b) True
  20. 20.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Space Facts</title>
    </head>
    <body>
      <h1>My drawings</h1>
      <p>I like to read.</p>
    </body>
    </html>
    (a) index.html (b) I like to read. (c) Space Facts (d) My drawings
  21. 21.🔢 In a basic web page file, which comes LAST? (a) <head> (b) <html> (c) </html> (d) </body>
  22. 22.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>My Hobbies</title>
    </head>
    <body>
      <h1>All about me</h1>
      <p>Thanks for visiting.</p>
    </body>
    </html>
    (a) All about me (b) index.html (c) My Hobbies (d) Thanks for visiting.
  23. 23.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Art Gallery</title>
    </head>
    <body>
      <h1>My drawings</h1>
      <p>I like to read.</p>
    </body>
    </html>
    (a) index.html (b) My drawings (c) I like to read. (d) Art Gallery
  24. 24.Which of these goes in the head? (a) <ul> (b) <table> (c) <link rel="stylesheet"> (d) <img>
  25. 25.True or false: <link rel="stylesheet"> goes in the head. (a) True (b) False
  26. 26.📄 Where does <img> go: in the head or in the body? (a) in the head (b) in the body
  27. 27.🔢 In a basic web page file, which comes first: “<body>” or “</body>”? (a) <body> (b) </body>
  28. 28.📄 Where does <ul> go: in the head or in the body? (a) in the head (b) in the body
  29. 29.📄 Where does <style> go: in the head or in the body? (a) in the body (b) in the head
  30. 30.📄 Where does <meta charset="utf-8"> go: in the head or in the body? (a) in the head (b) in the body
  31. 31.📄 Where does <link rel="stylesheet"> go: in the head or in the body? (a) in the body (b) in the head
  32. 32.🔢 In a basic web page file, which comes FIRST? (a) </html> (b) <body> (c) </head> (d) <!DOCTYPE html>
  33. 33.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Art Gallery</title>
    </head>
    <body>
      <h1>Match report</h1>
      <p>I like to read.</p>
    </body>
    </html>
    (a) Match report (b) Art Gallery (c) body (d) I like to read.
  34. 34.True or false: <ul> goes in the body. (a) False (b) True
  35. 35.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Space Facts</title>
    </head>
    <body>
      <h1>Planets</h1>
      <p>Thanks for visiting.</p>
    </body>
    </html>
    (a) Space Facts (b) Thanks for visiting. (c) Planets (d) index.html
  36. 36.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Space Facts</title>
    </head>
    <body>
      <h1>Welcome!</h1>
      <p>We won by 5 runs.</p>
    </body>
    </html>
    (a) We won by 5 runs. (b) Welcome! (c) Space Facts (d) body
  37. 37.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Riya’s Recipes</title>
    </head>
    <body>
      <h1>Match report</h1>
      <p>Mars is red.</p>
    </body>
    </html>
    (a) Match report (b) Mars is red. (c) Riya’s Recipes (d) index.html
  38. 38.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Riya’s Recipes</title>
    </head>
    <body>
      <h1>Welcome!</h1>
      <p>I like to read.</p>
    </body>
    </html>
    (a) I like to read. (b) Riya’s Recipes (c) Welcome! (d) index.html
  39. 39.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Cricket Club</title>
    </head>
    <body>
      <h1>Easy snacks</h1>
      <p>I like to read.</p>
    </body>
    </html>
    (a) body (b) Cricket Club (c) Easy snacks (d) I like to read.
  40. 40.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Riya’s Recipes</title>
    </head>
    <body>
      <h1>My drawings</h1>
      <p>I like to read.</p>
    </body>
    </html>
    (a) body (b) I like to read. (c) My drawings (d) Riya’s Recipes

Answer key

  1. <!DOCTYPE html>
  2. False
  3. <a>
  4. in the body
  5. My drawings
  6. True
  7. Easy snacks
  8. in the body
  9. <ul>
  10. <head>
  11. in the body
  12. <table>
  13. <p>
  14. Planets
  15. Planets
  16. the body
  17. in the body
  18. <meta charset="utf-8">
  19. False
  20. Space Facts
  21. </html>
  22. My Hobbies
  23. Art Gallery
  24. <link rel="stylesheet">
  25. True
  26. in the body
  27. <body>
  28. in the body
  29. in the head
  30. in the head
  31. in the head
  32. <!DOCTYPE html>
  33. Match report
  34. True
  35. Space Facts
  36. Welcome!
  37. Riya’s Recipes
  38. Riya’s Recipes
  39. Easy snacks
  40. My drawings

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