HTML Quotation and Citation Elements

HTML provides two main elements for handling quotations and citations:

  1. <blockquote> element: It is used to indicate a section of quoted content. The <blockquote> element is used to enclose a long quotation, which is usually indented and set off from the main text block. For example:
<blockquote>
  <p> "Education is not the filling of a pail, but the lighting of a fire." </p>
  <footer> William Butler Yeats </footer>
</blockquote>

<cite> element: It is used to indicate the source of a quote or a reference to a work that is being cited. The <cite> element is used to enclose the name of the source, such as the title of a book or the URL of a website. For example:

<p> In his famous poem, <cite> The Road Not Taken </cite>, Robert Frost writes:</p>
<blockquote>
  <p> "Two roads diverged in a wood, and I— I took the one less traveled by, And that has made all the difference." </p>
  <footer> Robert Frost </footer>
</blockquote>

Note that the <footer> element is also used in the above examples to indicate the author of the quote.

You may also like...

Popular Posts

Leave a Reply

Your email address will not be published. Required fields are marked *