Decorating and Transforming Text

text-decoration and text-transform decorate and transform text. text-decoration applies a decoration to a block of text none. Its allowed values are:

  • underline
  • overline
  • line-through
  • blink

text-transform applies a transformation to a block of text. Its allowed values are:

  • none
  • capitalize
  • uppercase
  • lowercase
            p { 
                border: medium double black; 
                background-color: lightgrey; 
                text-decoration: line-through; 
                text-transform: uppercase; 
            HyperText Markup Language (HTML) is the main markup language for 
            displaying web pages and other information that can be displayed 
            in a web browser(From From Wikipedia, the free encyclopedia).
Click to view the demo
  HTML CSS Book