← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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