HTML and font size

  • #1
Math Is Hard
Staff Emeritus
Science Advisor
Gold Member
4,527
28

Main Question or Discussion Point

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.
 

Answers and Replies

  • #2
18,201
7,810
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...
 
  • #3
mgb_phys
Science Advisor
Homework Helper
7,774
12
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
 
  • #4
Math Is Hard
Staff Emeritus
Science Advisor
Gold Member
4,527
28
ok, thanks.
 

Related Threads on HTML and font size

  • Last Post
Replies
10
Views
2K
Replies
8
Views
3K
  • Last Post
Replies
19
Views
953
  • Last Post
Replies
7
Views
2K
  • Last Post
Replies
4
Views
2K
  • Last Post
Replies
9
Views
730
  • Last Post
Replies
1
Views
1K
Replies
4
Views
618
  • Last Post
Replies
5
Views
2K
Top