I'm attempting to showcase old HTML2 on contemporary browsers. The (poorly crafted) HTML3 code includes the font HTML element with the size attribute. The text size was specified in pixels, where size="14" indicates that the user desires a font size of 14px.
The W3School documentation mentions that the acceptable values for the size attribute are limited to "1,2,3,4,5,6,7,+1,+2,+3,+4,+5,+6,+7,-1,-2,-3,-4,-5,-6,-7". Does this mean that the unit for the font size attribute is not in pixels but rather em or something else?
Is there a method to display the font text size in pixel units using the font element?
I experimented with the following approaches, however, they did not work in the Safari browser:
<font size="14">test</font> // appears in huge text (not actually 14px)
<font size="14px">test</font> // similar to line 1
<font size="14pt">test</font> // similar to line 1
<font size="14em">test</font> // Firefox displays the font size as 14px (correct), but in Safari it looks like line 1
<font size="14%">test</font> // same as line 1
Perhaps altering the DTD of the HTML file could help recognize the HTML3 code?