HTML - Phrase tag - Set 1
The <abbr> tag is used to markup abbreviations or acronyms in HTML. It helps provide a full expansion or description of the abbreviated term.
The <abbr> tag should enclose the abbreviated term, and the title attribute should be used to provide the full expansion or description of the term.
<p>HTML stands for <abbr title="Hypertext Markup Language">HTML</abbr>.</p>
The <mark> tag is used to highlight or mark a portion of text within a document. It visually distinguishes the marked content from the surrounding text.
The <mark> tag should enclose the text that needs to be highlighted or marked.
<p>This sentence contains some <mark>important</mark> information.</p>
The <strong> tag is used to indicate text with strong importance. It represents content that is typically rendered in bold.
The <strong> tag should enclose the text that needs to be emphasized or given strong importance.
<p><strong>Warning:</strong> Do not touch the hot surface.</p>
The <em> tag is used to emphasize or highlight text within a sentence. It represents content that is typically rendered in italic.
The <em> tag should enclose the text that needs to be emphasized or highlighted.
<p>I <em>really</em> enjoyed the concert last night.</p>
It's important to note that the <acronym> tag, as mentioned, is not supported in HTML5. Instead, the <abbr> tag is used to markup abbreviations, including acronyms. The use of these tags helps improve accessibility and provides additional information to users.