H

HTML Handbook

Clean • Professional

HTML Quotation & Related Tags – Interview Questions & Answers

2 minute

HTML Quotation & Related Tags — Interview Questions & Answers

<blockquote> – Long Quotation

Ques: What is the <blockquote> tag used for?

Ans: It defines a long quotation or excerpt from another source, usually displayed with indentation.

Example:

<blockquote cite="<https://www.example.com/article>">
  The future belongs to those who believe in the beauty of their dreams.
</blockquote>

Ques: What is the purpose of the cite attribute in <blockquote>?

Ans: It specifies the source URL of the quotation, helping search engines and readers identify the reference.

Ques: How does a browser typically display a <blockquote>?

Ans: Indented text block with extra space before and after — visually separates the quote.

<q> – Short Quotation

Ques: What is the difference between <blockquote> and <q>?

TagPurposeDisplay
<blockquote>Long quotations (paragraphs)Block element (indented)
<q>Short inline quotesInline element (adds quotation marks)

Example of <q> usage:

<p>Einstein once said, <q>Imagination is more important than knowledge.</q></p>

<cite> – Citation

Ques: What is the purpose of the <cite> tag?

Ans: Used to reference the title of a creative work, such as a book, article, movie, or website.

Example:

<p><cite>The Great Gatsby</cite> by F. Scott Fitzgerald</p>

Ques: Does <cite> affect SEO or accessibility?

Ans: Yes, it gives context and helps screen readers identify referenced works.

<abbr> – Abbreviation

Ques: What is the <abbr> tag used for?

Ans: Defines an abbreviation or acronym and provides its full form through the title attribute.

Example:

<p>The <abbr title="World Health Organization">WHO</abbr> was founded in 1948.</p>

Ques: Why is <abbr> important for accessibility?

Ans: Screen readers read the full term from the title attribute, helping visually impaired users.

<address> – Contact Information

Ques: What does the <address> tag represent?

Ans: Defines contact information for the author or owner of a document or article.

Example:

<address>
  Written by John Doe.<br>
  Visit us at:<br>
  www.example.com<br>
  123 Web Street, HTML City
</address>

Ques: Can <address> be used for physical addresses only?

Ans: No — it can include email, URLs, social media links, or other contact info.

Advanced Questions

Ques: What is the difference between <cite> and <address>?

TagPurposeExample
<cite>Reference a creative work<cite>Hamlet</cite>
<address>Provide author’s contact info<address>[email protected]</address>

Ques: How can you style quotation marks for <q> in CSS?

Ans: Using the quotes property:

 

Article 0 of 0