| Styling text with CSS is really simple. We can define | | | | not a problem. That is, technically speaking. |
| colors, underline it, make it bold, define the font etc | | | | 3. Make the text bold or Italic |
| etc. | | | | You can use the font-style property to create these |
| We will start with some basics. | | | | effects. |
| First we define the html where we will be working | | | | Bold:p {font-weight:bold; |
| with. | | | | } |
| This is the text | | | | Italicp {font-style:italic; |
| 1. Colorize your text | | | | } |
| We can select the P tag and add some styles to it.p | | | | 4. Overline, Underline, strike-through and none |
| {color:red; | | | | The text-decoration property is useful to create the |
| } | | | | underline and the other effects we need.p |
| Now our text will turn red. You can define any color | | | | ext-decoration:overline;text-decoration:none; |
| code your want or choose one of the 16 standard | | | | } |
| color names. The color names are: aqua, black, blue, | | | | On default, the text doesn't have any lines at all. |
| fuchsia, gray, green, lime, maroon, navy, olive, purple, | | | | Except for the link. You can remove the underline by |
| red, silver, teal, white and yellow. | | | | using the text-decoration:none; setting. |
| 2. Define the size of your textp {font-size:12px; | | | | You see, it's quite easy to style your text using CSS. |
| } | | | | And you can do it all in a separate stylesheet! |
| You can define any font-size you want, 145 pixels is | | | | |