2: Basic HTML Structure- HTML
Basic HTML Structure
Fill in the Blanks
- The __________ tag defines the title of a webpage.
- The __________ section of an HTML document includes meta tags and links to stylesheets.
- The __________ tag contains the main content of the webpage.
- The first line of an HTML document is __________.
- The __________ tag is used to define a heading in HTML.
Answer: <title>
Answer: <head>
Answer: <body>
Answer: <!DOCTYPE html>
Answer: <h1>
True or False
- The <body> tag is optional in HTML.
- A basic HTML webpage must include the <!DOCTYPE html> declaration.
- The <head> section can contain the title of the webpage.
- The <p> tag is used to create headings.
- The <title> tag is displayed in the browser’s tab.
Answer: False
Answer: True
Answer: True
Answer: False
Answer: True
Answer in One Sentence
- What is the purpose of the <head> section?
- Why is <!DOCTYPE html> important?
- What does the <body> tag contain?
- What does the <title> tag do?
- How is a heading defined in HTML?
Answer: It contains metadata, links to stylesheets, and the title of the webpage.
Answer: It tells the browser to render the webpage in standards mode.
Answer: It contains the main content of the webpage.
Answer: It defines the title of the webpage shown in the browser’s tab.
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
Post a Comment