Browse Definitions :
Definition

alt text (alternative text)

Contributor(s): Stan Gibilisco

Alt text (alternative text) is a word or phrase that can be inserted as an attribute in an HTML (Hypertext Markup Language) document to tell Web site viewers the nature or contents of an image. The alt text appears in a blank box that would normally contain the image. Alt text is useful when an image link is not available because of a broken or changed URL or some other issue.

An alt attribute starts out with the character sequence alt= and then contains the alt text within quotation marks. For example, the attribute alt="Storm Surge" might appear in the HTML image tag for a photograph of high water during a hurricane. In most browsers, hovering the pointer over an image containing an alt attribute will cause the alt text to appear within a small box beneath the pointer.

When choosing alt text, it's important to ensure that it tells viewers as much as possible about the image, using as few words as possible. This consideration becomes increasingly important as images get physically smaller. If the alt text is too long, it might take up too much space to fit inside the image rectangle (which is the same size as the image would be if it were visible). With bullet links that have external text labels, for example, alt text would only cause clutter. In cases of that sort, the alt text can comprise a single space between the quotes (alt=" ") or the two quotes can be placed right up against each other (alt="").

Alt attributes should always go inside image tags, even if no alt boxes are wanted. If the Web page author does not want an alt box to appear in conjunction with an image, a blank alt attribute should be inserted in the image tag to ensure that a default character sequence showing the image's Web address will not appear when the viewer hovers the pointer over the image.

Alt text is a good place to place relevant keywords to improve your website’s search engine optimization (SEO). As with text elsewhere, however, keyword stuffing -- the practice of inserting a large number of keywords into Web content -- is discouraged. According to Google, the practice is not only unethical but also ineffective.

This was last updated in October 2012

Join the conversation

1 comment

Send me notifications when other members comment.

Please create a username to comment.

thank you
Cancel

-ADS BY GOOGLE

File Extensions and File Formats

Powered by:

SearchCompliance

  • compliance audit

    A compliance audit is a comprehensive review of an organization's adherence to regulatory guidelines.

  • regulatory compliance

    Regulatory compliance is an organization's adherence to laws, regulations, guidelines and specifications relevant to its business...

  • Whistleblower Protection Act

    The Whistleblower Protection Act of 1989 is a law that protects federal government employees in the United States from ...

SearchSecurity

  • RSA algorithm (Rivest-Shamir-Adleman)

    The RSA algorithm is the basis of a cryptosystem -- a suite of cryptographic algorithms that are used for specific security ...

  • remote access

    Remote access is the ability to access a computer or a network remotely through a network connection.

  • IP Spoofing

    IP spoofing is the crafting of Internet Protocol (IP) packets with a source IP address that has been modified to impersonate ...

SearchHealthIT

SearchDisasterRecovery

  • network disaster recovery plan

    A network disaster recovery plan is a set of procedures designed to prepare an organization to respond to an interruption of ...

  • virtual disaster recovery

    Virtual disaster recovery is a type of DR that typically involves replication and allows a user to fail over to virtualized ...

  • tabletop exercise (TTX)

    A tabletop exercise (TTX) is a disaster preparedness activity that takes participants through the process of dealing with a ...

SearchStorage

  • enterprise storage

    Enterprise storage is a centralized repository for business information that provides common data management, protection and data...

  • disk array

    A disk array, also called a storage array, is a data storage system used for block-based storage, file-based storage or object ...

  • optical storage

    Optical storage is any storage type in which data is written and read with a laser. Typically, data is written to optical media, ...

Close