HTML and CSS Reference
In-Depth Information
Compatibility
HTML 2, 3.2, 4, 4.01, 5
XHTML 1.0, 1.1, Basic
Firefox 1+, Internet Explorer 2+,
Netscape 1+, Opera 2.1+, Safari 1+
Notes
• Traditionally, this element occurs within a list of defined terms enclosed by a <dl>
tag. It is generally used in conjunction with a <dd> tag, which indicates its
definition. However, <dt> tags do not require a one-to-one correspondence with
<dd> tags.
• HTML5 overloads the meaning of this element so that it also serves as the caption of
content enclosed within <details> and <figure> tags.
• Under early drafts of HTML5,this element is also found within <dialog> tags and
defines the speakers of particular statements. When used within such tags, it must
be paired with <dd> tags in a one-to-one fashion. That syntax was eventually
dropped.
• The close tag for the element is optional under older versions of HTML as well as
HTML5, but including it is suggested, especially when it will make things clearer,
particularly with multiple-line definitions.
• Under XHTML 1.0, the closing </dt> tag is mandatory.
• HTML 2 and 3.2 support no attributes for this element.
<em> (Emphasis)
This inline element indicates emphasized text, which many browsers will display as italic text.
Standard Syntax
<em
class="class name(s)"
dir="ltr | rtl"
id="unique alphanumeric identifier"
lang="language code"
style="style information"
title="advisory text">
</em>
Attributes Introduced by HTML5
accesskey="spaced list of accelerator key(s)"
contenteditable="true | false | inherit"
contextmenu="id of menu"
data-X="user-defined data"
draggable="true | false | auto"
hidden="hidden"
itemid="microdata id in URL format"
itemprop="microdata value"
Search WWH ::




Custom Search