Lost Password?

Go Back   CodeCall Programming Forum > Software Development > Tutorials

Tutorials Programming Tutorials - Post your tutorials here!

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-11-2007, 11:49 AM
c0de's Avatar   
c0de c0de is offline
Learning Programmer
 
Join Date: Sep 2007
Location: NoWay
Posts: 36
Credits: 22
Rep Power: 0
c0de is on a distinguished road
Lightbulb How to style fonts of a text in a simple page?

In this tutorial I'll tell you how to style font of a text...

A text can be styled in many forms!

There were many ways to style a text like with bolding text, underlining it, changing the color, size, font style, header, etc.

To change the texts from we can use some simple codes like:

HTML Code:
<b>A bold text</b>
<i>An italic text</i>
<u>Underlined text</u>
<strong>Strong wroted text</strong>
<em>An emphased text</em>
<big>Some big wroted texts</big>
<small>Some small wroted texts</small>
These are some of text styles...

Let's try them into the browser to see how these work!

Here is an image:



Let's try font styles..

We can change the font style to change the font style we must write this code:

HTML Code:
<font face="The style of font">The Text</font>
At the (="The style of font") we have to write the style what we want to use!

Remember: Do not use many types of new fonts because many of computers cannot read them!
Use just main font styles like:"Verdana, News Times, Tahoma, Arial, etc.." use these because all the computers handle these fonts!

An example:

HTML Code:
<font face="Verdana">Our text</font>
This example tells what our text is wroted in Verdana font style!
Don't forget to add this at start and end of the text, numbers, etc... ("Text")!

Out of style we can change the color of the text:

HTML Code:
<font color="The color what we want">The colored Text</font>
At the ("The color what we want") write the name of color what do you want for example: red, black, blue, etc.

An example:

HTML Code:
]<font color="red">The colored Text</font>
Now at our browsers this text will be colored to red!

These were some examples of styling text at <font ...="-">Text</text>

We can use many things like one other of them is SIZE:

HTML Code:
<font size="size of font">Text</font>
At the ("size of font") we write the size of the font currently use 1-7 last!

Than we know the font styles, font coloring and some font types and size of the fonts...

These are some types of changing text styles and fonts at next we will se the headers how work!

This tutorial belongs to me!

-Regards, c0de!
__________________
Missing...

Last edited by c0de; 09-12-2007 at 11:22 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 09-12-2007, 08:06 AM
v0id's Avatar   
v0id v0id is offline
&lt;img src=&quot;http://forum.codecall.net/images/userbar/supermod.png&quot; alt=&quot;Super Moderator&quot;&gt;
 
Join Date: Apr 2007
Location: Denmark
Posts: 2,471
Last Blog:
CherryPy(thon)
Credits: 0
Rep Power: 27
v0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of lightv0id is a glorious beacon of light
Send a message via MSN to v0id
Default

Nice little tutorial you've made, though there's some incorrect information.


Quote:
Remember: Do not use many types of new fonts because many of browsers cannot read them!
Use just main font styles like:"Verdana, News Times, Tahoma, Arial, etc.." use these because all the browsers handle these fonts!
That's wrong.
First, it's not the browser that is unable to read the fonts - it's your computer. Your browser is only able to use the fonts installed on your machine.
Second, even if you're using so-called "main font styles" you can not be sure that they will work for all users. The fonts you showed there was primarily fonts installed as default in Windows. But what about all the Linux-, Mac- and so on-users? You can define different font, using the comma-operator.


Quote:
Code:
<font style="Verdana">Our text</font>
That's wrong.
The style attribute is used for defining multiple styles, and not like you're doing right there. Normally you would use the face-attribute, for the fonts.
Code:
<font face="Verdana">Our text</font>
And if you really want to use the style-attribute;
Code:
<font style="face: Verdana;">Our text</font>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 09-12-2007, 11:23 AM
c0de's Avatar   
c0de c0de is offline
Learning Programmer
 
Join Date: Sep 2007
Location: NoWay
Posts: 36
Credits: 22
Rep Power: 0
c0de is on a distinguished road
Default

Opss, my mistake thank you.

I've edited the post!
__________________
Missing...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 09-15-2007, 10:08 PM
KevinADC KevinADC is offline
Learning Programmer
 
Join Date: Jan 2007
Posts: 89
Credits: 0
Rep Power: 6
KevinADC is on a distinguished road
Default

Quote:
Nice little tutorial you've made, though there's some incorrect information.
His other "tutorials" are no better. Deprecated html code punctuated with errors. These tutorials should be removed or edited for the benefit of the readers, if any.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple Hex-Editing TcM Tutorials 30 07-23-2008 11:56 AM
How to add images to a page? c0de Tutorials 1 09-12-2007 08:54 PM
HTML Basic Formatting clookid Tutorials 14 03-06-2007 03:10 PM
Glass text - Photoshop ahsan16 Photoshop Tutorials 3 01-11-2007 10:35 PM
Generate text with transparent background AfTriX PHP Tutorials 1 01-08-2007 02:13 AM


All times are GMT -5. The time now is 01:45 PM.

Contest Stats

Xav ........ 213.39
chili5 ........ 80.87
morefood2001 ........ 57.41
John ........ 52.33
gamiR ........ 40.76
MeTh0Dz|Reb0rn ........ 40.7
-MW- ........ 40
WingedPanther ........ 35.4
gaylo565 ........ 24
RyanTuosto ........ 23.34

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 68%

Ads