<style type="text/css">
h1 {
font-style: italic;
font-weight: bold;
}
</style>
<style type="text/css">
p {
font-family: Garamond, Bookman;
text-indent: -30pt;
}
</style>
...
<style type="text/css">
.italic {
font-style: italic;
}
</style>
...
<body>
<div class="italic">
<p>Paragraph One</p>
<p>Paragraph Two</p>
<p>Paragraph Three</p>
</div>
...
<body>
...
p.sixteen {
font-style: italic;
font-height: 16pt;
line-height: 32pt;
/* or just
font: italic 16pt/32pt;
*/
}
p.doublespace {
line-height: 200%;
}
In an XHTML file
... <head> <link rel="stylesheet" type="text/css" href="teststyle.css" /> </head> ...
<?xml version="1.0" charset="utf-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/XHTML1/DTD/strict.dtd"
>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title></title>
<style type="text/css">
body {
background-color: white;
text-align: center;
}
span.greeting {
font-family: Arial;
color: green;
}
span.strike {
text-decoration: line-through;
}
span.warning {
color: red;
}
</style>
</head>
<body>
<div>
<span class="greeting">Hey <span class="strike">um</span>
<span class="warning"> oh</span></span>
</div>
</body>
</html>
(b) It was <span style="font-weight:bold">not</span> me (big) It was <span style="font-size:larger">not</span> me (i) It was <span style="font-style:italic">not</span> me (small) It was <span style="font-size:smaller">not</span> me (strike) It was <span style="text-decoration:line-through">not</span> me (sub) It was <span style="vertical-align:sub">not</span> me (sup) It was <span style="vertical-align:super">not</span> me (tt) It was <span style="font-family:monospaced">not</span> me (u) It was <span style="text-decoration:underline">not</span> me
Not all of these are deprecated because they are terribly common and convenient. They could be, though.