Home · Examples

Be sure to 'cite' the authors of your quotes!

In general, it's a good practice to include the cite attribute when you use a <blockquote> element so the user will have some sort of reference of what URL or from whom the quote was taken from.

However, this attribute is never displayed on-screen. So most users simply disregard it (or, are unaware that it exists) when coding their pages. But not so now! This CSS code:

blockquote[cite]::after {
  content:"Quote from: " attr(cite);
  display:block;
}

Continue reading Comments (0) Dec 26, 2006

<< First < Previous [5 / 5] Next > Last >>