Quotations (<blockquote>, <q>)

0
5كيلو بايت

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
البحث
الأقسام
إقرأ المزيد
Computer Programming
Bold Text in HTML
To make text bold in HTML, you can use either the <b> or <strong> element. Both...
بواسطة HTML PROGRAMMING LANGUAGE 2024-08-29 01:49:28 0 5كيلو بايت
Computer Programming
Intro to Classes and Objects python Show drafts
Classes: The Blueprints Imagine you're building a house. You wouldn't just start hammering and...
بواسطة Python for Everybody - Full University Python Course Code 2024-07-19 00:03:14 0 7كيلو بايت
Wellness
Choosing Kindness in the Face of Anger: A Path to Transformation
Imagine standing at the crossroads of an emotional storm. Someone’s words or actions have...
بواسطة Olaim 2024-12-18 16:55:54 0 6كيلو بايت
التعليم
S.4 PHYSICAL EDUCATION MOCK EXAM
https://acrobat.adobe.com/id/urn:aaid:sc:EU:ec617028-2a6c-4082-b406-54df86b57b55
بواسطة Expedito 2024-07-24 19:32:08 0 7كيلو بايت
Computer Programming
Creating your first HTML file
Step-by-Step Guide 1. Choose a Text Editor: Basic Text Editors: Notepad (Windows), TextEdit...
بواسطة HTML PROGRAMMING LANGUAGE 2024-08-13 03:22:25 0 5كيلو بايت