-->
Toneysoft Blog

*We are Inspire Our Technology,* Blogging, Tutorial,Download,Widget,Windows phone android Apps,Web design,Seo, Outsourcing,Antivirus ...

Latest Post Toneysoft blog:

Featured post

How to get 1000 up Visitor per video on your Youtube channel Make Money part 2

How to get 1000 up Visitor per vidos On your You Tube Visitor and And Money Money Hidden Tips Toneysoft :  উপরের টাইটেল দেখে হইত বুজ...

no image
  • Post Title : WEB DESIGN TUTORIAL HTML PART-018
  • Posted By :
  • Category:
  • Rating : 100% based on 10 ratings. 10 user reviews.
    | Post views: Viewed
Item Reviewed: WEB DESIGN TUTORIAL HTML PART-018 9 out of 10 based on 10 ratings. 9 user reviews.
WEB DESIGN TUTORIAL HTML PART-018

Like the Post? Do share with your Friends.

WEB DESIGN TUTORIAL HTML PART-018


At first, Thank  for my all Post Readers. Today HTML parts 17 post.  This is Full HTML Web Page in the Tutorial. you can learn a full HTML web design it. I hope so. Let's start...
 Today's Subject is HTML FONTS







HTML Fonts

Fonts play very important role in making a website more user friendly and
increasing content readability. Font face and color depends entirely on the
computer and browser that is being used to view your page but you can use
HTML <font> tag to add style, size, and color to the text on your website. You
can use a <basefont> tag to set all of your text to the same size, face, and
color.
The font tag is having three attributes called size, color, and face to customize
your fonts. To change any of the font attributes at any time within your
webpage, simply use the <font> tag. The text that follows will remain changed
until you close with the </font> tag. You can change one or all of the font
attributes within one <font> tag.
Note: The font and basefont tags are deprecated and it is supposed to be
removed in a future version of HTML. So they should not be used rather, it’s
suggested to use CSS styles to manipulate your fonts. But still for learning
purpose, this chapter will explain font and basefont tags in detail.

Set Font Size

You can set content font size using size attribute. The range of accepted
values is from 1(smallest) to 7(largest). The default size of a font is 3.

Example

<!DOCTYPE html>
<html>
<head>
<title>Setting Font Size</title>
</head>
<body>
<font size="1">Font size="1"</font><br />
<font size="2">Font size="2"</font><br />
<font size="3">Font size="3"</font><br />
<font size="4">Font size="4"</font><br />
<font size="5">Font size="5"</font><br />
<font size="6">Font size="6"</font><br />
<font size="7">Font size="7"</font>
</body>
</html>


This will produce following result:

Font size="1"
Font size="2"
Font size="3"
Font size="4"
Font size="5"
Font size="6"
Font size="7"


Relative Font Size

You can specify how many sizes larger or how many sizes smaller than the
preset font size should be. You can specify it like <font size="+n"> or <font
size="-n">

Example

<!DOCTYPE html>
<html>
<head>
<title>Relative Font Size</title>
</head>
<body>
<font size="-1">Font size="-1"</font><br />
<font size="+1">Font size="+1"</font><br />
<font size="+2">Font size="+2"</font><br />
<font size="+3">Font size="+3"</font><br />
<font size="+4">Font size="+4"</font>
</body>
</html>


This will produce following result:



Font size="-1"
Font size="+1"
Font size="+2"
Font size="+3"
Font size="+4"



Setting Font Face


You can set font face using face attribute but be aware that if the user viewing
the page doesn't have the font installed, they will not be able to see it. Instead
user will see the default font face applicable to the user's computer.
Example

<!DOCTYPE html>
<html>
<head>
<title>Font Face</title>
</head>
<body>
<font face="Times New Roman" size="5">Times New Roman</font><br />
<font face="Verdana" size="5">Verdana</font><br />
<font face="Comic sans MS" size="5">Comic Sans MS</font><br />
<font face="WildWest" size="5">WildWest</font><br />
<font face="Bedrock" size="5">Bedrock</font><br />
</body>
</html>

This will produce following result:


Times New Roman
Verdana
Comic Sans MS
WildWest
Bedrock

Specify alternate font faces

A visitor will only be able to see your font if they have that font installed on
their computer. So, it is possible to specify two or more font face alternatives
by listing the font face names, separated by a comma.
<font face="arial,helvetica">
<font face="Lucida Calligraphy,Comic Sans MS,Lucida Console">
When your page is loaded, their browser will display the first font face
available. If none of the given fonts are installed, then it will display the default
font face Times New Roman.
Note: Check a complete list of HTML Standard Fonts.

Setting Font Color
You can set any font color you like using color attribute. You can specify the
color that you want by either the color name or hexadecimal code for that
color.
Note: You can check a complete list of HTML Color Name with Codes.
Example

<!DOCTYPE html>
<html>
<head>
<title>Setting Font Color</title>
</head>
<body>
<font color="#FF00FF">This text is in pink</font><br />
<font color="red">This text is red</font>
</body>
</html>

This will produce following result:



This text is in pink
This text is red

The <basefont> Element:
The <basefont> element is supposed to set a default font size, color, and
typeface for any parts of the document that are not otherwise contained within
a <font> tag. You can use the <font> elements to override the <basefont>
settings.
0 Comments
Disqus
Fb Comments
Comments :

No comments:

Post a Comment

Copyright © 2015 Toneysoft Blog All Right Reserved
^