Quantcast HTML and font size Text - Physics Forums Library

PDA

View Full Version : HTML and font size


Math Is Hard
Aug25-08, 04:09 PM
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.

Greg Bernhardt
Aug25-08, 04:18 PM
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.

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...

mgb_phys
Aug25-08, 04:18 PM
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

Math Is Hard
Aug25-08, 05:00 PM
ok, thanks.