Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does font size -2 mean here?

Tags:

html

fonts

size

I see this from source code of a web site:

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

What does it mean when size is negative?

like image 587
omg Avatar asked Aug 05 '09 03:08

omg


People also ask

What do you mean by font size?

The font size is a number that indicates how many points are in the height of the text, or high tall the text is in points. A point is 1/72 of an inch, so a 12-point font would be 12/72 of an inch.

What does font size 12px mean?

The 12px is the height of the font in pixels. The 13px is the height of the line in pixels.

What is a good font size?

Body text - Font sizes should be around 16px to 18px for legibility (or 1.6rem to 1.8rem using our sizing rules mentioned above). If you can afford to go a bit larger, then even 21px can be pleasant to read. Headings - The headings should be around 1.96 times larger than your body text to create a sufficient contrast.


2 Answers

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.

like image 195
womp Avatar answered Oct 13 '22 03:10

womp


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

like image 44
Brandon Avatar answered Oct 13 '22 03:10

Brandon