Quotations (<blockquote>, <q>)

0
5KB

Quotes are used to display text that is a direct quote from another source. In HTML, there are two main elements for this purpose: <blockquote> and <q>.

<blockquote> Element

The <blockquote> element is used for long, multi-line quotes. It typically includes a block-level quote with indentation and a different background color.

Example:

HTML
<blockquote>
  The only way to do great work is to love what you do. If you haven't found it yet, keep looking. Don't settle.
  <cite>Steve Jobs</cite>
</blockquote>   

Attributes:

  • cite: Specifies the URL of the original source.
  • cite-title: Specifies the title of the original source.

<q> Element

The <q> element is used for short, inline quotes. It is often used for quotes within paragraphs or other inline content.

Example:

HTML
<p>As Einstein said, "<q>Imagination is more important than knowledge.</q>"</p>

Attributes:

  • cite: Specifies the URL of the original source.

Choosing the Right Element:

  • Use <blockquote> for long, multi-line quotes that stand out from the main content.
  • Use <q> for short, inline quotes that are part of the flow of the text.

Additional Considerations:

  • You can nest quotes within quotes using both elements.
  • For more complex quote formatting, consider using CSS styles.

By using <blockquote> and <q>, you can effectively display quotes in your HTML documents, giving proper attribution to the original source and improving the readability of your content.

Like
3
Rechercher
Catégories
Lire la suite
Technology
Digital Divide
The digital divide refers to the gap between individuals, households, businesses, and geographic...
Par Olaim 2024-07-16 16:59:32 0 4KB
Computer Programming
Functions, Parameters, and Return Values in python
Python uses functions extensively! Here's how functions, parameters, and return values work in...
Technology
Using the SUM Function in Excel: A Step-by-Step Guide
The SUM function in Excel is a powerful tool used to calculate the total of a range of numbers....
Par Microsoft Excel 2024-09-03 03:17:00 1 5KB
Éducation
Thomas Edison
Par Modern American History 2024-08-02 16:35:16 0 5KB
Technology
Transaction Processing Systems (TPS)
These are information systems that manage and process data from business transactions. A...
Par Business Information Systems (BIS) Course 2024-07-31 18:42:51 0 4KB