What is the difference between <span> and <font>

What is the difference between <span> and <font >when i want to change color of the word or of the sentence. <span style=‚Äúcolor:red‚ÄĚ>Thank you :)</span> <font color=‚Äúblue‚ÄĚ>for your help</font>

23rd Apr 2020, 4:53 PM
3 Respostas
+ 3
The 2 tags span and font do not have the same purpose: <span> is a generic container that can be used to group elements, whereas <font> was( in the old days)more specifically designed to specify the font face, color and size for the contained text. The font tag is not meant to be used any more: to specify text formatting it is now better to use css style within the other more generic enclosing tags (span, p, div, td).
23rd Apr 2020, 6:41 PM
ifl - avatar
thank you very much!
24th Apr 2020, 5:37 AM
Instagram is one of the most popular social media platforms in the world, with over 1 billion active users. And now, thanks to Instagram Schrift, you can change the font on your posts and stories! With this new tool, you have a wide range of options to choose from, including all caps, small caps, bubble text, square text, bold, old English text, italic, upside down text, strikethrough, invisible ink, and Zalgo. https://instazoom.mobi/instagram-schrift/
21st Sep 2022, 10:05 AM
Stanly Leonel
Stanly Leonel - avatar