Hey all,
I know how to cite a quote from another website via cite and giving it a URL,
but what about when I want to quote a sentence from a book? Should I put inside the cite a title of the book and author, or the cite attribute just allow to give a URL?
And how to quote something like this with cite:
“Intellectuals solve problems, geniuses prevent them.”
Albert Einstein
For this I suggest you to use the blockquote element. You can find more info and how to use it on a MDN page.
On the same page you can find the description and the usage of the cite attribute: A URL that designates a source document or message for the information quoted. This attribute is intended to point to information explaining the context or the reference for the quote.
<blockquote>
<p>Intellectuals solve problems, geniuses prevent them.</p>
<footer>
<cite><i>Name of the Work</i></cite> by Albert Einstein.
</footer>
</blockquote>
Here is what I’ve found: To include a reference to the source of quoted material which is contained within a <blockquote> or <q> element, use the cite attribute on the element.