HTML Elements Flashcards
Heading Element Paragraph Element Line Break and Thematic Break Elements Preformatted Text Element Text Formatting Elements Section Element List Elements Image Element Anchor Element (94 cards)
What HTML tags are used to define headings?
<h1>, <h2>, <h3>, <h4>, <h5>, and <h6>
</h6></h5></h4></h3></h2></h1>
How does the importance of a heading relate to the number in the heading tag (e.g., <h1> vs. <h3>)?
The lower the number, the higher the importance. <h1> has the highest importance, and <h6> has the lowest.
How is the relative importance of heading elements typically reflected when an HTML page is rendered in a browser?
It’s usually reflected in the formatting of the text, with higher-importance headings (like <h1>) being larger and possibly bolder than lower-importance headings (like <h6>).
In the provided HTML example, what is the main heading of the content?
Lorem ipsum (defined by the <h1> tag)
In the provided HTML example, what is the subheading that follows the main heading?
dolor sit amet, (defined by the <h2> tag)
Why is it beneficial to use heading tags semantically, reflecting the structure of the content?
It improves accessibility for users with screen readers and helps search engines understand the hierarchy and importance of the content on the page.
What is the primary purpose of the <p> HTML element?
To define a paragraph of text.
How do browsers typically display paragraph elements in terms of line breaks?
A paragraph always starts on a new line.
What kind of automatic spacing do browsers usually add around paragraph elements?
Browsers automatically add some white space (a margin) before and after a paragraph.
In the provided HTML example, how many distinct paragraphs of text are there?
Two
What kind of content should be enclosed within the <p> tags?
Blocks of text that form a paragraph.
Can you have multiple sentences within a single <p> element?
Yes, a paragraph element can contain one or more sentences that form a cohesive block of text.
Is it semantically correct to use multiple <br></br> tags to create spacing between paragraphs instead of using separate <p> elements? Why or why not?
No, it is generally not semantically correct. <p> elements define distinct blocks of content, and browsers add default spacing. Using <br></br> tags for paragraph spacing is a presentation hack and doesn’t convey the structural meaning of paragraphs.
What is the purpose of the <br></br> HTML element?
To insert a line break (carriage return) in the text.
When is the <br></br> element particularly useful?
For content where the division of lines is significant, such as in poems or addresses.
Is <br></br> a block-level or an inline element?
Inline
Does the <br></br> element have a closing tag?
No, it is a void element.
What is the purpose of the <hr> HTML element?
To create a thematic break in the content, often displayed as a horizontal rule.
What visual effect does the <hr> element typically have on a web page?
It usually renders as a horizontal line that spans the width of its container.
What kind of break does the <hr> element represent semantically?
A thematic break, indicating a transition or separation between different topics or sections of content.
Is <hr> a block-level or an inline element?
Block-level
Does the <hr> element have a closing tag?
No, it is a void element.
In the provided HTML example, what is the effect of the <br></br> tags within the paragraph?
They force the text to break onto a new line at the point where the tag is inserted.
In the provided HTML example, what does the <hr> tag signify within the paragraph?
It indicates a thematic break or a visual separation within the content flow of the paragraph.
HTML element represent?
element typically rendered by browsers in terms of font?
element handle whitespace (spaces, tabs, newlines) in the HTML source code?
element is displayed exactly as it is written in the HTML file, including spaces, tabs, and line breaks.
element still undergo word wrapping by default?
element if it exceeds the container's width.
tags?
element be particularly useful?
a block-level or an inline element?
to ) and additional elements presenting related content.
- ) and unordered lists (
- ).
- )?
- )?
- element?
- or a
- .
- or
- ?
- or
- .