When writing in HTML, the tag is an inline element used to designate that the enclosed text is a short quotation. It is useful when you need to put a quote onto a web page that doesn’t require paragraph breaks. This tag is usually denoted by a visible quotation marks. The following sections contain information about this tag, including an example of it in use, and related attributes and browser compatibility.

Example of code

Here is a quotation taken from the Computer Hope website.

Example result

Here is a quotation taken from the Computer Hope website.

For longer sections of quoted text, use the

tag.

  • Example of code
  • Example result
  • Attributes
  • Compatibility
  • Related information

Attributes

Within an HTML tag, an attribute dictates certain aspects of an HTML element. Attributes are made up of a name and value pair; all tags support standard attributes. The following table shows the only current, unique, HTML attribute for the tag, and a description.

Compatibility

Browser, Compatibility, Container tag, URL, Web design terms

  • HTML and web design help and support.