HTML <blockquote> -tag


Voorbeeld

Een gedeelte dat uit een andere bron wordt geciteerd:

<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>

Meer "Probeer het zelf" voorbeelden hieronder.


Definitie en gebruik

De <blockquote>tag specificeert een sectie die uit een andere bron wordt geciteerd.

Browsers laten meestal <blockquote>elementen inspringen (bekijk het onderstaande voorbeeld om te zien hoe u de inspringing kunt verwijderen).


Tips en opmerkingen

Tip: Gebruik <q>voor inline (korte) offertes.


Browserondersteuning

Element
<blockquote> Yes Yes Yes Yes Yes

attributen

Attribute Value Description
cite URL Specifies the source of the quotation

Algemene kenmerken

De <blockquote>tag ondersteunt ook de Global Attributes in HTML .


Gebeurteniskenmerken

De <blockquote>tag ondersteunt ook de Event Attributes in HTML .



Meer voorbeelden

Voorbeeld

Gebruik CSS om de inspringing uit het blockquote-element te verwijderen:

<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>

Gerelateerde pagina's

HTML DOM-referentie: Blockquote-object


Standaard CSS-instellingen

De meeste browsers geven het <blockquote>element weer met de volgende standaardwaarden:

Voorbeeld

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