Why to use <span> if we can use <font color="?"> | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Why to use <span> if we can use <font color="?">

they both change the color of texts

14th Dec 2017, 2:59 PM
Pratham Kumar
Pratham Kumar - avatar
2 Answers
+ 9
font tag is not supported in html5
14th Dec 2017, 3:04 PM
Md. Nafis Ul Haque Shifat
Md. Nafis Ul Haque Shifat - avatar
+ 4
span is a container it's not a styling tag.. and we don't use span instead of font tag.. whereas, the font tag has been deprecated from HTML5.. as in said that all stylings are to be done separately in css.. either inline or external file of CSS linked to the html or internally placed in html by using <style> tag
14th Dec 2017, 3:05 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar