HTML Quote Elements

 

5. Quote Elements

Blockquote (<blockquote>)

The <blockquote> tag is used for longer, block-level quotations. It is typically indented by browsers.

Attributes:

  • cite: Specifies the source of the quote.

Example:

<blockquote cite="https://www.example.com">
    "This is a long quote from a reputable source."
</blockquote>

Explanation:

  • The cite attribute provides the URL of the source.

Short Quote (<q>)

The <q> tag is used for inline quotations and automatically wraps the text in quotation marks.

Example:

<p>He said, <q>The journey of a thousand miles begins with a single step.</q></p>

Output: He said, “The journey of a thousand miles begins with a single step.”

Comments

Popular posts from this blog

Introduction to Computer

History of Computer

Computer Generation