fonts

Fonts nothing but the text. In this element we learn how to add the style. The fonts indicated font-family element.The fonts are different styles like the verdana and courier.

Example

<h1 style="font-family:courier;"> This is a heading </h1>
<p style="font-family:verdana;"> This is a pragraph </p>

Text size

The Cssfont-size property. It defines the text size of the HTML element. The text size kept the any percent amount.

Example

<h1 style="font-size:200;"> This is a heading </h1>
<p style="font-size:300;"> This is a pragraph </p>

Text Alignment

Text alignment is defined on the position of a element or content.The CSS text-align is a HTML element. The alignment are left, right and center.

Example

<h1 style="text-align:left;"> This is a heading </h1>

<p style="text-align:center;"> This is a pragraph </p>

                                          Next

Chapter Summary


  • Use the font-size for the size


  • Use the font-family for the font style
  • Use the text-align for the text alignment
  • No comments:

    Post a Comment