Section Flashcards
What is the purpose of the <head> section in a webpage?
Provides context and instructions for the webpage
The <head> section contains metadata that informs browsers and services about the document.
What does the <title> tag define?</title>
The title that appears in the browser tab or window title bar
The <title> tag is also important for SEO (Search Engine Optimization).</title>
What does the <meta></meta> tag specify?
The character encoding for the document
UTF-8 is widely used and can handle almost all characters and symbols.
What is the role of the <link></link> tag?
Links external files to the HTML document
Commonly used to link to CSS files that control the visual presentation of the webpage.
True or False: The information in the <head> section is directly visible on the rendered page.
False
Content in the <head> section is not directly visible but is crucial for webpage functionality.
Fill in the blank: The <link></link> tag sets up a connection to a separate file that will _______.
[style the visible content in the <body>]
What is the purpose of the <body> tag in HTML?
The <body> is where all the magic happens in terms of what you actually see on a webpage.
What types of content go inside the <body> tags?
- Text (paragraphs, headings, lists, etc.)
- Images and videos
- Links to other pages
- Forms for user input
- And much more!
How does the <head> tag differ from the <body> tag?
The <head> sets up the stage and provides backstage information, while the <body> is where the actual performance takes place.
What does the <body> tag contain?
The main container for all the visible content that makes up your website.
Fill in the blank: The <body> section of a webpage is where you display _____ and paragraphs.
[headings]
What does the browser do with the tags inside the <body>?
The browser reads these tags and knows how to display the content.
True or False: The <body> tag can contain forms for user input.
True
Provide an example of how to display a heading and a paragraph in the <body> section.
<body>
<h1>Welcome!</h1>
<p>This is my first webpage.</p>
</body>
What is the purpose of the <body> tag in HTML?
The <body> is where all the magic happens in terms of what you actually see on a webpage.
What types of content go inside the <body> tags?
- Text (paragraphs, headings, lists, etc.)
- Images and videos
- Links to other pages
- Forms for user input
- And much more!
How does the <head> tag differ from the <body> tag?
The <head> sets up the stage and provides backstage information, while the <body> is where the actual performance takes place.
What does the <body> tag contain?
The main container for all the visible content that makes up your website.
Fill in the blank: The <body> section of a webpage is where you display _____ and paragraphs.
[headings]
What does the browser do with the tags inside the <body>?
The browser reads these tags and knows how to display the content.
True or False: The <body> tag can contain forms for user input.
True
Provide an example of how to display a heading and a paragraph in the <body> section.
<body>
<h1>Welcome!</h1>
<p>This is my first webpage.</p>
</body>