Element font, making the display more attractive (Basic HTML)

Still discussing the text formatting in learning basic HTML, this time you will be introduced to the elements and font attributes. What are the elements that exist in the font?

The font element consisting of text color, size and font type. Text color using the color attribute, you can use color to color name like "red", "green", "blue" or use the hexadecimal code (in full color knowledge you can learn through the Wikipedia site). Example: <font color="red"> ... </ font>

While to change the text size using the size attribute size in pixels, the default size that will be displayed in the browser is "3" pixel, it has been described in a previous article with the title Center & Basefont Lest Forgotten. Example: <font size="2"> .. </ font> will produce letter-sized 2 pixels, but when using the relative size (+ or -) as <font size="+2"> .. </ font> will produce letter-sized 5 pixels (the default value plus 2)

As for using a font face attribute, examples of the typeface such as Arial, Calibri, Courer new, and others (knowledge about the typeface / font you can learn on Wikipedia). Example: <font face="arial"> .. </ font>

And to clarify about the third attribute, you just wrote the script below:


The result will be as shown below:



Ok, I think enough about the font element and ends are the various text formats are discussed. But for basic HTML is still much to be you know.

My message "Do not tire of learning what you like! If you feel bored, remember that what you learn today will be useful for your future ". So keep the spirit! :-)
Good work!

0 comments:

Post a Comment