Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML Style tag equivalent of "font size+2"

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>.
like image 734
NealWalters Avatar asked Feb 26 '12 23:02

NealWalters


People also ask

What is the tag for font size in HTML?

The <font> tag was used in HTML 4 to specify the font face, font size, and color of text.

How do I change font size and style in HTML?

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.


1 Answers

<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>.
like image 102
Alexander Pavlov Avatar answered Sep 23 '22 12:09

Alexander Pavlov