Is there an equivalent to the “alt” attribute for div elements?

You can just put a title tag in the div which will do the same as an alt tag like so:

<div title="I AM HELLO WORLD">HELLO WORLD</div>

“I AM HELLO WORLD” will be printed once you move your cursor around it on a browser

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)