Hello,
I am displaying a list of statistics where each statistic has a value
and a phrase:
8 articles published
I want to emphasize the number 8 by giving it a bigger size and making
its weight bold.
How should my HTML markup be?
<ul>
<li><span>8</span> articles published</li>
<li>...</li>
</ul>
ul li {
font: normal 0.75em Georgia, Utopia, Palatino, 'Palatino
Linotype', serif;
padding: 4px 0;
}
ul li span {
font: bold 1.5em Georgia, Utopia, Palatino, 'Palatino
Linotype', serif;
}
or maybe:
<ul>
<li><p><span>8</span> articles published</p></li>
<li>...</li>
</ul>
ul li {padding: 4px 0;
ul li p {
font: normal 0.75em Georgia, Utopia, Palatino, 'Palatino
Linotype', serif;
}
ul li p span {
font: bold 1.5em Georgia, Utopia, Palatino, 'Palatino
Linotype', serif;
}
Or maybe some other option?
Thanks,
Bookmarks