HTML Text Quotations and Citations
It includes the following HTML tags.
- <abbr>: It defines the full explaination of a term or a name.
- <address>: It specifies the contact information of any related document.
- <cite>: It defines the title of a project in an HTML document.
- <q>: It defines a short quotation in a block of texts.
- <blockquote>: It defines a section of text covered from another source.
- <bdo>: It defines a part of text which can override the text direction.
1. HTML <abbr> tag
It defines the abbreviation or acronym of a term.
Example
<!DOCTYPE html> <html> <head> </head> <body> <p> <abbr title="Hyper Text Markup Language"> HTML </abbr> is the world most common internet language. </p> </body> </html>
Output on the browser
HTML is the world most common internet language.
The <abbr> tag and title attribute are dependent of each other. When you hover over the word 'HTML', 'Hypertext MarkUp Language' will be appeared which denotes the abbreviation of HTML.
2. HTML <address> tag
It specifies the contact information of any related document.
Example
<!DOCTYPE html> <html> <head> </head> <body> <h3> www.learncodinghub.com </h3> <address> Author:Swamikanta Longjam, <br> Address:Top Siphai, <br> Manipur, <br> India <br> </address> </body> </html>
Output on the browser
www.learncodinghub.com
Author:Swamikanta Longjam,Address:Top Siphai,
Manipur,
India
3. HTML <cite> tag
It defines the title of a project in an HTML document.
Example
<!DOCTYPE html> <html> <head> </head> <body> <img src="images/book.jpg"> <p> <cite> A book </cite> for JavaScript written by Nicholas. </p> </body> </html>
Output on the browser
A book for JavaScript written by Nicholas.
Only the title name should be written within the <cite> element. A person's name can't be a title of a project.
4. HTML <q> tag
It defines a short quotation in a block of texts.
Example
<!DOCTYPE html> <html> <head> </head> <body> According to the encyclopedia, <q> The Earth revolves around the Sun. </q> </body> </html>
Output on the browser
The <q> tag is used only for a short sentence or a block of texts within a sentence. To define quotes having multiple sentence, use <blockquote> tag
5. HTML <blockquote> tag
It defines a section of text covered from another source.
Example
<!DOCTYPE HTML> <html> <head> </head> <body> <blockquote cite = "https://www.olympic.org/the-ioc"> The IOC is a not-for-profit independent international organization made up of volunteers. The IOC President presides over all its activities, while the IOC Session and Executive Board are responsible for taking the main decisions for the organization. </blockquote> </body> </html>
Output on the browser
The IOC is a not-for-profit independent international organization made up of volunteers. The IOC President presides over all its activities, while the IOC Session and Executive Board are responsible for taking the main decisions for the organization.
The <q> tag is used only for a short sentence or a block of texts within a sentence. To define quotes having multiple sentence, use <blockquote> tag
6. HTML <bdo> tag
It defines a part of text which can override the text direction.
Example
<!DOCTYPE html> <html> <head> </head> <body> <bdo dir="ltr"> DIRECTION </bdo> <br> <bdo dir="rtl"> DIRECTION </bdo> </body> </html>
Output on the browser
DIRECTION
DIRECTION
Can you answer it?
Which HTML tag must use to define the address or any useful info of author?
Please refer to the above explaination.Which HTML tag can make the text bold?
<address> tagWhich HTML tag defines the title of a project or work?
<cite> tagWhich HTML tag can defines a short quotation?
<q> tagWhich HTML tag defines a section quoted from another sources?
<blockquote> tagWhich HTML tag can change the direction of texts?
<bdo> tag
