How to cite a quote from the book?

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.

1 Like

Hello
you can use this model:

<blockquote>
    <p>Intellectuals solve problems, geniuses prevent them.</p>
    <footer>
      <cite><a href="cite-URL"><i>Albert Einstein</i></a></cite>
    </footer>
</blockquote>

the output will be like this :

Intellectuals solve problems, geniuses prevent them.

Albert Einstein
1 Like

But, if the quote is from the book that’s not online anywhere, how do I cite in that case?

Sorry i cannot answer, i didn’t found enough information about this topic.

1 Like

No problem, thanks for the replies and effort :slight_smile:

1 Like

I guess, this will be the a good way:

<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.

Source: MDN - <cite>

In the bottom of the article you can find example of using cite when you don’t have a link to the source.

1 Like

Thanks! I didn’t noticed that :slight_smile: