Without formatting tags , your page will appear as one continuous
block
of text with single spacing between words.
Web browsers will only read
html code. To format text, you
must use html "formatting tags".
In the
following lessons you
will learn how to add formatting attributes
to your
document to change the look of your web page.
Step 4.
Controlling Text Size
So far we talked about how to control font
attributes like boldface and italic, you canalso control the font
type and size. Font Size: Font size is set in HTML as follows: <font size=value> your text goes here </font>
The Value is:
A whole number between 1 and 7 (the default value in html is 3), or + or - (plus or minus) followed by a whole number between 1 and 6, specifying a font
size adjustment relative to the base font, which is always 3. For example, < font size=+2> means the font is two sizes bigger than the base font.
You'll notice that font sizes in HTML are not measured in points. Experiment to find the best font sizes for your page.
Step 5.
Controlling Text Type :
Font Face:
You can change the default font face in your web page with the font tag.
For example you can give text an Arial typeface with the following tag:
<font face=Arial> text </font> . This tag will override the browser preferences( in other words the font type the browser would normally show a vistor to your web page called the default font, you can other ride
it to have it display the font type of your choice), unless the the viewer of your web page has chosen to
have his or her font preferences override those of the browsed web page.
Step 6.
Do
the Following Exercise for Page Formatting
Steps 2- 4:
Edit the page the same way we did in the previous lesson and add in the formatting tags
as follows in the exercise below:
<HTML>
<Head>
<Title> put the title of your page here </Title>
</Head>
<body>
<H1> Creating a webpage is fun < /h1 > <p> <font size=2><b> Start your paragraph here </b></font>
</body>
</html>