Help:Wiki University HTML-- Sizing Fonts





<< Previous Chapter Next Chapter >>

ENLARGING FONTS
Normal size of the default font is about 14px or 14 pixels. Let's say we want to increase the font to 20 pixels. To make the font larger you insert the attribute font-size: 20px in the paragraph tag coding:   Here is the paragraph with the enlarged font:

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sit amet iaculis metus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Fusce elementum efficitur faucibus. Curabitur eleifend quis ligula ac ullamcorper. Curabitur eget suscipit turpis.

ENLARGING HEADERS
 Enlarging Headers
 * Not only can you enlarge the font in paragraphs, but you can enlarge the font in the headers as well.
 * Use this coding in the opening header tag to enlarge the font in a header:

TRY THESE OUT . . . ..
 Exercises
 * Enlarge the lorem ipsum paragraph to 20px.
 * Enlarge a header to 36px.

Check your answers

 Quick Quiz
 * You cannot enlarge headers
 * A. True
 * B. False


 * You can add the "font-size" attribute between the = sign and the words of the header
 * A. True
 * B. False

Check your answers

<< Previous Chapter Next Chapter >>