HTML Citation Generator
WM-28Type the title of the work and copy a cite element. Add an href line and the title becomes a link inside the element.
Runs in your browser. Nothing is uploaded.
Title of the work (optional lines: href:, lang:, id:, class:)
HTML
How to use it
- Type the title of the work, such as a book, article, film or paper.
- Optionally add an href: line to link the title.
- Choose whether to wrap the element in a paragraph.
- Copy the markup.
What the cite element is for
The cite element marks the title of a creative work: a book, a paper, a song, a film, a web page, a legal case. The current HTML standard says a person name is not the title of a work, so it should not be wrapped in cite, even though older specifications allowed that. Browsers show it in italics by default, but the meaning is what counts, since tools that read the page can tell it is a title.
cite element versus cite attribute
These are two different things with the same name. The element is visible text in your page. The cite attribute, found on blockquote, q, del and ins, holds the web address of the source and is not shown by browsers. If you quote someone, put the work title in a cite element near the quote and the address in the attribute. The HTML Quote Generator on this site writes the attribute side.
Questions people ask
How do I write a citation in HTML?
Put the title of the work between cite tags, for example a book title. For a link to the source, put an anchor inside the cite element. The element does not format a full reference such as APA, so type the other parts as normal text next to it.
Can I put an author name in the cite tag?
The current HTML standard says a person name is not the title of a work, so it should not go inside cite. Put the author in plain text next to the cite element, or in a figcaption if you are quoting.
Why does my cite text look italic?
Browsers apply italics to cite by default. It is only a default style. Override it in CSS with font-style: normal if you want upright text, and the markup keeps its meaning.
What is the difference between cite and blockquote?
cite names the work, while blockquote holds a long quotation taken from it. They often appear together: the quote in a blockquote, and a cite in a figcaption below it naming the book or article.
Does the cite tag help SEO?
There is no sign that search engines rank pages for using cite. Use it because it makes the meaning of the text clear to people and to software that reads the page, not as a ranking trick.
About this tool
Writes <cite> around the title you type. With an href: line the title becomes a link inside the cite element. The cite element is meant for the title of a creative work such as a book, article, film or paper; it is not meant for a person name, so this tool does not add one for you. Browsers usually show cite in italics, which is a default style and not something this tool sets. A javascript: link is refused. The tool does not format a full citation in APA, MLA or any other style. Optional lines: id:, class:, title:, lang:, data-* and aria-*.