Paragraphs and Line Breaks
This is a basic paragraph element. Paragraphs are block-level elements that contain text content.
This paragraph demonstrates line breaks.
This is on a new line due to the br tag.
And this is another line break example.
Multiple
line
breaks
create
spacing.
Horizontal Rules
Horizontal rules create thematic breaks between content:
Content after the first horizontal rule.
Content after the second horizontal rule.
Blockquotes and Citations
Short inline quote: To be or not to be, that is the question.
This is a longer quote that stands alone as a block element. It is often used for longer quotations or excerpts from other sources.
"The only way to do great work is to love what you do."
"It was the best of times, it was the worst of times, it was the age of wisdom, it was the age of foolishness, it was the epoch of belief, it was the epoch of incredulity..."
A Tale of Two Cities by Charles Dickens
According to the book HTML for Beginners, proper markup is important for accessibility and SEO.
Preformatted Text
The pre element preserves whitespace and formatting:
function greetUser(name) { if (name) { console.log("Hello, " + name + "!"); } else { console.log("Hello, World!"); } } greetUser("Alice"); greetUser();
Preformatted text with special characters:
ASCII Art: /\_/\ ( o.o ) > ^ <
Lists
Ordered Lists
- First item in ordered list
- Second item in ordered list
- Third item in ordered list
- Nested ordered list item
- Another nested item
- Fourth item in ordered list
Unordered Lists
- First item in unordered list
- Second item in unordered list
- Third item in unordered list
- Nested unordered list item
- Another nested item
- Fourth item in unordered list
Description Lists
- HTML
- HyperText Markup Language - the standard markup language for web pages
- CSS
- Cascading Style Sheets - used for styling and layout of web pages
- JavaScript
- A programming language used to create dynamic and interactive web content
- Also known as ECMAScript
- API
- Application Programming Interface
- A set of protocols and tools for building software applications
Mixed Content Example
Here's a paragraph that combines multiple text content elements:
Important Quote: "The future belongs to those who learn more skills and combine them in creative ways."
— Robert Greene
This quote relates to web development because:
- HTML provides structure
- CSS adds styling
- JavaScript enables interactivity
As the saying goes: Practice makes perfect
.
Keep coding and learning!
Tags Summary
This page demonstrates all text content tags:
<p>
- Paragraphs<br>
- Line breaks<hr>
- Horizontal rules<blockquote>
- Block quotations<q>
- Inline quotations<cite>
- Citations<pre>
- Preformatted text<ol>
- Ordered lists<ul>
- Unordered lists<li>
- List items<dl>
- Description lists<dt>
- Description terms<dd>
- Description definitions