html - How to define CSS font size within font tags? -
i have written html code using font tag. used size="2" , size="3"
is possible define main css style in define sizes these fonts?
<font size="2">hello 1</font> <font size="3">hello 2</font>
thanks lot guys
of course can. try adding css style included in page:
font[size="2"] { font-size: 20px; } font[size="3"] { font-size: 30px; }
naturally have choose size prefer. way, <font>
tag obsolete, , should not use it. use <span>
, assign class, instead.
further reference: https://developer.mozilla.org/en-us/docs/web/html/element/font
Comments
Post a Comment