untitled

(John Hannent) #1
<html>
<head>

<style>

b, strong {color: coral;}

b strong {color: black;}

body {font-size: 24 px;}
</style>

</head>

<body>

<P>
<b>This paragraph is entirely bold, so we <strong>simply had
to find</strong> a way

to emphasize text within the boldness.</b>

<P>
Here’s a paragraph with something <b> just plain bold.</b>

<P>
Here’s a paragraph with something <strong> just plain
strong.</strong>

</body>
</html>

Figure 14-6:
Using a
contextual
selector,
you can
emphasize
some text
within a
sentence
that itself
is already
bold.

260 Part IV: Advanced CSS Techniques

Free download pdf