Help:Wiki University Wikitext--Changing Fonts

The font you see on this page and all other pages in the Wiki is the default font. However, you can change the font if necessary. Here is where the  tag comes into play.

The  tag allows you to change the font between the opening   tag and the closing   tag using the "inline styling" codes covered in the previous lesson.

Changing fonts
  We will change the default font to times new roman text: 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.
 * To change the font, we add the following inline style code between the p and the > in the opening paragraph tag:

Enlarging fonts
Normal size of the default font is about 12 pixels. Let's say we want to enlarge the font to say 16 pixels. To make the font larger you insert the attribute font-size: 16px 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.

Other ways to enlarge fonts
In addition to using fixed amounts such as pixels, you can use another attribute: "EM" instead of Pixels.
 * EM - "em" deals with the ratio in size relating to the default text;
 * One em is the default size of the font on a page.
 * If you want to double the size of a your font, you will use "2em" and it will be twice as big as the default text.

Try these out
 Exercises
 * Enlarge the lorem ipsum paragraph to 20px.
 * Enlarge the lorem ipsun paragraph to 2em.

Check your answers

 Quick Quiz
 * You can add the "font-size" attribute before the = sign?
 * A. True
 * B. False

Check your answers