Quotations & Citations
Quotations & Citations in HTML
Welcome to Topic 3.2! π¬
Whenever you write a school essay, an English speech, or a history project, you often:
- Quote inspiring words from great leaders like Dr. APJ Abdul Kalam, Mahatma Gandhi, or Swami Vivekananda,
- Reference the name of a famous book (like Wings of Fire or Discovery of India),
- Explain short forms like ISRO, NASA, or HTML,
- Provide contact details at the end of the document.
In HTML, we have dedicated Quotation and Citation Tags designed specifically for these situations. They help browsers, readers, and Google search understand who said what and where the information came from!
1. Long Block Quotations: <blockquote>
When you want to quote a long sentence or an entire paragraph from a speech, a book, or an external website, use the <blockquote> tag:
How Does the Browser Display It?
The browser automatically indents the entire block from the left and right margins with generous spacing. This makes the quoted text immediately stand out from regular paragraphs!
cite Attribute:
Inside <blockquote>, you can add a cite="https://..." attribute to specify the URL where the quote was taken from. It is invisible on screen, but search engines love it for source verification!2. Short Inline Quotations: <q>
What if you just want to quote a short phrase inside a regular sentence? Use the <q> tag!
The Magic of the <q> Tag! β¨
You do NOT need to type quotation marks (") on your keyboard!
The web browser automatically detects the <q> tag and inserts proper, stylish curly double quotation marks ("...") around your text.
β οΈ Beginner Mistake: Never type "..." yourself inside <q> tags, or the browser will show awkward double-double quotes like ""Be the change""!
3. Abbreviations & Acronyms: <abbr> π‘
In our daily studies, we use hundreds of short forms: ISRO, NASA, HTML, CPU, WHO, ATM.
The <abbr> (Abbreviation) tag allows you to write the short form while storing the complete full form inside the title attribute:
What Happens on the Screen?
- 1The browser displays the text with a subtle dotted underline below it (e.g., <ins style="text-decoration: underline dotted;">ISRO</ins>).
- 2When a user hovers their mouse cursor over the word, a floating tooltip box pops up revealing the full form!
4. Creative Work Citations: <cite> π
When you mention the title of a creative workβsuch as a book, a poem, a movie, a song, a painting, or a scientific paperβwrap it inside the <cite> tag:
How Does the Browser Display It?
The browser automatically renders the title of the work in an elegant italic font.
<cite>:
The <cite> tag is meant for the Title of the Work (the book, movie, or song). It is NOT meant for the author's person name!
- β
Correct: <cite>Gitanjali</cite> by Rabindranath Tagore
- β Wrong: Gitanjali by <cite>Rabindranath Tagore</cite>5. Author Contact Information: <address> π
The <address> element is used to supply contact details (author name, physical address, email, phone number, social media links) for the owner or author of the webpage:
How Does the Browser Display It?
- Text inside
<address>is automatically rendered in italics. - Screen readers recognize this section specifically as contact data.
- It usually lives inside the
<footer>at the bottom of a website.
6. Reversing Text: <bdo> (Bi-Directional Override) π
bdo stands for Bi-Directional Override. It is used to override the current text reading direction.
Most languages (like English and Hindi) are read Left-to-Right (dir="ltr"). Some languages (like Arabic and Urdu) are read Right-to-Left (dir="rtl").
You can use <bdo dir="rtl"> to flip English text completely backwards!
What Appears on the Screen?
The browser displays:
It reads the letters backwards from right to left! It is a fun and powerful tool for multilingual websites.
Master Comparison Table: Quotation Tags
| Tag | Tag Name | Browser Visual Effect | When to Use It |
|---|---|---|---|
<blockquote> | Block Quote | Indented block with left & right margins | Long quotes taken from another speech or document |
<q> | Inline Quote | Automatically adds double quotes ("...") | Short quotes embedded inside a regular sentence |
<abbr> | Abbreviation | Dotted underline + hover tooltip | Acronyms and short forms (ISRO, WHO, HTML) |
<cite> | Citation | Italic font style | Titles of books, poems, movies, or research papers |
<address> | Address | Italic font with semantic contact markup | Author or company contact details |
<bdo> | BDO | Flips text direction (LTR vs RTL) | Reversing text direction |
Common Beginner Mistakes to Avoid
- 1β οΈ Typing Manual Quotes Inside
<q>:
- Wrong:
<p>Gandhi said, <q>"Truth is God."</q></p>(Shows: ""Truth is God."") - Correct:
<p>Gandhi said, <q>Truth is God.</q></p>(Shows: "Truth is God.")
- 1β οΈ Forgetting the
titleAttribute in<abbr>:
- Without
title="Full Form", the tooltip will not work! Always providetitle.
- 1β οΈ Using
<cite>for a Person's Name:
- Use
<cite>only for the book, song, or movie title, not the author's name.
Quick Summary
- Use
<blockquote>for long quotations; it automatically indents the text block. - Use
<q>for short inline quotes; the browser automatically adds"..."quotes. - Use
<abbr title="...">to show full forms when users hover over acronyms. - Use
<cite>for creative work titles (books, songs, films); it renders in italics. - Use
<address>for author or organization contact information. - Use
<bdo dir="rtl">to reverse text reading direction.
Practice Quiz
Test your understanding with these multiple-choice questions:
1. Which HTML tag automatically adds quotation marks around text without you typing them?
A. <blockquote> B. <quote> C. <q> D. <cite> Answer: C Explanation: The <q> tag represents short inline quotations and browsers automatically insert quotation marks around the enclosed text.
2. How do you provide the full expansion for an acronym so it appears as a tooltip on hover?
A. <abbr full="Indian Space Research Organisation">ISRO</abbr> B. <abbr title="Indian Space Research Organisation">ISRO</abbr> C. <abbr desc="Indian Space Research Organisation">ISRO</abbr> D. <acronym text="Indian Space Research Organisation">ISRO</acronym> Answer: B Explanation: The title attribute inside the <abbr> element specifies the complete expansion shown when hovering over the abbreviation.
3. What is the <cite> tag used for?
A. To cite the title of a creative work like a book, movie, or poem B. To display the physical home address of the user C. To write large block quotes D. To underline text Answer: A Explanation: The <cite> element represents the title of a work (e.g., a book, paper, essay, film, or song) and renders in italics.
4. Which tag should you use for long, multi-line quotations that require an indented block?
A. <q> B. <blockquote> C. <longquote> D. <cite> Answer: B Explanation: <blockquote> is a block-level element designed for long quotations, automatically applying left and right indentation margins.
5. What is the semantic purpose of the <address> element?
A. To locate the user using GPS B. To provide contact information for the author or owner of the document or article C. To format house numbers in bold D. To open a map application Answer: B Explanation: The <address> element provides contact information for a person, author, or organization.
Practice Challenge (Try It Yourself)
- 1Open VS Code and open your
index.htmlfile. - 2Inside
<body>, create an Inspiration & Tribute Card for Dr. APJ Abdul Kalam:
- Add an
<h1>heading:Tribute to Dr. A.P.J. Abdul Kalam. - Add an
<abbr>tag forISROwith its full form in thetitleattribute. - Mention his famous autobiography using
<cite>Wings of Fire</cite>. - Add his famous quote using
<blockquote>. - Add a short quote in a sentence using
<q>. - At the bottom, add an
<address>tag with your name and school name.
- 1Save the file (
Ctrl + S) and view your tribute webpage live with Live Server! π
HTML Entities, Symbols & Emojis
Continue learning with hands-on practice, examples, and exercises in the upcoming topic.
Related Lessons
| Previous Lesson | Next Lesson |
|---|---|
| Text Formatting Elements | HTML Entities, Symbols & Emojis |
Practice Quiz
Test your understanding of this lesson with 5 questions. Each question has one correct answer.