+ 1

What's the need of span tag if we can use font tag and it's attributes?

6th Dec 2016, 5:01 PM
Md. Sayanur Rahman
Md. Sayanur Rahman - avatar
3 Respuestas
+ 1
yes they can be used but it is semantically wrong as font is for decorating little with html but if you use it with script style etc it is not correct then. although they will show same result but font is not for that
6th Dec 2016, 6:00 PM
Sandeep Chatterjee
0
You should use <span>, because as specified by the spec, <font> has been deprecated and probably won't display as you intend.
6th Dec 2016, 6:03 PM
Vipul Walia
Vipul Walia - avatar
0
Font tag is no longer used in html. I pref assign a class in span tag ( <span class=exmpl> hi </span>) and style it (color, font, font weight, size) with CSS. More easy, and less cofusion in the HTML part.
6th Dec 2016, 8:28 PM
Luigi Ragni
Luigi Ragni - avatar