Ask Experts Questions for FREE Help !
Ask
    lchec k's Avatar
    lchec k Posts: 1, Reputation: 1
    New Member
     
    #1

    Aug 8, 2007, 02:40 PM
    HTML Coding
    Can someone tell me how to designate font and color using html?
    XenoSapien's Avatar
    XenoSapien Posts: 627, Reputation: 42
    Senior Member
     
    #2

    Aug 8, 2007, 02:49 PM
    Check this out for an html dictionary...

    http://www.freewebs.com/lemool/

    XenoSapien
    retsoksirhc's Avatar
    retsoksirhc Posts: 912, Reputation: 71
    Senior Member
     
    #3

    Aug 8, 2007, 08:44 PM
    Quick reference:
    For a font type, use <font face="FONT NAME HERE">Your text here</font>
    For a font color, use <font color=ffffff>This is white text</font>
    For both, just combine them: <font face="Ariel" color=000000>This text is black and the font style is ariel</font>
    jstrike's Avatar
    jstrike Posts: 418, Reputation: 44
    Full Member
     
    #4

    Aug 10, 2007, 01:08 PM
    The best way to do that is to use style sheets. Embeded font tags are great but what happens if you use those to setup your site and then you decide you want to change the font from Arial to Verdana or something like that. Here's a quick and dirty example of a style sheet...
    Code:
    <html>
      <head>
        <title>CSS Test</title>
        <style>
          .arialFont {
            font-family: arial;
            font-size: 9pt;
            color: #0066FF;
          }
          
          .ouch {
            background-color: yellow;
            color: green;
            font-size: 12pt;
          }
          
          body {
            background-color: #eee;
            font-family: arial black;
            font-size:8pt;
          }
        </style>
      </head>
      
      <body>
        This is what the normal text looks like from the body style.
        <div class="arialFont">This is a test of the arial font style</div>
        <div class="arialFont">You can also<span class="ouch"> EMBED </span>other styles.</div>
      </body>
    </html>
    If you used font-tags to do the above you would have to change every font tag you use. Using style sheets you only have to change it in the styles you've defined... no matter where they're used.

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

Color coding on line does not match jack color coding [ 11 Answers ]

The line going into the old phone jack has orange, green, blue and 3 white wires in it. Bought a new jack at Radio Shack and the colors of the wires in the replacement jack are red, green, black and yellow. Verizon repair was at best, snotty in telling me "we cannot tell you how to do repairs...

How can I randomise images in a site to be linked via html coding for another site? [ 3 Answers ]

Hi, I am mesmerised. How do Flickr, mybloglog, Facebook and numerous other sites update their badges eberytime the information is updated? Someone told me it is done with js. I hava a wordpress.com blog, which means I am not allowed to use javascript there. So I have to link my images updated...

Software coding [ 2 Answers ]

Is software Fixed Asset or not?

Color Coding [ 1 Answers ]

If Blue,red,black And Green Color Is Used While Writing ,what Signifies Blue,what Signifies Red,what Signifies Black And What Signifies Green?


View more questions Search