HTML- <blockquote> -Tag


Beispiel

Ein Abschnitt, der aus einer anderen Quelle zitiert wird:

<blockquote cite="http://www.worldwildlife.org/who/index.html">
For 50 years, WWF has been protecting the future of nature. The world's leading conservation organization, WWF works in 100 countries and is supported by 1.2 million members in the United States and close to 5 million globally.
</blockquote>

Weitere „Probieren Sie es selbst“-Beispiele weiter unten.


Definition und Verwendung

Das <blockquote>Tag gibt einen Abschnitt an, der aus einer anderen Quelle zitiert wird.

Browser rücken normalerweise <blockquote>Elemente ein (siehe Beispiel unten, um zu sehen, wie man die Einrückung entfernt).


Tipps und Hinweise

Tipp:<q> Für inline (kurze) Zitate verwenden .


Browser-Unterstützung

Element
<blockquote> Yes Yes Yes Yes Yes

Attribute

Attribute Value Description
cite URL Specifies the source of the quotation

Globale Attribute

Das <blockquote>Tag unterstützt auch die globalen Attribute in HTML .


Ereignisattribute

Das <blockquote>Tag unterstützt auch die Ereignisattribute in HTML .



Mehr Beispiele

Beispiel

Verwenden Sie CSS, um die Einrückung aus dem Blockquote-Element zu entfernen:

<html>
<head>
<style>
blockquote {
  margin-left: 0;
}
</style>
</head>
<body>

<p>Here is a quote from WWF's website:</p>

<blockquote cite="http://www.worldwildlife.org/who/index.html">
For 50 years, WWF has been protecting the future of nature. The world's leading conservation organization, WWF works in 100 countries and is supported by 1.2 million members in the United States and close to 5 million globally.
</blockquote>

</body>
</html>

Verwandte Seiten

HTML-DOM-Referenz: Blockquote-Objekt


Standard-CSS-Einstellungen

Die meisten Browser zeigen das <blockquote>Element mit den folgenden Standardwerten an:

Beispiel

blockquote {
  display: block;
  margin-top: 1em;
  margin-bottom: 1em;
  margin-left: 40px;
  margin-right: 40px;
}