HTML phrase tags are used to perform some specific operations like highlighting the text in web pages and adding quotations etc. These HTML tags are displayed in a similar way as that of other basic HTML tags.
Following are the HTML phrase tags:
Marked Text:
In HTML <mark> element is use to highlight a section of text. The content written inside the open and close mark tag will display as yellow mark and it looks like a highlighter.
Example:
<p> This text is <mark> highlighted </mark> text </p>
The <abbr> tag is used for indicating an abbreviation.
The <abbr> tag should be used when you want to add an abbreviation or an acronym of the word.
The title tag is used with the <abbr> attribute, which indicates the meaning of the abbreviation or acronym.
Example:
<p> This is <abbr title = “Hypertext Markup Language”> HTML </abbr> tutorial </p>
The <kbd> tag in HTML defines a keyboard input.
It is used to identify text that represents user keyboard it means input text should be typed on a keyboard.
Text written inside <kbd> tags is displayed in the monospace font(all characters have the same width).
Example:
<p> Use these keys to save your document <kbd><kbd> Ctrl </kbd> + <kbd> S </kbd></kbd></p>
HTML <samp> tag is an inline element and used to indicate sample output from a computer program or script.
The content written inside <samp> tag is displayed in monospace format.
Example:
<p> The output of the program is <samp> Hello World! </samp></p>
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok