Reputation: 1
How can we increase the font size in html?
<font face="Garamond" size="7">
up to this size only it is working. Is there any way to increase the size of the font?
Upvotes: 0
Views: 15021
Reputation: 73282
Adding onto the answers that exist. Inline styling is usually frowned upon, because:
Upvotes: 2
Reputation: 102715
The largest size the font tag supports is 7. If you need it to be larger, you will have to use CSS, which you should probably be using anyway because the font element is deprecated.
The CSS font-size
values, xx-small
, x-small
, small
, medium
, large
, x-large
, and xx-large
are comparable to <font size="1">
through <font size="7">
if you want to specify the size like that, but you would run into the same size limitation. The more typical way is to use px
or pt
for absolute sizes, and %
or em
for relative sizes.
Upvotes: 4