Blockquote

From WikiMD's Wellness Encyclopedia

Blockquote[edit | edit source]

A blockquote is a section of text that is quoted from another source. In the context of web development and digital content, blockquotes are used to visually distinguish quoted text from the main body of a document. This is particularly useful in articles, essays, and other forms of writing where it is important to attribute ideas or statements to their original authors.

Usage[edit | edit source]

Blockquotes are commonly used in both print and digital media to indicate that a portion of text is a direct quotation from another source. In HTML, the `

` element is used to define a block of text that is quoted from another source. This element is typically styled with indentation, a different font style, or other visual cues to set it apart from the surrounding text.

HTML Example[edit | edit source]

In HTML, a blockquote is implemented using the `

` tag. Here is an example:

<blockquote>
  "The only limit to our realization of tomorrow is our doubts of today."
  <footer>— Franklin D. Roosevelt</footer>
</blockquote>

In this example, the text within the `

` tags is the quoted material, and the `<footer>` tag is used to provide attribution to the original author.

Styling[edit | edit source]

Blockquotes can be styled using CSS to match the design of a website or document. Common styles include:

  • Indentation from the left margin
  • Italicized text
  • A border or background color

For example, the following CSS can be used to style a blockquote:

blockquote {
  margin: 20px;
  padding: 10px;
  border-left: 5px solid #ccc;
  background-color: #f9f9f9;
  font-style: italic;
}

Best Practices[edit | edit source]

When using blockquotes, it is important to:

  • Ensure that the quoted text is accurate and properly attributed.
  • Use blockquotes sparingly to maintain the flow of the main text.
  • Provide context for the quoted material to help readers understand its relevance.

Also see[edit | edit source]

Template:Web development

WikiMD
Navigation: Wellness - Encyclopedia - Health topics - Disease Index‏‎ - Drugs - World Directory - Gray's Anatomy - Keto diet - Recipes

Search WikiMD

Ad.Tired of being Overweight? Try W8MD's physician weight loss program.
Semaglutide (Ozempic / Wegovy and Tirzepatide (Mounjaro / Zepbound) available.
Advertise on WikiMD

WikiMD's Wellness Encyclopedia

Let Food Be Thy Medicine
Medicine Thy Food - Hippocrates

Medical Disclaimer: WikiMD is not a substitute for professional medical advice. The information on WikiMD is provided as an information resource only, may be incorrect, outdated or misleading, and is not to be used or relied on for any diagnostic or treatment purposes. Please consult your health care provider before making any healthcare decisions or for guidance about a specific medical condition. WikiMD expressly disclaims responsibility, and shall have no liability, for any damages, loss, injury, or liability whatsoever suffered as a result of your reliance on the information contained in this site. By visiting this site you agree to the foregoing terms and conditions, which may from time to time be changed or supplemented by WikiMD. If you do not agree to the foregoing terms and conditions, you should not enter or use this site. See full disclaimer.
Credits:Most images are courtesy of Wikimedia commons, and templates Wikipedia, licensed under CC BY SA or similar.

Contributors: Prab R. Tumpati, MD