Text Elements
Text Elements
-
Headings (
<h1>-<h6>): Define different levels of importance for your text.<h1>is the most significant heading,<h6>is the least. Headings help structure your content and improve readability. -
Paragraph (
<p>): Represents a block of text. Use<p>tags to separate paragraphs and visually organize your content. -
Line Break (
<br>): Inserts a single line break within a paragraph. Useful for minor adjustments in text flow. -
Span (
<span>): A generic inline container used to group inline elements (like text) for styling purposes.
Example:
<h1>This is a heading (h1)</h1><p> This is a paragraph containing some text. You can use multiple paragraphs to structure your content.</p><p> Here's another paragraph with a <span style="font-weight: bold;">bolded word</span> using a span element.</p>