HTML Quotations and Citation Elements | Quotation Tags in HTML
HTML Quotations
HTML Quotation refers to the process of enclosing text in HTML code with quotation marks or other quotation-related tags to indicate that the text is a quote or citation from another source.
There are several HTML tags that are commonly used for quotations, including:
The <blockquote>
This tag is used to indicate a block quotation, which is a quote that spans multiple lines and is set off from the surrounding text. It can be used to indicate quotes from books, articles, speeches, or any other source.
As an example:
Editor
The <q>
This tag is used to indicate a short inline quotation, which is a quote that appears within a sentence or paragraph. The text within the <q>
tags is typically surrounded by quotation marks by default, but this can be changed using CSS.
As an example:
Editor
The <cite>
This tag is used to indicate the title of a work that has been cited in a document or article. It can be used to indicate a book, article, website, or any other type of work.
As an example:
Editor
The <abbr>
This tag is used to indicate an abbreviation or acronym. It can include a title attribute that provides the full meaning of the abbreviation, which is displayed when a user hovers over the abbreviation.
As an example:
Editor
The <address>
This tag is used to indicate contact information for the author or owner of a document or article. It can include information such as the author's name, email address, physical address, and phone number.
As an example:
Editor
The <bdo>
The <bdo>
element is used to indicate that the text within it should be displayed in the opposite direction to the default. It stands for "Bi-Directional Override"
. The direction of the text is specified using the dir attribute, which can have the values ltr (left-to-right) or rtl (right-to-left).
As an example: