← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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