← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

  1. in the body
  2. True
  3. False
  4. Cricket Club
  5. <!DOCTYPE html>
  6. <!DOCTYPE html>
  7. <body>
  8. in the body
  9. Easy snacks
  10. Cricket Club
  11. <link rel="stylesheet">
  12. in the head
  13. Welcome!
  14. Match report
  15. <p>
  16. Welcome!
  17. Art Gallery
  18. in the head
  19. Art Gallery
  20. the body
  21. on the browser tab
  22. in the head
  23. <title>
  24. <html>
  25. Riya’s Recipes
  26. <head>
  27. in the body
  28. True
  29. <html>
  30. <ul>
  31. True
  32. Art Gallery
  33. Class 7 Blog
  34. Class 7 Blog
  35. <a>
  36. in the body
  37. Cricket Club
  38. Planets
  39. True
  40. <!DOCTYPE html>

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