How does the "cite" attribute work for <blockquote>?

I am currently reading a book on HTML and CSS and came across the blockquote tag in an example.
The example given has included the cite attribute with a link a wikipedia page.
I have copied this code into my own editor but the cite doesn’t show at all; nor does it provide any additional functionality such as a clickible link to the cite value.

Am I doing something wrong or have I misunderstood how cite works?

Nope, you’re not missing anything. That URL is there for user agents. Robots and assistive technologies can still follow it.

To expose the link as a citation, we can include a <cite></cite> element (containing an anchor element) adjacent to the blockquote. Modern HTML might wrap both blockquote and cite in a <figure></figure> element, with the citation appearing in the <figcaption></figcaption>.

Let’s see what MDN has to say about the usage:

<cite>: The Citation element

2 Likes

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.