CSS Font and CSS text:

CSS Font:

CSS allowing several properties to define fonts, like:

font-familyfont-stylefont-variantfont-weight and font-size

Ex.

     p {

    font-family: "Times New Roman", Times, serif;

      }

 

CSS text:

CSS text properties allow you to define several text styles such as color, alignment, spacing, decoration, transformation, etc.

Text Color

Ex.

       h1 {

            color: #ff0000;

        }

Like heading tag we have used it with other tags as paragraph and others.

Text Alignment

Ex.

        h1 {

                text-align: center;

         }

Text Decoration

Ex.

         h1 {

                 text-decoration: overline;

          }

Text Transformation

Ex.

          p.up {

                  text-transform: uppercase;

           }

         p.cap {

                   text-transform: capitalize;

           }

Powered  by Codersarts