HTML blockquote Tag

HTML blockquote Tag defines a section that is quoted from another source like a web page or website.

Syntax of HTML blockquote Tag

The Syntax of HTML blockquote Tag is shown below. It has both opening and closing tags.

<!DOCTYPE html>
<html>
<head>
</head>
<body>
<blockquote cite="source url">
// quoted section
</blockquote>
</body>
</html>

Usage of HTML blockquote Tag

HTML blockquote tag is used to display a large section of a text or information which is quoted from another source.

Example of HTML blockquote Tag

Simple example of HTML blockquote tag is shown below.

<!DOCTYPE html>
<html>
<head>
</head>
<body>
<blockquote cite="https://en.wikipedia.org/wiki/HTML">
Hypertext Markup Language (HTML) is the standard markup language for documents designed to be displayed in a web browser. It can be assisted by technologies such as Cascading Style Sheets (CSS) and scripting languages such as JavaScript.
</blockquote>
</body>
</html>

In the above example as you can see, the blockquote tag is used to quote the text about HTML from wikipedia.

Output

The output of above example is shown below.

Hypertext Markup Language (HTML) is the standard markup language for documents designed to be displayed in a web browser. It can be assisted by technologies such as Cascading Style Sheets (CSS) and scripting languages such as JavaScript.

Default Styling of blockquote Tag

Blockquote is a block level element and by default browser will indent the left and right margins of blockquote element as shown above in the output. You can remove this indention using simple CSS, look at the code written below.

<style>
blockquote
{
  margin: 0;
}
</style>

cite Attribute in blockquote Tag

cite attribute is used to point at the source from where the information or text is being quoted.

Browser Support for HTML blockquote Tag

HTML blockquote Tag is supported by all major browsers including safari and internet explorer.

Global Attributes Support in HTML blockquote Tag

The HTML blockquote Tag supports Global Attributes.

Event Attributes Support in HTML blockquote Tag

The HTML blockquote Tag supports Event Attributes.

HTML blockquote Tag Video

Watch our video on HTML blockquote Tag and subscribe our Youtube Channel.

HTML anchor Tag HTML abbr Tag HTML acronym Tag HTML address Tag HTML applet Tag HTML area Tag HTML article Tag HTML aside Tag HTML audio Tag HTML b Tag HTML base Tag HTML basefont Tag HTML bdi Tag HTML bdo Tag HTML big Tag HTML blockquote Tag HTML body Tag HTML br Tag HTML Button Tag HTML Canvas Tag HTML Caption Tag HTML Center Tag HTML Cite Tag HTML Code Tag HTML Col Tag HTML colgroup Tag HTML comment Tag HTML data Tag HTML datalist Tag HTML dd Tag HTML del Tag HTML details Tag HTML dfn Tag HTML dialog Tag HTML dir Tag HTML div Tag HTML dl Tag HTML Doctype Tag HTML dt Tag HTML em Tag HTML embed Tag HTML fieldset Tag HTML figcaption Tag HTML figure Tag HTML font Tag HTML footer Tag HTML form Tag HTML frame Tag HTML frameset Tag HTML Heading Tags HTML head Tag HTML header Tag HTML hr Tag HTML html Tag HTML i Tag HTML iframe Tag HTML img Tag HTML input Tag HTML ins Tag HTML kbd Tag HTML label Tag HTML legend Tag HTML li Tag HTML link Tag HTML main Tag HTML map Tag HTML mark Tag HTML meta Tag HTML meter Tag HTML nav Tag HTML noframes Tag HTML noscript Tag HTML object Tag HTML ol Tag HTML optgroup Tag HTML option Tag HTML output Tag HTML p Tag HTML param Tag HTML picture Tag HTML pre Tag HTML progress Tag HTML q Tag HTML rp Tag HTML rt Tag HTML ruby Tag HTML s Tag