2: Basic HTML Structure- HTML

Basic HTML Structure

Basic HTML Structure

Fill in the Blanks

  1. The __________ tag defines the title of a webpage.
  2. Answer: <title>

  3. The __________ section of an HTML document includes meta tags and links to stylesheets.
  4. Answer: <head>

  5. The __________ tag contains the main content of the webpage.
  6. Answer: <body>

  7. The first line of an HTML document is __________.
  8. Answer: <!DOCTYPE html>

  9. The __________ tag is used to define a heading in HTML.
  10. Answer: <h1>

True or False

  1. The <body> tag is optional in HTML.
  2. Answer: False

  3. A basic HTML webpage must include the <!DOCTYPE html> declaration.
  4. Answer: True

  5. The <head> section can contain the title of the webpage.
  6. Answer: True

  7. The <p> tag is used to create headings.
  8. Answer: False

  9. The <title> tag is displayed in the browser’s tab.
  10. Answer: True

Answer in One Sentence

  1. What is the purpose of the <head> section?
  2. Answer: It contains metadata, links to stylesheets, and the title of the webpage.

  3. Why is <!DOCTYPE html> important?
  4. Answer: It tells the browser to render the webpage in standards mode.

  5. What does the <body> tag contain?
  6. Answer: It contains the main content of the webpage.

  7. What does the <title> tag do?
  8. Answer: It defines the title of the webpage shown in the browser’s tab.

  9. How is a heading defined in HTML?
  10. Answer: Using <h1> to <h6> tags.

Match the Following

Question Answer
Defines the title of the webpage <title>
Contains the main content <body>
Metadata and links <head>
First line in HTML <!DOCTYPE html>
Creates headings <h1> to <h6> tags

Comments

Popular posts from this blog

Index Class V - Excel - ICT

Interactive Worksheet - Excel-V True or False- Quiz

Interactive Worksheet - Excel-V Fill-in-the-Blanks Quiz