<em> Tag Syntax
<body> ... ... phrasing content expected ...<em>... phrasing content ...</em>... ... </body>
Rules for coding HTML em
elements
Make sure you understand the difference between a tag and element and are familiar with the definitions of namespace and other HTML terms.
- Code the em element for emphasized text where phrasing content is expected.
- Begin the em element with a starting <em> tag. The element name uses lower case letters and should be in the HTML namespace, which it will pick up automatically from the
xmlns
attribute on the <html> tag. - Include any HTML global attributes on the <em> tag as appropriate.
- Inside the em element, between the starting
<em>
tag and the ending</em>
tag, code the inner HTML phrasing content. - End the em element with a matching
</em>
closing tag.
Content Model
Content of the emelement
The content of the em element can include HTML comments, text content and only those HTML tags that can be used in phrasing content.