Golang Tutorials - Learn Go Programming with Easy Step-by-Step Guides

Explore comprehensive Golang tutorials for beginners and advanced programmers. Learn Go programming with easy-to-follow, step-by-step guides, examples, and practical tips to master Go language quickly.

Quotations in HTML

Quotations in HTML

? Quotations in HTML

HTML provides special elements to mark quotations and quoted text clearly.


1. <q> — Inline Quotation

  • Used for short, inline quotations within a paragraph.

  • Browsers usually add quotation marks automatically.

<p>She said, <q>HTML is fun to learn!</q></p>

Output:
She said, “HTML is fun to learn!”


2. <blockquote> — Block Quotation

  • Used for longer quotations displayed as a separate block.

  • Typically indented by browsers to stand out.

<blockquote>  <p>This is a longer quotation that stands out from the rest of the text.</p></blockquote>

3. The cite Attribute

  • Can be used with <blockquote> or <q> to provide a URL or source of the quote.

<blockquote cite="https://www.example.com/article">  <p>Quote content here...</p></blockquote>

Summary

ElementUsageOutput Style
<q>Short inline quotationsQuotation marks added inline
<blockquote>Long, block-level quotationsIndented block
cite attrSource of the quoteMetadata (not visible by default)

Need examples on styling quotations or using quotes in different languages?

Disclaimer for AI-Generated Content:
The content provided in these tutorials is generated using artificial intelligence and is intended for educational purposes only.
html
docker
php
kubernetes
golang
mysql
postgresql
mariaDB
sql