HTML blockquote
Created By: chatGPT
The
<blockquote>
tag is used to define a block of text that is quoted from another source. This element is typically displayed with indentation by browsers to differentiate it from the main content. You can also include the cite
attribute to reference the source of the quote.<blockquote cite="https://www.example.com">
<p>This is an example of a blockquote. It is used to highlight a quote from another source.</p>
</blockquote>
You can nest blockquotes to create multi-level quotations. Each nested blockquote will inherit the formatting of the outer blockquote, further indented to show the hierarchy.
<blockquote>
<p>This is an outer blockquote.</p>
<blockquote>
<p>This is a nested blockquote.</p>
</blockquote>
</blockquote>
When styling blockquotes with CSS, you can customize their appearance. Here's how you can adjust the font size and color for blockquotes globally.
<style>
blockquote {
font-size: 1.2em;
color: #555;
border-left: 4px solid #ccc;
margin: 20px 0;
padding-left: 20px;
}
</style>
It's important to make clear the source of your quotes, especially in academic or professional writing. Utilize the
cite
attribute to provide a link or reference that readers can follow for more information.<blockquote cite="https://www.example.com">
<p>As Albert Einstein said, "Imagination is more important than knowledge."</p>
</blockquote>