How to use the cite tag

6 May 10 ,

HTML has a handy tag for marking up citations, such as book or magazine names. You can also use it to mark up the source of quotes.

Use the <cite> tag for book titles and such

To insert the <cite> tag with Textile, simply surround the citation with double question marks, like so:

??Building Findable Websites?? is a great book.

The underlying html will then be:

<cite>Building Findable Websites</cite> is a great book.

Normally, this should render the name in italics, like this:
Building Findable Websites is a great book.

Use the <cite> tag for people

If you include a quote from someone in a post, you can use the <cite> tag to identify the source. For example:

bq. "Acquiring a dog may be the only opportunity
a human ever has to choose a relative"
-- ??Mordecai Siegal??

First, we are applying the <blockquote>, using bq., then we surround the speaker’s name with ??. This will create html like:

<blockquote><p>"Acquiring a dog may be the only
opportunity a human ever has to choose a relative"
-- <cite>Mordecai Siegal</cite></p></blockquote>

This will look something like:

“Acquiring a dog may be the only opportunity
a human ever has to choose a relative”
Mordecai Siegal

Other Textile resources

No comments yet…Be the first!

Comments are closed for this article.