How to Change Font Size in HTML
- Know how to construct the font tag using HTML basic code. The HTML font tag (with the size attribute) is constructed like this:
The text you want to change size goes here.You must insert the size you want in the area that holds the # sign. You can insert a number 1 through 7. Watch what happens when I use this tag.This text is larger than the defaultIt creates this effect by converting through the HTML code:This text is larger than the defaultIn this case, size 1 is the smallest and size 7 is the largest.
- Decide how you want to use your font sizing for your web page. Changes in font size can be used in many different ways. To create headers, you do not need to use the HTML fonts tag (in Step 1) at all. You can simply use the header tag, which looks like this:
. The # sign should be replaced by a number, 1-6. When using this tag, one is the largest and six is the smallest. This tag not only changes the size of your font, but also creates a space above the header and between the header and the text following. Another simple way to change font size is to use the tag. This tag will alter the size of your text, and you can add as many as you'd like (up to about five) and the effect will continue to grow stronger. Consider the line directly below, for example:This text is big!It will create this effect:This text is big!Now check out what is written here:This text is big!This is what it will create:This text is big!There are many other ways to utilize font size when you learn HTML; however, and these will mostly include the HTML tags. If you want to emphasize text precisely without creating line breaks, or wish to create an ornate effect like the one directly below, then you will use the font tag.Once upon a time. . .The code for the "ornate" effect above is: Once upon a time. . .
|