View Full Version : The second lesson: Formatting Text BY HTML



masternew
6th July 2006, 13:55
In this lessons we will learn an important lesson : how to insert types of text by deferent size and fonts

And now you will find each font and his tag so if you like any font you have to copy its tag to use it in your site



--------------------------------------------------------------------------------

To show the sentence in the center like in this example


Now we will learn how to insert Fonts




You have to write this tag:


<center>Now we will learn how to insert Fonts</center>



--------------------------------------------------------------------------------


And to have the text italic like this:


Now we will learn how to insert Fonts


write this tag

<i>Now we will learn how to insert Fonts</i>




And here you will find every example with its tag :


Now we will learn how to insert Fonts
<b>Now we will learn how to insert Fonts</b>

Now we will learn how to insert Fonts
<strike>Now we will learn how to insert Fonts</strike>

Now we will learn how to insert Fonts
<u> Now we will learn how to insert Fonts</u>




--------------------------------------------------------------------------------


What about the font size of the heading?? it is very simple you will find next the size and its tag



<h1>This is the size number1</h1>





<h2>This is the size number2</h2>





<h3>This is the size number3</h3>





<h4>This is the size number4</h4>





<h5>This is the size number5</h5>





<h6>This is the size number6</h6>






--------------------------------------------------------------------------------


Also there is a way to control the font size by choosing the numbers between 1 and 7



By this tag:

<font size=5>
------

------

The sentences

-----
</font>

And you will see what do i mean by this tag


<font size=1> learn HTML</font>



<font size=2>learn HTML</font>



<font size=3>learn HTML</font>



<font size=4>learn HTML</font>



<font size=5>learn HTML</font>






I left the size 6,7 to test them your self

And there is an other way to change the font size by using + and-

By increasing or decreasing the font size by the degrees you want (note that you must choose the degrees between 1 and 7)
like in the example



<font size="+2"> Increasing the size by 2</font>

<font size="-2"> Decreasing the size by 2</font>




And like this try the other degrees you can increase or decrease

Now you start to learn how to change the font size but you must know how to change the text font to choose the font you like and the best is to choose the font because if the browser didn't find the first it moves to the second
Like this example



<font face="Traditional Arabic, Arabic Transparent, Simplified Arabic">

--------

-------

The sentences

-------

------
</font>



--------------------------------------------------------------------------------



Now I don't want you to move to the next lesson until you practice this lesson