← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

  1. <!DOCTYPE html>
  2. <link rel="stylesheet">
  3. <meta charset="utf-8">
  4. <!DOCTYPE html>
  5. Welcome!
  6. <!DOCTYPE html>
  7. in the head
  8. in the body
  9. <h1>
  10. in the head
  11. Class 7 Blog
  12. True
  13. True
  14. False
  15. Art Gallery
  16. on the browser tab
  17. the body
  18. False
  19. <title>
  20. in the head
  21. False
  22. <!DOCTYPE html>
  23. False
  24. Welcome!
  25. My drawings
  26. Art Gallery
  27. Art Gallery
  28. in the body
  29. True
  30. <table>
  31. Welcome!
  32. </html>
  33. Welcome!
  34. in the head
  35. Class 7 Blog
  36. My drawings
  37. <html>
  38. True
  39. <!DOCTYPE html>
  40. All about me

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