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 9191031
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T20:35:22+00:00 2026-06-17T20:35:22+00:00

A question for the truly pedant I was looking through Chrome’s Developer Tool’s elements

  • 0

A question for the truly pedant

I was looking through Chrome’s Developer Tool’s elements tab when something caught my eye and prompted this question.

Though meaningful alt attributes on img tags are a necessary expectation for accessibility (<img src="/path/to/beauty.png"alt=”Olivia Culpo won the Miss USA 2012 contest”/>), I have seen it often advised that the alt attribute of “spacer”, or other “decorative” images should be given a blank value: <img src="/images/spacer.gif" alt=””/>

These questions are just for decorative images:

  • What happens if I declare the alt attribute, but don’t define it:
    <img src="/images/spacer.gif"alt/>
  • Of the two options, which is optimal (and why)?
  • 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-06-17T20:35:23+00:00Added an answer on June 17, 2026 at 8:35 pm

    If you run <img src="..." alt /> through the validator, it throws an error. The alt attribute needs a value, even if it is null alt="". Usually when an image doesn’t have an alt, some assistive technology announces the path to the image.

    So <img src="..." alt /> is the same as <img src="..." />. Usually the word used is decorative vs trival, but it is probably the same idea. These type of images should have a null alt.

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

Sidebar

Related Questions

Strange question -- I'm looking for an example of how to put a 'page'
So I asked this question earlier: CSS box shadow not truly transparent? And I
Ok, this is a C programming homework question. But I'm truly stuck. I ask
I'm sorry if this question frustrates anyone ... I am truly a beginner to
this may be a truly stupid question but I haven't readily found the answer.
It sounds like a dumb question and FAQ as well, but I truly don't
Hey so following this Question I've gotten stuck again, and yeah I've tried looking
Sorry, this became a 3-fold question regarding arrays I think (dynamic) arrays are truly
This is a truly embarrasssing question. I am having a validate script problem and
My question is very straight forward: is the delegate design pattern in iOS truly

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.