Sunday 15 October 2017

Textual styles assume an imperative part in making a site more easy to understand and expanding content coherence. Textual style face and shading depends totally on the PC and program that is being utilized to see your page yet you can utilize HTML <font> tag to include style, size, and shading to the content on your site. You can utilize a <basefont> tag to set the greater part of your content to a similar size, face, and shading.

The textual style tag is having three qualities called size, shading, and face to alter your textual styles. To change any of the textual style properties whenever inside your site page, essentially utilize the <font> tag. The content that takes after will stay changed until the point when you close with the </font> tag. You can transform one or the greater part of the textual style qualities inside one <font> tag.

Note −The textual style and basefont labels are expostulated and it should be evacuated in a future rendition of HTML. So they ought not be utilized rather, it's recommended to utilize CSS styles to control your textual styles. Yet at the same time for learning reason, this part will clarify textual style and basefont labels in detail.

Set Font Size 

You can set substance text dimension utilizing size characteristic. The scope of acknowledged esteems is from 1(smallest) to 7(largest). The default size of a text style is 3.

Illustration 

<!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>
Relative Font Size 

You can indicate what number of sizes bigger or what number of sizes littler than the preset text dimension ought to be. You can determine it like <font measure = "+n"> or <font estimate = "−n">

Illustration 

<!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>
Setting Font Face 

You can set textual style confront utilizing face trait however know that if the client seeing the page doesn't have the textual style introduced, they won't have the capacity to see it. Rather client will see the default text style confront relevant to the client's PC.

Illustration 

<!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>

Determine substitute text style faces 

A guest might have the capacity to see your textual style in the event that they have that text style introduced on their PC. In this way, it is conceivable to determine at least two textual style confront choices by posting the text style confront names, isolated by a comma.

<font face = "arial,helvetica">
<font face = "Lucida Calligraphy,Comic Sans MS,Lucida Console">

At the point when your page is stacked, their program will show the main text style confront accessible. In the event that none of the given text styles are introduced, at that point it will show the default textual style confront Times New Roman.

Note − Check a total rundown of HTML Standard Fonts.

Setting Font Color 

You can set any textual style shading you like utilizing shading characteristic. You can indicate the shading that you need by either the shading name or hexadecimal code for that shading.

Note − You can check an entire rundown of HTML Color Name with Codes.

Illustration 

<!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>

The <basefont> Element 

The <basefont> component should set a default text dimension, shading, and typeface for any parts of the report that are not generally contained inside a <font> tag. You can utilize the <font> components to supersede the <basefont> settings.

The <basefont> tag additionally takes shading, size and face properties and it will bolster relative textual style setting by giving size an estimation of +1 for a size bigger or −2 for two sizes littler.

Case 

<!DOCTYPE html>
<html>

   <head>
      <title>Setting Basefont Color</title>
   </head>
 
   <body>
      <basefont face = "arial, verdana, sans-serif" size = "2" color = "#ff0000">
      <p>This is the page's default font.</p>
      <h2>Example of the &lt;basefont&gt; Element</h2>
      
      <p><font size = "+2" color = "darkgray">
            This is darkgray text with two sizes larger
         </font>
      </p>

      <p><font face = "courier" size = "-1" color = "#000000">
            It is a courier font, a size smaller and black in color.
         </font>
      </p>
   </body>
 
</html>

0 comments:

Translate

GoogleTech786. Powered by Blogger.

Subscribe Youtube

Our Facebook Page

Wikipedia

Search results

Popular Posts

Adsense