HTML Blockquote Generator
WM-49Type the quotation and get blockquote markup with the source address in the cite attribute and the author and title in a figcaption.
Runs in your browser. Nothing is uploaded.
Quotation, then optional cite:, author:, title: lines
HTML
How to use it
- Type or paste the quotation. Separate paragraphs with a blank line.
- Add optional lines: cite: for the source address, author: for the person, title: for the work.
- Choose a figure with figcaption, or a plain blockquote with the attribution after it.
- Copy the HTML into your page.
Where the source goes: cite attribute versus cite element
The cite attribute on blockquote holds the address of the source. Browsers do not display it, so a reader never sees it; that is why the generator also writes the attribution as visible text. The cite element is a different thing: it marks the title of a work, such as a book or article, and is not meant for a person's name. The generator puts the author as plain text and wraps only the title line in cite. Treat it as extra data for your own scripts, not as the credit.
Figure and figcaption or a plain blockquote
The figure form wraps the blockquote and a figcaption in a figure, which ties the credit to the quotation in the document structure. The plain form writes the blockquote alone and puts the credit in a paragraph after it. Do not put the credit inside the blockquote: the element is for the quoted words only. Browsers indent a blockquote by default and add no quotation marks, so type none yourself. For a short quotation inside a sentence, the q element is the better fit, and it adds the marks for you.
What the generator changes in your text
Each blank-line-separated block becomes its own p inside the blockquote. Single line breaks inside a block stay as line breaks in the source, which browsers show as a space, unless you tick Keep line breaks as br. Angle brackets, ampersands and quotes are escaped, so a quotation that contains tags shows them as typed. A cite address that begins with javascript: is refused. The tool does not fetch the source or check that the address works.
Questions people ask
How do I add a source URL to a blockquote?
Use the cite attribute: blockquote cite="https://example.com/page". Type the address on a cite: line and the tool writes it. Browsers do not display the value, so also name the source in visible text, which the figcaption option does for you.
What is the difference between blockquote and q?
blockquote is a block-level quotation that usually runs to one or more paragraphs and is indented by default. q is an inline quotation that sits inside a sentence and gets quotation marks from the browser. Use blockquote for longer passages and q for a few words.
Should the author go inside the blockquote?
No. The element is for the quoted words only. Put the credit in a figcaption next to the blockquote inside a figure, or in a paragraph after it. This generator offers both layouts so you can pick the one that suits your page.
Which element holds the title of the book or article?
The cite element holds the title of the work, such as a book, paper or film. It is not for the author's name. Type the title on a title: line and the generator wraps it in cite inside the figcaption.
Does blockquote add quotation marks?
Not by default. Browsers indent the block with a margin and show no marks. If you want marks, add them with CSS or in the text. The inline q element is the one that adds marks automatically.
About this tool
Each blank-line-separated paragraph of the quotation becomes a p inside a blockquote. The cite line becomes the cite attribute, which is the address of the source: browsers do not show it, so the attribution is also written as visible text. The author line is plain text and the title line is wrapped in a cite element, which is meant for the title of a work, not a person. Text is escaped, so angle brackets and ampersands appear as typed. Quotation marks are not added (blockquote has none by default). A cite value starting with javascript: is refused. Nothing is uploaded.