Loading

Quotation

  • Quotations refer to the use of characters to indicate that a portion of text should be treated as a single unit.
  • Some of the quotations are <q>,<abbr>,<blockquote>,<address>.

<blockquote> for Quotation

  • The <blockquote> indicates that a block of text is a quotation from another source.
  •  It's typically used for longer quotations that span multiple paragraphs. 

Example:

<!DOCTYPE html>
<html>

<head>
    <title>Quotation</title>
</head>

<body>
    <blockquote>
        <p>"To be or not to be, that is the question."</p>
        <p>- William Shakespeare, Hamlet</p>
    </blockquote>

</body>

</html>

Output:


<q> for Short Quotation

  • The <q> element in HTML defines a short inline quotation.

Example:

<!DOCTYPE html>
<html>

<head>
    <title>Quotation</title>
</head>

<body>
    <p>He said <q>Life is like a box of chocolates.</q></p>
</body>

</html>

Output:


<abbr> for Abbreviation

  • The <abbr>  is used to define an abbreviation or an acronym.

Example:

<!DOCTYPE html>
<html>

<head>
    <title>Quotation</title>
</head>

<body>
    <p><abbr title="World Wide Web">WWW</abbr> is an essential part of the internet.</p>
</body>

</html>

Output:


<address> for Addresses

  • The <address> is used to define contact information for the author or owner of a document, an article, or a section within a webpage.
  • It can include the name, email address, physical address, phone number, or any other relevant contact details.

Example:

<!DOCTYPE html>
<html>

<head>
    <title>Quotation</title>
</head>

<body>
    <address>
        <p>Contact the author:</p>
        <p><a href="mailto:author@example.com">author@example.com</a></p>
        <p>123 Main Street, Cityville</p>
        <p>Phone: 123-456-7890</p>
    </address>


</body>

</html>

Output: