Falytom logoFALYTOM
Games
ToolsUI ComponentsServicesProductsAbout
LoginSign Up
menu
  1. Home
  2. /Web Development
  3. /Html
  4. /Quotations Citations
Your Progress0%
0 of 76 completed

Topics

Getting Started

  • What is HTML?
  • How the Web Works
  • Setting Up Your Environment
  • Your First HTML Page

HTML Document Structure

  • The DOCTYPE Declaration
  • The HTML Element
  • The Head Section
  • Meta Tags
  • The Body Element
  • HTML Comments

Text and Formatting

  • Headings (h1-h6)
  • Paragraphs
  • Line Breaks and Horizontal Rules
  • Text Formatting (Bold, Italic, etc.)
  • Quotations and Citations
  • Preformatted Text and Code
  • Subscript and Superscript

Links and Navigation

  • Creating Links
  • Absolute vs Relative URLs
  • Link Targets and Attributes
  • Email and Phone Links
  • Internal Page Links

Images and Media

  • Adding Images
  • Image Attributes
  • Image Formats
  • Figure and Figcaption
  • Responsive Images
  • Audio Elements
  • Video Elements
  • Embedding Content

Lists

  • Unordered Lists
  • Ordered Lists
  • Description Lists
  • Nested Lists

Tables

  • Table Basics
  • Table Headers and Footers
  • Spanning Columns and Rows
  • Table Captions
  • Styling Tables

Forms - Part 1 (Basics)

  • Introduction to Forms
  • Text Input Fields
  • Labels and Placeholders
  • Textarea Element
  • Checkboxes
  • Radio Buttons

Forms - Part 2 (Advanced)

  • Select Dropdowns
  • File Upload Inputs
  • HTML5 Input Types
  • Form Validation
  • Form Buttons
  • Fieldsets and Legends
  • Form Accessibility

Semantic HTML

  • What is Semantic HTML?
  • Header and Footer
  • Nav Element
  • Main and Article
  • Section and Aside
  • Div vs Semantic Elements
  • Time and Mark Elements

HTML5 Features

  • HTML5 Overview
  • Canvas Element
  • SVG in HTML
  • Geolocation API
  • Drag and Drop
  • Local Storage
  • Web Workers

Web Accessibility

  • Introduction to Accessibility
  • ARIA Attributes
  • Keyboard Navigation
  • Alt Text Best Practices
  • Color Contrast and Typography
  • Testing for Accessibility

Best Practices & SEO

  • HTML Best Practices
  • SEO Fundamentals
  • Meta Tags for SEO
  • Structured Data

Quotations and Citations

Properly marking up quotes and references in HTML

When you need to include quotes or cite sources in your web content, HTML provides specific elements designed for this purpose. Using the right elements helps search engines understand your content better and improves accessibility.

The Blockquote Element

The <blockquote> element is used for longer quotations that should be displayed as a separate block of text, typically indented from the surrounding content.

blockquote-basic.html
<blockquote>
  <p>The only way to do great work is to love what you do.</p>
</blockquote>

Adding a Source with the cite Attribute

You can use the cite attribute to specify the source URL of the quotation:

blockquote-cite.html
<blockquote cite="https://example.com/source">
  <p>Innovation distinguishes between a leader and a follower.</p>
  <footer>— Steve Jobs</footer>
</blockquote>

Note: The cite attribute is primarily for machines (like search engines). To show the source visually to users, you should include it in the content itself.

The Q Element for Inline Quotes

The <q> element is used for short, inline quotations within a paragraph. Browsers automatically add quotation marks around the content.

q-element.html
<p>
  As Benjamin Franklin said, 
  <q>Tell me and I forget. Teach me and I remember. Involve me and I learn.</q>
</p>

The browser will render this as:

As Benjamin Franklin said, "Tell me and I forget. Teach me and I remember. Involve me and I learn."

The Cite Element

The <cite> element is used to reference the title of a creative work, such as a book, article, song, movie, or painting.

cite-element.html
<p>
  My favorite book is <cite>To Kill a Mockingbird</cite> by Harper Lee.
</p>

<p>
  The article <cite>The Future of Web Development</cite> discusses 
  emerging technologies.
</p>

Complete Example: Combining Elements

Here's how you might use all three elements together in a blog post or article:

complete-example.html
<article>
  <h2>The Power of Persistence</h2>
  
  <p>
    In his book <cite>Think and Grow Rich</cite>, Napoleon Hill wrote:
  </p>
  
  <blockquote cite="https://example.com/think-and-grow-rich">
    <p>
      Strength and growth come only through continuous effort and struggle.
    </p>
    <footer>— Napoleon Hill, <cite>Think and Grow Rich</cite></footer>
  </blockquote>
  
  <p>
    This reminds me of what Thomas Edison once said: 
    <q>Genius is one percent inspiration and ninety-nine percent perspiration.</q>
  </p>
</article>

Styling Considerations

By default, browsers apply some basic styling to these elements:

  • <blockquote> is typically indented with margins
  • <q> automatically adds quotation marks
  • <cite> is usually displayed in italics

You can customize this styling with CSS, but the semantic meaning remains important for accessibility and SEO.

Best Practices

When to Use Blockquote

  • For longer quotes (multiple sentences or paragraphs)
  • When you want the quote to stand out visually
  • For testimonials or pull quotes
  • When citing external sources

When to Use Q

  • For short quotes within a sentence or paragraph
  • When the quote flows naturally with surrounding text
  • For inline dialogue or brief references

When to Use Cite

  • For titles of books, articles, songs, movies, etc.
  • When referencing creative works
  • NOT for citing people's names (use regular text for that)

Common Mistakes to Avoid

❌ Don't do this:

MARKUP
<!-- Don't use blockquote just for styling -->
<blockquote>
  <p>This isn't actually a quote, just indented text.</p>
</blockquote>

<!-- Don't use cite for author names -->
<p>Quote by <cite>Albert Einstein</cite></p>

✅ Do this instead:

MARKUP
<!-- Use CSS classes for styling, blockquote for quotes -->
<p class="indented">
  This is just styled text, not a quote.
</p>

<!-- Author names are regular text -->
<p>Quote by Albert Einstein</p>

Accessibility Notes

Using the correct semantic elements helps screen readers understand and properly announce quotes to users:

  • Screen readers may announce blockquotes as quoted content
  • The cite attribute provides machine-readable source information
  • Proper semantic markup improves document structure

Key Takeaways

  • Use <blockquote> for block-level quotations
  • Use <q> for short inline quotes
  • Use <cite> for titles of creative works
  • The cite attribute adds machine-readable source URLs
  • Don't use these elements just for styling purposes
  • Proper semantic markup improves SEO and accessibility

What's Next?

Now that you know how to properly mark up quotations and citations, you're ready to learn about displaying code and preformatted text in your web pages. In the next lesson, we'll explore the <pre>, <code>, and <kbd> elements.

Know someone who'd find this guide helpful? Please share!

Previous
Text Formatting (Bold, Italic, etc.)
Next
Preformatted Text and Code

Never Miss a New HTML Tutorial

Join 1,000+ developers learning HTML step-by-step. Get new tutorials, tips, and exclusive resources delivered to your inbox - completely FREE.

You might also like

UI Components

Ready-made components for your projects

Developer Tools

Boost productivity with handy generators

HTML Game

Learn HTML concepts through interactive gameplay

Join Our Web Development Training Program

Master frontend & backend development with hands-on projects.

Menu

Topics

Getting Started

  • What is HTML?
  • How the Web Works
  • Setting Up Your Environment
  • Your First HTML Page

HTML Document Structure

  • The DOCTYPE Declaration
  • The HTML Element
  • The Head Section
  • Meta Tags
  • The Body Element
  • HTML Comments

Text and Formatting

  • Headings (h1-h6)
  • Paragraphs
  • Line Breaks and Horizontal Rules
  • Text Formatting (Bold, Italic, etc.)
  • Quotations and Citations
  • Preformatted Text and Code
  • Subscript and Superscript

Links and Navigation

  • Creating Links
  • Absolute vs Relative URLs
  • Link Targets and Attributes
  • Email and Phone Links
  • Internal Page Links

Images and Media

  • Adding Images
  • Image Attributes
  • Image Formats
  • Figure and Figcaption
  • Responsive Images
  • Audio Elements
  • Video Elements
  • Embedding Content

Lists

  • Unordered Lists
  • Ordered Lists
  • Description Lists
  • Nested Lists

Tables

  • Table Basics
  • Table Headers and Footers
  • Spanning Columns and Rows
  • Table Captions
  • Styling Tables

Forms - Part 1 (Basics)

  • Introduction to Forms
  • Text Input Fields
  • Labels and Placeholders
  • Textarea Element
  • Checkboxes
  • Radio Buttons

Forms - Part 2 (Advanced)

  • Select Dropdowns
  • File Upload Inputs
  • HTML5 Input Types
  • Form Validation
  • Form Buttons
  • Fieldsets and Legends
  • Form Accessibility

Semantic HTML

  • What is Semantic HTML?
  • Header and Footer
  • Nav Element
  • Main and Article
  • Section and Aside
  • Div vs Semantic Elements
  • Time and Mark Elements

HTML5 Features

  • HTML5 Overview
  • Canvas Element
  • SVG in HTML
  • Geolocation API
  • Drag and Drop
  • Local Storage
  • Web Workers

Web Accessibility

  • Introduction to Accessibility
  • ARIA Attributes
  • Keyboard Navigation
  • Alt Text Best Practices
  • Color Contrast and Typography
  • Testing for Accessibility

Best Practices & SEO

  • HTML Best Practices
  • SEO Fundamentals
  • Meta Tags for SEO
  • Structured Data
Falytom logoFALYTOM

Learn technologies like HTML, CSS, JavaScript, React, NodeJS and more through interactive games, tutorials, components and free tools. Transform your businesses with AI chatbots, SEO-optimized websites, and professional development services.

© 2025 Tomilola Group
  • Facebook logo
  • Twitter logo
  • Instagram logo
  • LinkedIn logo
  • GitHub logo
  • YouTube logo