I'm looking for a cross browser solution to display information when "hovering" on an element, I know this can be done with JS dynamically but I'd prefer in this specific case a basic static HTML solution.
According to mozilla developers website (here) using title instead of alt is the best practice but I'd like more "field experience" to help me decide if I should go for ALT
, TITLE
attr or JavaScript
Thank you very much
Title
attribute is for tooltips and is supported by all major browser. You should use it.
Alt
attribute isn't about tooltips at all.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With