HTML Marking-up Quotes Inline with

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Example

The q element can be used for a quote that is part of a sentence:

<p>She wrote <q>The answer is 42.</q> and everyone agreed.</p>

Quotation marks

4.01

Quotation marks should not be added. User agents should (in HTML 4.01) resp. must (in HTML 4.0) render them automatically.

5

Quotation marks must not be added. User agents will render them automatically.

Source URL (cite attribute)

The cite attribute can be used to reference the URL of the quoted source:

<p>She wrote <q cite="http://example.com/blog/hello-world">The answer is 42.</q> and everyone agreed.</p>

Note that browsers typically don’t show this URL, so if the source is relevant, you should add a hyperlink (a element) in addition.



Got any HTML Question?