Thursday, 28 July 2022

8 - Two Types of Quotation in HTML

Long and Short Quotations In HTML 

Quotes are used to emphasize excerpts of text. According to HTML specifications, there are three elements which are supposed to semantically mark up quotations, namely <blockquote>, <q> and <cite>. Although all intended to markup quotes, they should be used in different contexts.

In HTML long quotation are defined by the tag <blockquote>. Blockquote are set off from the main text as a distinct paragraph or block. However, they refer to some external citation which isn’t already mentioned in the article. This element can also have an optional attribute cite that specifies the location (in the form of a URL) where the quote has come from. The browser inserts white space before and after a blockquote element. It also inserts margins. 

Short quotation is defined by the tag <q>. The browser inserts quotation marks around the short quotation. In practice, usually only blockquote and q are used.



 

Learn the HTML5 language in this tutorial series. These tutorials are designed for new programmers to provide them thorough knowledge of full stack web development.

Watch Full Playlist Here

Watch Complete One Video Here

The Rise of AI Business Tools: What Entrepreneurs Need to Know

The Entrepreneur's Guide to AI Business Tools: Navigating Opportunities and Challenges in 2025 I. Executive Summary Artificial intel...