English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The HTML <em> tag is used to emphasize text, which usually means that the browser displays the text in italics. This tag is also commonly referred to as the <em> element.
Formatting text in the document:
!doctype html <html <head <meta charset="UTF-8"> <title>HTML5 dt tag usage (Basic Tutorial Website oldtoolbag.com)</title>/title> </head> <body <h1>Heading 1</h1> <p>We want to stress emphasize <em>this text</em>/em></p> </body> </html>Test to see ‹/›
IEFirefoxOperaChromeSafari
All mainstream browsers support the <em> tag.
The <em> tag is a phrase tag used to present text as emphasized.
Tip: We are not against using this tag, but if you are using it only to achieve a certain visual effect, we recommend using CSS, which may produce richer effects.
All phrase tags:
Tag | Description |
---|---|
<em> | Presented as emphasized text. |
<strong> | Define important text. |
<dfn> | Define a definition item. |
<code> | Define computer code text. |
<samp> | Define sample text. |
<kbd> | Define keyboard text. It indicates that the text is typed from the keyboard. It is often used in documents or manuals related to computers. |
<var> | Define variables. You can use this tag in conjunction with <pre> and <code> tags. |
Support for <em> tag Global Attributes of HTML.
Support for <em> tag HTML Event Attributes.
HTML Tutorial:HTML Text Formatting