Quotations (<blockquote>, <q>)

0
10χλμ.

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
Αναζήτηση
Κατηγορίες
Διαβάζω περισσότερα
Technology
Understanding Brute Force Attacks
A brute force attack is a method used by attackers to gain unauthorized access to a system,...
από ALAGAI AUGUSTEN 2024-07-15 06:43:17 0 10χλμ.
Technology
Popular Linux Distributions
Linux distributions, or distros, come in various forms tailored to different user needs, ranging...
από Tebtalks Access 2024-07-13 07:29:49 0 10χλμ.
Computer Programming
Adding comments in HTML (<!-- comment -->)
While global attributes can be applied to any HTML element, some attributes are specific to...
από HTML PROGRAMMING LANGUAGE 2024-08-15 01:50:21 0 8χλμ.
Technology
Understanding the MOD Function
The MOD function in Excel is used to find the remainder after a number is divided by a divisor....
από Microsoft Excel 2024-09-03 03:27:42 2 12χλμ.
Εκπαίδευση
A MUST KNOW FOR S6 HISTORY STUDENTS
https://acrobat.adobe.com/id/urn:aaid:sc:EU:8ec647ff-c6ae-4844-831f-3f6e719e9bb0
από Landus Mumbere Expedito 2024-07-15 19:59:30 0 13χλμ.
Talksphare https://talksphare.com