What would the html code be in this situation?

Jenna06

New member
using the <span> </span> element what would the html code be for making "affordable family fun" in bold, size 22 pt font in the color blue?

Also: You can just put the word "blue" for the color.

NOTE: please don't post deprecated info. Thanks
 
Inline CSS and setting font size with points are both discouraged, so in a sense, you're asking for deprecated code to begin with.

In any event, you could do:
<span style="font-weight: bold; font-size: 22pt; color: blue;">affordable family fun</span>

A much better choice is:
<span class="my-cool-text">affordable family fun</span>

And in an external CSS file:
span.my-cool-text {
font-weight: bold;
font-size: 137.5%; /* About 22pt for normal browser settings */
color: #00f; /* Color names are also less-than-ideal */
}
 
Back
Top