CSS font attributes #Part 2

CSS font attributes #Part 2



font-family

        A comma-delimited sequence of font family names . serif, sans-serif, cursive.

font-style

       Normal, italic, or oblique.

font-weight

        Normal, bold, bolder, lighter, or one of the nine numerical values 100, 200,300,400,500,600,700,800,900.

font-size

      A term that denotes absolute size xx- small, x-small, small, medium, large, x- large, xx-large. Relative size large, smaller. A number of pixels, percentage.

HTML Code

<h1>Code Pocket</h1>

<h2>Code Pocket</h2>

<h3>Code Pocket</h3>

<h4>Code Pocket</h4>

SCC Code

<style type="text/css">

h1

{

font-family: cursive;

}

h2

{

font-style: oblique;

}

h3

{

font-size: small;

}

h4

{

font-weight: lighter;

}

</style>






Try it Yourself...

what you think about this article ??

Post a Comment

Previous Post Next Post