SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: face tag & font-family tag

  1. #1
    SitePoint Member
    Join Date
    Jun 2012
    Location
    Bangladesh
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    face tag & font-family tag

    What is the difference between "face" tag and "font-family" tag in HTML ?

  2. #2
    It's all Geek to me silver trophybronze trophy
    SitePoint Award Recipient ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, Australia
    Posts
    19,952
    Mentioned
    216 Post(s)
    Tagged
    2 Thread(s)
    @font-face { } lets you reference fonts that you have stored on your own server (font that you want to apear on your site but which many users may not have installed on their own computer.

    font-family is a property that you use to list the fonts you want to use on your site. You need to use it whether or not you are using @font-face.

    Try Googling these questions. All this info is already online.

  3. #3
    Robert Wellock silver trophybronze trophy
    SitePoint Award Recipient xhtmlcoder's Avatar
    Join Date
    Apr 2002
    Location
    A Maze of Twisty Little Passages
    Posts
    6,242
    Mentioned
    51 Post(s)
    Tagged
    0 Thread(s)
    The first FONT element attribute; 'face', is deprecated - for a good reason - and done via markup the latter 'font-family' is achieved via CSS styling.
    };-) http://www.xhtmlcoder.com/
    Thinking Web: Voices of the Community

    > March 2013 - SitePoint forums: Spot the Error 3: Calling all Sleuths! Winner Announced!... She knows how to spot simple <code> errors but do you?

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
  •