Horje

How to add HTML <blockquote> cite Attribute

A section that is quoted from another source.

Definition and Usage

The cite attribute specifies the source of a quotation.

Tip: It's a good habit to always add the source of a quotation, if any.

Browser Support

The cite attribute does not render as anything special in any of the major browsers, but it can be used by search engines to get more information about the quotation.


Syntax

<blockquote cite="URL">

Attribute Values

Value Description
URL The source of the quotation.

Possible values:

  • An absolute URL - points to another web site (like cite="http://www.example.com/page.htm")
  • A relative URL - points to a file within a web site (like cite="page.htm")
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The blockquote element</h1>

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

Output should be:

How to add HTML <blockquote> cite Attribute




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin