How Do I Show Alt Text When Hovering Over An Anchor With A Mouse?

    1. Home
    2. Questions
    3. Tags
    4. Users
    5. Jobs
    6. Companies
    7. Unanswered
  1. Teams

    Ask questions, find answers and collaborate at work with Stack Overflow for Teams.

    Try Teams for free Explore Teams
  2. Teams
  3. Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams How do I show alt text when hovering over an anchor with a mouse? [closed] Ask Question Asked 5 years, 11 months ago Modified 5 years, 11 months ago Viewed 7k times 2 Closed. This question is off-topic. It is not currently accepting answers.

This question does not appear to be about webmastering within the scope defined in the help center.

Closed 5 years ago.

Improve this question

I'd like to show some descriptive text when the mouse hovers on a link:

<a class="foo" alt="Hello World" href="/index.html">Hello World</a>

Share Improve this question Follow edited Jan 22, 2019 at 18:27 Jason Is My Name's user avatar Jason Is My Name 3471 silver badge9 bronze badges asked Jan 22, 2019 at 9:07 Giuliano Malatesta's user avatar Giuliano MalatestaGiuliano Malatesta 211 silver badge3 bronze badges 1
  • 1 This question appears to be off-topic because it is about web development which is off-topic at Pro Webmasters. Web development questions may be asked at Stack Overflow but be sure to read their FAQ before posting to ensure your question meets their guidelines. In its current form, this question does not meet their guidelines. – John Conde Commented Jan 22, 2019 at 12:32
Add a comment |

2 Answers 2

Sorted by: Reset to default Highest score (default) Date modified (newest first) Date created (oldest first) 5

Go ahead and use the title attribute my friend!

<a href="#" title="hello universe!">Hello Everyone!</a> Share Improve this answer Follow edited Jan 22, 2019 at 12:23 answered Jan 22, 2019 at 9:20 Jason Is My Name's user avatar Jason Is My NameJason Is My Name 3471 silver badge9 bronze badges 1
  • Easy peezy, lemon squeezy! – Joshua Pinter Commented Dec 30, 2020 at 16:36
Add a comment | 1

What purpose do alt tags serve?

Search engines and other robots cannot interpret images, but images can play a crucial part in how people interpret a particular web page. Alt tags solve for this by providing text which is read by the search engines. When Googlebot or other search engine crawlers inspect a page, images with properly formatted alt text contribute to how the page is indexed and where it ranks.

Alt tags are also useful for users viewing a webpage on screen readers or browsers that can't process images.

Source: What is an alt tag, and how does it impact SEO?

But in your case you would like to use a href only for hyper link so use title tag only not alt tag.

<ul> <li><a class="navbar" title="culture" href="../cultura/index.html">Cultura</a></li> </ul>

If you're going to use img src then use alt tag it'll be more helpful.

Alt text is contained within the image tag example:

<img src="/demo/nike_air_zoom.png" alt="nike air zoom" title="nike air zoom" /> Share Improve this answer Follow edited Jan 22, 2019 at 17:51 MrWhite's user avatar MrWhite 43.1k4 gold badges50 silver badges90 bronze badges answered Jan 22, 2019 at 10:41 Group Of Oceninfo's user avatar Group Of OceninfoGroup Of Oceninfo 2921 silver badge5 bronze badges 1
  • Please quote your sources. However, since you're going into detail describing what the "alt tag" is, I think you should at least mention that it isn't actually a valid attribute on anchors. – MrWhite Commented Jan 22, 2019 at 17:59
Add a comment |

Not the answer you're looking for? Browse other questions tagged or ask your own question.

  • The Overflow Blog
  • Developers want more, more, more: the 2024 results from Stack Overflow’s...
  • How AI apps are like Google Search
  • Featured on Meta
  • The December 2024 Community Asks Sprint has been moved to March 2025 (and...
  • Stack Overflow Jobs is expanding to more countries
3 JS and CSS caching issue: possibly .htaccess related 2 What to do with repeated content (anchor text) in internal search results when it comes to SEO? 12 Linking several separated Microdata <div>s together? 16 Proper usage of <title>, <header>, <h1> and <h2> in a HTML5 website? 3 For SEO of the company name, should we use a logo with alt text or a company name div replaced in CSS with an image? 3 Universal shortened doctype for all mobile devices 4 Will it help SEO to use <strong> tags just around a keyword while making a larger containing phrase bold using CSS? 1 Getting HTML includes to work with XAMPP

Hot Network Questions

  • Is there a cause of action for intentionally destroying a sand castle someone else has built on a public beach?
  • LGPL-like license for 3D models
  • "Sacks of which articles" in "Wuthering Heights"
  • What Battery Powered Part Is This?
  • Why don't bicycles have the rear sprocket OUTSIDE of the frame spacing? (Single speed)
  • Are there any languages without adpositions?
  • Career in Applied Mathematics: Importance of a Bachelor's in Mathematics vs in another STEM field
  • Odd-looking coordinate system
  • Is there any denomination which officially rejects Young Earth Creationism?
  • Why did Herod want to know the time of appearance of the Star of Bethlehem?
  • Why does capacitive coupling require a base resistor in an emitter follower?
  • Does hypothesis testing help make a decision in case of an A/B test?
  • First instance of the use of immersion in a breathable liquid for high gee flight?
  • Correspondence of ancient 天关 in western astronomy
  • How to model a stone sauna stove for game asset?
  • No other coauthors, just me and my supervisors—is this normal?
  • Varying output from single file
  • Why does MS-DOS 6.22 boot so slowly?
  • How to do the opposite of shift in zsh?
  • What's left of wine or vodka after the water and alcohol is boiled off?
  • Did a peaceful reunification of a separatist state ever happen?
  • Extrapolate data to a straight line
  • Why didn't Kafka use quotation marks in this dialogue?
  • writing two matrices in a clear and nice way
more hot questions lang-html

Từ khóa » Html Image Alt Text Hover