Fonts & Formatting
To
change the font of the text in a web page you can add the following lines of
code:
<font face="arial">Hi</font>
By adding that code it makes the text into the Arial font. Now if you wanted
to change the size or the color you would just add the following inside the
font tag right after "arial", size="2" color="blue".
This would make the font size 2 and the color of the text blue. To position
it you can use the align=" " code and then choose where to put them.
If you wanted to change all the text colors you could type this in the body
tag:
<body text="blue" alink="yellow" vlink="white">
The alink and vlink is the colors you want for the active hyperlinks and the
visited hyperlinks.
You will find more about positioning under the Positioning text and pictures.
Some other tags that change text are below:
<h1>Hi</h1>
<h2>Hi</h2>
<h3>Hi</h3>
<h4>Hi</h4>
<h5>Hi</h5>
<h6>Hi</h6>
The h tags are heading tags, the h1 tag makes the largest heading and the h6
makes the smallest heading.
<b>Hi</b>
<i>Hi</i>
<u>Hi</u>
The following tags make the text bold, italic, and underlined respectively.
You can add these tags with any text, you don't have to use just one at a time,
you can make a word into a heading and underlined at the same time.