[フレーム]

W3.CSS Quotes

Quotes

W3.CSS panels are useful for displaying quotations.

Quotes can be styled with borders, colors, fonts, sizes, and cards.

A Simple Quote

A left border and a light background can make a quotation stand out.

"Make it as simple as possible, but not simpler."

Albert Einstein

Example

<div class="w3-panel w3-leftbar w3-light-grey">
<p class="w3-xlarge w3-serif">
<i>"Make it as simple as possible, but not simpler."</i>
</p>
<p>Albert Einstein</p>
</div>
Try it Yourself »

Use the blockquote Element

The HTML <blockquote> element is designed for quotations from another source.

W3.CSS classes can be added directly to the element.

"The future depends on what you do today."

Mahatma Gandhi

Example

<blockquote class="w3-panel w3-leftbar w3-light-grey">
<p class="w3-large w3-serif">
<i>"The future depends on what you do today."</i>
</p>
<p>Mahatma Gandhi</p>
</blockquote>
Try it Yourself »

Use <blockquote> when the content is a real quotation.


Large Quotes

Font-size and font classes can make important quotations more prominent.

"Simplicity is the ultimate sophistication."

Leonardo da Vinci

Example

<div class="w3-panel w3-leftbar w3-sand">
<p class="w3-xxlarge w3-serif">
<i>"Simplicity is the ultimate sophistication."</i>
</p>
<p>Leonardo da Vinci</p>
</div>
Try it Yourself »

Using HTML Symbols

You can use standard HTML symbols to decorate quotes, notes, and other content.

You can even use emojis.

No icon library is required.

Symbol Code
&#10077;
&#10078;
&#8220;
&#8221;
&#8811;
&#9984;
&#9986;
&#9988;
&#10004;
📌 &#128204;
📍 &#128205;

Simplicity is the ultimate sophistication.

Leonardo da Vinci

Example

<div class="w3-panel w3-light-grey">
<span style="font-size:150px;line-height:0.6em;opacity:0.2">&#10077;</span>
<p class="w3-xlarge" style="margin-top:-40px">
<i>Simplicity is the ultimate sophistication.</i>
</p>
<p>Leonardo da Vinci</p>
</div>
Try It Yourself »


Quotes as Cards

Combine quotes with w3-card to create a stronger visual component.


Great things are done by a series of small things brought together.

Vincent van Gogh



Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut non massa vitae risus fermentum ullamcorper. Phasellus risus urna, ornare in aliquam id, porttitor sit amet sapien. Nulla facilisi.

Example

<div class="w3-container w3-card-4 w3-light-grey">
<span class="w3-text-red" style="font-size:100px">❝</span>
<p class="w3-xxlarge w3-serif w3-text-red">&#10077;</p>
<p class="w3-large w3-serif">
<i>Great things are done by a series of small things brought together.</i>
</p>
<p>Vincent van Gogh</p>
</div>
Try it Yourself »

What You Have Learned

  • W3.CSS panels can be used to display quotations
  • The HTML <blockquote> element is intended for quotations
  • Border, color, font, and size classes can be combined to style quotes
  • HTML symbols can add decorative quotation marks
  • Quotes can be displayed inside cards

More Examples

Explore more ways to style W3.CSS quotes.


Programming in C will slowly decline.
Programming in JavaScript will be more important.

Example

<div class="w3-panel w3-center w3-leftbar w3-sand">
<p><i class="w3-serif w3-xlarge">
<span style="font-size:150px;line-height:0.6em;opacity:0.2">&#10004;</span>
Programming in C will slowly decline.<br>
Programming in JavaScript will be more important.</i></p>
</div>

Try It Yourself »


Learning never exhausts the mind.

Leonardo da Vinci

Example

<div class="w3-panel w3-center w3-sand">
<p class="w3-xxlarge w3-serif">&#10077;</p>
<p class="w3-xlarge"><i>Learning never exhausts the mind.</i></p>
<p>Leonardo da Vinci</p>
</div>
Try it Yourself »

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut non massa vitae risus fermentum ullamcorper. Phasellus risus urna, ornare in aliquam id, porttitor sit amet sapien. Nulla facilisi.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut non massa vitae risus fermentum ullamcorper. Phasellus risus urna, ornare in aliquam id, porttitor sit amet sapien. Nulla facilisi.

Example

<div class="w3-panel w3-light-grey">
<span style="font-size:150px;line-height:0.6em;opacity:0.2">&#10077;</span>
<p class="w3-xlarge" style="margin-top:-40px">
<i>"Lorem ipsum dolor sit amet, consectetur adipiscing elit ..."</i></p>
<p>Albert Einstein</p>
</div>

Try It Yourself »


Large Quote Symbol

Good design is as little design as possible.

Dieter Rams

Example

<div class="w3-panel w3-light-grey">
<span style="font-size:120px;line-height:0.6em;opacity:0.2">&#10077;</span>
<p class="w3-xlarge">
<i>Good design is as little design as possible.</i>
</p>
<p>Dieter Rams</p>
</div>
Try it Yourself »

Dark Quote

Stay hungry. Stay foolish.

Steve Jobs

Example

<div class="w3-panel w3-black">
<p class="w3-large w3-serif">
<span class="w3-xxlarge w3-margin-right">&#10077;</span>
<i>Stay hungry. Stay foolish.</i>
</p>
<p>Steve Jobs</p>
</div>
Try it Yourself »

New

W3Schools Adventure App

Coding fundamentals as a game. Bite-sized lessons and challenges.

Ready to start your journey? Your streak is waiting.
+60 XP
W3Schools Adventure tutor
W3Schools Adventure map
×

Contact Sales

If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
sales@w3schools.com

Report Error

If you want to report an error, or if you want to make a suggestion, send us an e-mail:
help@w3schools.com

FORUM ABOUT ACADEMY
W3Schools is optimized for learning and training. Examples might be simplified to improve reading and learning.
Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness
of all content. While using W3Schools, you agree to have read and accepted our terms of use, cookies and privacy policy.

Copyright 1999-2026 by Refsnes Data. All Rights Reserved. W3Schools is Powered by W3.CSS.

AltStyle によって変換されたページ (->オリジナル) /