×

Quoting [11/17]

In HTML, there are several tags for quoting:

  • Use the <q> tag, if you want to insert a phrase or a sentence from another source into your paragraph. The text enclosed in this tag is automatically rendered in quotation marks.
  • Use the <blockquote> tag to quote a chunk of content from another source, particularly if you use in-line changes, like annotations (i.e., your own words) or abbreviations ([…]).
  • Use the <cite> tag to identify the source of your quotation, both for <q> and for <blockquote>.

Do it
HTML
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Quoting</title> </head> <body> <h1>Practicing Quotations</h1> <p>Here is a quotation from Bulgakov&apos;s Master and Margarita:</p> [Voland] said that you should never ask anyone for anything. [&hellip;] They will make the offer and they will give of their own accord. <p>Hasta la vista, baby is a catch-phrase from the Terminator movie.</p> <p>Muffin prefers the following proverb: A cat in gloves catches no mice. He constantly repeats it, you know.</p> </body> </html>
CSS
HTML Academy

Use applicable quoting tags for:

  1. Quotation source "Master and Margarita"
  2. Text passage "[Voland] said that you should never ask anyone for anything. […] They will make the offer and they will give of their own accord."
  3. and for the phrase "Hasta la vista, baby" .
  1. Find and mark up the fourth quote yourself.
Theory Check Next