i tag
b tag
dfn tag
pre tag
q tag
samp tag
strong tag
var tag
TAG: em
<em> ... </em>
The
em
tag is used to provide emphasis when displaying the enclosed word or phrase. Most browsers do this by rendering the selected text in italics.
The
i
tag also renders in italics (or oblique), or you could use the style sheets
font-style
property to display in italics.
The separate closing tag is mandatory.
Attributes and Events
class
dir
id
lang
onclick
ondblclick
onkeydown
onkeypress
onkeyup
onmousedown
onmousemove
onmouseout
onmouseover
onmouseup
style
title
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="eng">
<head>
<title>DevGuru XHTML em Tag Example</title>
</head>
<body>
Did you know that the <b>Guru</b> is over <
em
>800 years old<
/em
>?
<br />
Did you know that the <b>Guru</b> is over <i>800 years old</i>? </body>
</html>
Output:
Did you know that the
Guru
is over
800 years old
?
Did you know that the
Guru
is over
800 years old
?
Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information