Home > Net >  I have a simple question regarding alt and title
I have a simple question regarding alt and title

Time:01-31

I have a really simple question.

In HTML links (a href), can I use title and alt? Or only Title?

I know for images title and alt can be used at the same time. But what about links as I have mentioned?

Thank you.

Trying to get an answer to a simple question.

Example:

<a href="#" title="demo" alt="demo">test</a>

I have searched online but couldn't find a definitive answer.

CodePudding user response:

some browser will not support your image or link or title that is why we always use alt. alt is alternative text which shuld be shown when an image or link is not supported by browser

CodePudding user response:

some browser will not support your image.link is not supported by browser

  •  Tags:  
  • html
  • Related