What is the new "style" way of temporary increasing a font size, and then returning back to the normal (without using CSS, or is CSS the better way?).
I want to insert a Hebrew word in my text, and for beginners, the Hebrew font is just too small. I always want it bigger than the current font size, not pegged to some specific size.
Line 1 below works (the old way of doing things). What is the fix to line 2?
This is normal. <font size="+2">bigger</font> back to norm.
<span style='{FONT-SIZE: +2}'> and also bigger</span>.
The <font> tag was used in HTML 4 to specify the font face, font size, and color of text.
How to Change Font Size in HTML. To change font size in HTML, use the CSS font-size property. Set it to the value you want and place it inside a style attribute. Then add this style attribute to an HTML element, like a paragraph, heading, button, or span tag.
<font size="+2">
is equivalent to font-size: x-large;
so your second line should be
<span style='font-size: x-large;'> and also bigger</span>.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With