Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Impara Quotes | Advanced Text Formatting Elements
Introduction to HTML

book
Quotes

The <blockquote> element in HTML represents a quoted section from another source. It is typically displayed as indented text on a web page, with the quote's source cited at the bottom.

The <footer> element is a structural element used to identify the footer of a page, document, article, or section.

html

index.html

copy
<blockquote>
The world is a dangerous place, not because of those who do evil, but because
of those who look on and do nothing.
<footer>Albert Einstein</footer>
</blockquote>

You can also specify the source of the quote using the cite attribute:

html

index.html

copy
<blockquote
cite="https://www.goodreads.com/quotes/24077-the-world-is-a-dangerous-place-not-because-of-those-who" >
The world is a dangerous place, not because of those who do evil, but because
of those who look on and do nothing.
<footer>Albert Einstein</footer>
</blockquote>

You can also use the <blockquote> element for nesting other block-level elements, such as <p> or <div>, inside it to provide additional context or structure to the quote.

html

index.html

copy
<blockquote
cite="https://www.goodreads.com/quotes/24077-the-world-is-a-dangerous-place-not-because-of-those-who" >
<p>
The world is a dangerous place, not because of those who do evil, but
because of those who look on and do nothing.
</p>
<footer>Albert Einstein</footer>
</blockquote>

Similarly, the <q> element represents a short inline quotation. It is typically displayed with quotation marks around the quoted text.

html

index.html

copy
<p>
As Mahatma Gandhi once said,
<q>Be the change that you wish to see in the world</q>.
</p>

Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 4. Capitolo 1
some-alt