Quotations (<blockquote>, <q>)

0
9KB

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
Suche
Kategorien
Mehr lesen
Physics
COLLECTION OF PHYSICS SCENARIOS
COLLECTION OF PHYSICS SCENARIOS
Von Landus Mumbere Expedito 2024-08-13 19:19:44 0 12KB
Technology
Components of BIS: Hardware, Software, Data, People, Processes
Business Information Systems (BIS) are composed of several key components that work together to...
Von Business Information Systems (BIS) Course 2024-07-31 18:24:21 0 10KB
Chemistry
UCE CHEMISTRY JJEB 2024
UCE CHEMISTRY JJEB 2024
Von Landus Mumbere Expedito 2024-08-12 09:34:13 0 13KB
Ausbildung
VLOOKUP FUNCTIONS
VLOOKUP is a powerful function in Excel that allows you to search for a value in a table and...
Von Microsoft Excel 2024-09-23 20:04:52 0 11KB
Technology
Microsoft Access Basics & Database Fundamentals
Best Practices for Microsoft Access
Von Mpatswe Francis 2024-08-14 21:45:18 0 8KB
Tebtalks https://tebtalks.com