How to change font format using with html coding?

Discussion in 'HTML & Website Design' started by wolvereen123, Jul 1, 2011.

  1. #1
    Hi

    just i want to know how to change font format with using html coding. :)
     
    wolvereen123, Jul 1, 2011 IP
  2. OspreyCreative

    OspreyCreative Peon

    Messages:
    74
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    w3schools has a whole section on it, but it's more efficient and common to use CSS for changing font format because CSS is all about presentation
     
    OspreyCreative, Jul 1, 2011 IP
  3. tkowebsitedesigns

    tkowebsitedesigns Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hello,

    Per http://www.w3schools.com/html/html_fonts.asp
    the font tag is depreciated in html4 and removed from html5.
    So you should probobly use css to format your fonts:

    I'm not sure exactly what you need but I found a few good tutorials on fonts in css
    Here is the first one I found:
    http://www.yourhtmlsource.com/stylesheets/csstext.html

    Here is an example of css for adding properties to your font:
    I can be a p, div or what ever you need:
    p {font-weight: bold; font-style: italic; font-size: .9em; line-height: 1.2; font-family: Verdana, Arial, Helvetica, sans-serif; }
     
    tkowebsitedesigns, Jul 3, 2011 IP
  4. daxguy

    daxguy Peon

    Messages:
    32
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    just simple use this <font face="Bookman Old Style, Book Antiqua, Garamond">This paragraph has had its font...</font>
    u can add any font style or font face in this
     
    daxguy, Jul 3, 2011 IP
  5. r4fay

    r4fay Guest

    Messages:
    101
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Remember it's not recommended to add styling to your markup. It's a bad practice.
     
    r4fay, Jul 3, 2011 IP