<pre> / <blockquote> / <hr>
pre represents preformatted text (whitespace and line breaks are displayed as-is), blockquote represents a block of content quoted from another source, and hr represents a thematic break between paragraphs, rendered as a horizontal rule.
Syntax
<!-- pre tag: whitespace and line breaks are preserved -->
<pre>
preformatted
text
quoted text
Attributes
| Tag / Attribute | Description |
|---|---|
| pre | Displays text with whitespace and line breaks preserved. Rendered in a monospace font. |
| blockquote | Represents block-level content quoted from another source. |
| blockquote[cite] | Specifies the URL of the original source. Not displayed in the browser, but included as machine-readable metadata. |
| hr | Renders a horizontal rule representing a thematic break between paragraphs. No closing tag is required. |
Sample Code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
</head>
<body>
<!-- Example: using pre as a code block -->
<p>Here is a sample CSS snippet.</p>
<pre>
body {
font-size: 1rem;
color: #333;
}
The following is quoted from Wikipedia.
HTML (HyperText Markup Language) is a language used to describe the structure of web pages.