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.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

thank you
Cancel

-ADS BY GOOGLE

Extensions de fichiers et formats de fichiers

Motorisé par:

SearchCompliance

  • internal audit (IA)

    An internal audit (IA) is an organizational initiative to monitor and analyze its own business operations in order to determine ...

  • pure risk (absolute risk)

    Pure risk, also called absolute risk, is a category of threat that is beyond human control and has only one possible outcome if ...

  • risk assessment

    Risk assessment is the identification of hazards that could negatively impact an organization's ability to conduct business.

SearchSecurity

  • phishing

    Phishing is a form of fraud in which an attacker masquerades as a reputable entity or person in email or other communication ...

  • vulnerability disclosure

    Vulnerability disclosure is the practice of publishing information about a computer security problem, and a type of policy that ...

  • incident response

    Incident response is an organized approach to addressing and managing the aftermath of a security breach or cyberattack, also ...

SearchHealthIT

SearchDisasterRecovery

  • business continuity and disaster recovery (BCDR)

    Business continuity and disaster recovery (BCDR) are closely related practices that describe an organization's preparation for ...

  • business continuity plan (BCP)

    A business continuity plan (BCP) is a document that consists of the critical information an organization needs to continue ...

  • call tree

    A call tree -- sometimes referred to as a phone tree -- is a telecommunications chain for notifying specific individuals of an ...

SearchStorage

  • flash memory

    Flash memory, also known as flash storage, is a type of nonvolatile memory that erases data in units called blocks.

  • NAND flash memory

    NAND flash memory is a type of nonvolatile storage technology that does not require power to retain data.

  • NOR flash memory

    NOR flash memory is one of two types of nonvolatile storage technologies.

SearchSolidStateStorage

  • hybrid hard disk drive (HDD)

    A hybrid hard disk drive is an electromechanical spinning hard disk that contains some amount of NAND Flash memory.

Close