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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T13:39:18+00:00 2026-05-12T13:39:18+00:00

In what situations is it more appropriate to use an HTML IMG tag to

  • 0

In what situations is it more appropriate to use an HTML IMG tag to display an image, as opposed to a CSS background-image, and vice-versa?

Factors may include accessibility, browser support, dynamic content, or any kind of technical limits or usability principles.

  • 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-12T13:39:19+00:00Added an answer on May 12, 2026 at 1:39 pm

    Proper uses of IMG

    1. Use IMG if you intend to have
      people print your page and you want the image to be included by default.
      —JayTee
    2. Use IMG (with alt text) when the image has an important semantic meaning, such as a warning icon. This ensures that the meaning of the image can be communicated in all user-agents, including screen readers.

    Pragmatic uses of IMG

    1. Use IMG plus alt attribute if the image
      is part of the content such as a logo or diagram or person (real person, not stock photo people).
      —sanchothefat
    2. Use IMG if you rely on browser scaling to render an image in proportion to text size.
    3. Use IMG
      for multiple overlay images in IE6.
    4. Use IMG with a z-index in order
      to stretch a background image to fill its entire window.

      Note, this is no longer true with CSS3 background-size; see #6 below.
    5. Using img instead of background-image can dramatically improve performance of animations over a background.

    When to use CSS background-image

    1. Use CSS background images if the
      image is not part of the content.
      —sanchothefat
    2. Use CSS background images when
      doing image-replacement of text eg. paragraphs/headers.
      —sanchothefat
    3. Use background-image if you intend to have
      people print your page and you do not want the image to be included by default.
      —JayTee
    4. Use background-image if you need to improve download times, as
      with CSS sprites.
    5. Use background-image if you need for only a portion of the image to be visible, as with CSS sprites.
    6. Use background-image with background-size:cover in order to stretch a background image to fill its entire window.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In what situation would it be more appropriate for me to use a bitset
Possible Duplicate: In what areas might the use of F# be more appropriate than
I dont undesratand in which situations is more convenient to pass references as functions
I am learning JPA and have one question: In which situations we need more
(See question below for more context): Are there any situations in which <machineKey validationKey=AutoGenerate,IsolateApps
How to find out the more specific error situations like whether the error is
Delphi 2006 introduced new capabilities for records, making them more 'object-oriented'. In which situations
When is it appropriate to use AJAX? what are the pros and cons of
Situation: I have some persons with certain skills and they can/might belong to more
I will try to explain the situation as it is a little bit more

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.