What does font size -2 mean here?

2020-04-05 10:04发布

问题:

I see this from source code of a web site:

<font size="-2">@2009 </font>

What does it mean when size is negative?

回答1:

It means the font size of @2009 should be -2 units (i.e. 2 units smaller) relative to the content around it.



回答2:

That is a deprecated style of markup. Nobody should be using it anymore.

Back in the old days, before CSS, you could use the <font> tag to control the relative size of text on the page. A "-2" simply meant two sizes smaller than your base font size.

Font sizes ranged from 1 to 7 in first generation browsers, if I recall correctly.



回答3:

It means two notches smaller than the default text size in the browser.



标签: html fonts size