Why use span instead of font tag ,,both are doing same work


#1

<p>My favorite font is <span style="font-size:30px;font-family:Impact;color:blue ">Impact</span>!</p>

<p>My favorite font is <font style="font-size:30px;font-family:Impact ;color:blue;">Impact</font>!</p>``

#2

about the <font> element: This feature is obsolete. Although it may still work in some browsers,
its use is discouraged since it could be removed at any time. Try to
avoid using it source

So, that is why you use span, <font> is outdated

if you edit/update your question, leave a reply so i get a notification. Your code is not visible, take the following steps to make your code visible:

select your code and press ctrl + k (or cmd + k if you use a mac)

if this instructions are unclear, you can also insert 3 backticks before and after your code, like so:

```
<p>visible</p>
```

the backtick is located above the tab key on your keyboard