• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 8. Working with Text and Links > Setting Underlining, Overlining, and O...

Setting Underlining, Overlining, and Other Highlighting

In HTML, the U element can be used to underline text, and the S or Strike elements can be used to strike through text. In HTML 4, all of these elements are deprecated in favor of using styles to achieve the same results. In CSS, the text-decoration property is used to set underlining and strikethrough, as well as overlining and blinking highlighting. The accepted values for the text-decoration property include none, underline, overline, line-through, and blink. Here's an example of setting overlining for the H1 element (see Figure 8.12):

h1 {  text-decoration: overline; text-align: center; font-size: 2.5em; color:
rgb(200,140,40); }


					  


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint