Phrase Tag

phrase tags

Phrase tags

In HTML, a Phrase tags is a tag that is used to apply formatting or styling to a specific phrase or word within a larger block of text. Some common Phrase tags in HTML include:

Here are some examples of HTML phrase tags and their usage:

  1. <strong> tag:
				
					<p>This is a <strong>strong</strong> word.</p> 
				
			

Output: This is a strong word.

The <strong> tag is used to make the word “strong” bold.

  1. <em> tag:
				
					<p>This is an <em>emphasized</em> word.</p> 
				
			

Output: This is an emphasized word.

The <em> tag is used to make the word “emphasized” italicized.

  1. <mark> tag:
				
					<p>This is a <mark>highlighted</mark> word.</p> 
				
			

Output: This is a <mark>highlighted</mark> word.

The <mark> tag is used to highlight the word “highlighted” with a yellow background.

  1. <del> tag:
				
					<p>This is <del>deleted</del> text.</p> 
				
			

The <del> tag is used to indicate text that has been deleted or removed.

  1. <ins> tag:
				
					<p>This is <ins>inserted</ins> text.</p> 
				
			

Output: This is <u>inserted</u> text.

The <ins> tag is used to indicate text that has been inserted or added.

  1. <sub> tag:
				
					<p>This is a<sub>subscript</sub> word.</p> 
				
			

The <sub> tag is used to make the word “subscript” subscripted.

  1. <sup> tag:
				
					<p>This is a<sup>superscript</sup> word.</p> 
				
			

Output: This is a^superscript^ word.

The <sup> tag is used to make the word “superscript” superscripted.

8.<cite> tag:

				
					<p>The study found that there is a significant correlation between sleep deprivation and decreased cognitive function (<cite>Smith et al., 2018</cite>).</p>
				
			

Output: The study found that there is a significant correlation between sleep deprivation and decreased cognitive function (Smith et al., 2018).

The <cite> tag is used to indicate the title of a work, such as a book, article, or website, that is being cited within the text. It is commonly used in combination with other HTML tags, such as the <p> tag for paragraphs, to create properly formatted citations within a web page.

9.<abbr> tag:

The <abbr> tag is used to indicate an abbreviation or acronym. The full form of the abbreviation can be provided as the title attribute of the tag. For example:

				
					<p>The <abbr title="World Health Organization">WHO</abbr> is a specialized agency of the United Nations.</p> 
				
			

Output: The WHO is a specialized agency of the United Nations.

10.<q> tag:

The <q> tag is used to enclose short quotations. For example:

				
					<p>The philosopher Aristotle once said, <q>Quality is not an act, it is a habit.</q></p> 
				
			

Output: The philosopher Aristotle once said, “Quality is not an act, it is a habit.”

11.<dfn> tag:

The <dfn> tag is used to indicate a definition of a term. The term being defined can be provided as the title attribute of the tag. For example:

				
					<p><dfn title="A popular programming language">JavaScript</dfn> is used to create interactive web pages.</p> 
				
			

Output: JavaScript is used to create interactive web pages.

12.<code> tag:

The <code> tag is used to enclose code snippets or programming code. For example:

				
					<p>To display the current date in JavaScript, you can use the following code: <code>var currentDate = new Date(); document.write(currentDate);</code></p> 
				
			

Output: To display the current date in JavaScript, you can use the following code: var currentDate = new Date(); document.write(currentDate);

Join To Get Our Newsletter
Spread the love