Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

HTML and font size

  1. Aug 25, 2008 #1

    Math Is Hard

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    When you set a font size with font tags like:

    <font size="3">Word</font>

    Does this have an equivalent "point size" like "14 point" in a word processor? I'm confused about what the size in the tag means.

    Thanks.
     
  2. jcsd
  3. Aug 25, 2008 #2
    the approximation of the deprecated font sizes in pixels:

    1 = 10px
    2 = 12px
    3 = 16px
    4 = 18px
    5 = 24px
    6 = 30px

    However you should not be using the FONT tag anymore. Look into CSS. You can define many ways like pt, em, px...
     
  4. Aug 25, 2008 #3

    mgb_phys

    User Avatar
    Science Advisor
    Homework Helper

    No it's an arbitrary scale from 1-7, it's upto the browser to decide how big to draw it.
    If you care about how it looks you have to use CSS - which you should use anyway <font> is deprecated
     
  5. Aug 25, 2008 #4

    Math Is Hard

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    ok, thanks.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: HTML and font size
  1. HTML question (Replies: 4)

  2. HTML font tag (Replies: 10)

Loading...