“Using Quotation Elements in HTML: In HTML, we utilize quotation elements to include quoted text within a web page, differentiating it from the regular text. There are several commonly used quotation elements in HTML, with one of them being the `<q>` element. This element allows us to enclose a block of text within quotation marks and consists of both an opening `<q>` tag and a closing `</q>` tag.”
<!DOCTYPE html>
<html>
<head>
<title>Quotations</title>
</head>
<body>
<h3>GeeksforGeeks</h3>
<p>The quick brown fox jumps over the lazy dog<br></p>
<!–Inside quotes–>
<p><q>The quick brown fox jumps over the lazy dog</q></p>
</body>
</html>
“Using the `<abbr>` Element in HTML: In HTML, we employ the `<abbr>` element to indicate that a specific text represents an acronym or abbreviation. An added feature is the ‘title’ attribute, which allows us to display the full version of the abbreviation or acronym when you hover your mouse over the `<abbr>` element. This is beneficial for both browsers and search engines. The `<abbr>` element consists of both an opening `<abbr>` tag and a closing `</abbr>` tag.”
<!DOCTYPE html>
<html>
<head>
<title>Abbreviations</title>
</head>
<body>
<h3>GeeksforGeeks</h3>
<!–Here the marked text is the acronym–>
<p>Welcome to <abbr title=”GeeksforGeeks”>GfG</abbr></p>
</body>
</html>
<cite> element: This element is used to define a title of a work and emphasizes a text.
Example:
<!DOCTYPE html>
<html>
<head>
<title>Cite</title>
</head>
<body>
<h3>GeeksforGeeks</h3>
<!–The title is kept in cite tag–>
<p>
The <cite>GeeksforGeeks</cite> is the best site to<br>
to search for articles and practice problems.
</p>
</body>
</html>
Not a member yet? Register now
Are you a member? Login now