+ Reply to Thread
Results 1 to 4 of 4

Thread: How to style fonts of a text in a simple page?

  1. #1
    c0de Guest

    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!
    Last edited by c0de; 09-12-2007 at 09:22 AM.

  2. CODECALL Circuit advertisement

     
  3. #2
    v0id is offline Retired
    Join Date
    Apr 2007
    Posts
    2,937
    Blog Entries
    3
    Rep Power
    42
    Nice little tutorial you've made, though there's some incorrect information.


    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.


    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>

  4. #3
    c0de Guest
    Opss, my mistake thank you.

    I've edited the post!

  5. #4
    KevinADC is offline Programmer
    Join Date
    Jan 2007
    Posts
    125
    Rep Power
    0
    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.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 01-04-2011, 10:06 AM
  2. Help Debugging simple Login page
    By Blue Indian in forum PHP Development
    Replies: 1
    Last Post: 09-28-2010, 11:23 AM
  3. VB Text to Speech *really Simple*
    By VBnet in forum Classes and Code Snippets
    Replies: 6
    Last Post: 05-22-2010, 01:29 AM
  4. Simple Text Editor
    By Turk4n in forum Java Tutorials
    Replies: 16
    Last Post: 02-11-2010, 08:10 AM
  5. How do I get my text to align with the rest of the page?
    By newcodersipher in forum HTML Programming
    Replies: 7
    Last Post: 11-22-2008, 07:52 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts