Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1108811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T02:08:25+00:00 2026-05-17T02:08:25+00:00

If I am using a background image in an anchor tag as a menu,

  • 0

If I am using a background image in an anchor tag as a menu, what is the best way to provide a text label equivalent for screen readers and SEO?

Assume the HTML is like this:

<h2><a class='menuItem1'></a></h2>

And the CSS is like this

.menuItem1 {
    display:block;
    width:100px;
    height:25px;
    background-image:url(../Images.menuitem1.png);
}

Should I use title="..." as well at alt="..." on the A tag? My test using the Lynx browser seems to only show a label if there is text in the A tag as well.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T02:08:25+00:00Added an answer on May 17, 2026 at 2:08 am

    alt only exists on the <img> tag. If your image is actually a meaningful part of the web page, and not just stylistic, then you can just use an actual <img> tag with an alt attribute.

    Alternatively, you could put the actual text inside the <a> tag, and hide it using CSS. Since display: none will also hide it from screen readers, you would need to instead hide it with something like text-indent:-9999px;

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using background-size: 100%; To fit my background image (in the body-tag) to the
The issue I'm using jQuery supersized for a full screen background image, which will
Especially each image that contains the text and icon are displayed using background-image in
I want to replace anchor text with image using CSS. Here is my code.
I have given a table background image using css background-image property. The cells are
I'm trying to set an image as the background using this code: root.setStyle(-fx-background-image: url('splash.jpg');
I have a logo link that's using a background-image (css sprite). All works fine,
I have an icon that is inserted into a page using the background-image property.
Is it possible to have transparent background image using CSS3? background: url(../img/bg_paperlines.jpg) repeat-x; Using
Below is the syntax I am using for the background Image. For some reason

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.