Browse Definitions :

alt text (alternative text)

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
  • OPSEC (operations security)

    OPSEC (operations security) is a security and risk management process and strategy that classifies information, then determines ...

  • smart contract

    A smart contract is a decentralized application that executes business logic in response to events.

  • compliance risk

    Compliance risk is an organization's potential exposure to legal penalties, financial forfeiture and material loss, resulting ...

  • What is cybersecurity?

    Cybersecurity is the protection of internet-connected systems such as hardware, software and data from cyberthreats.

  • private key

    A private key, also known as a secret key, is a variable in cryptography that is used with an algorithm to encrypt and decrypt ...

  • DOS (disk operating system)

    A DOS, or disk operating system, is an operating system that runs from a disk drive. The term can also refer to a particular ...

  • What is risk mitigation?

    Risk mitigation is a strategy to prepare for and lessen the effects of threats faced by a business.

  • change control

    Change control is a systematic approach to managing all changes made to a product or system.

  • disaster recovery (DR)

    Disaster recovery (DR) is an organization's ability to respond to and recover from an event that affects business operations.

  • RAM (Random Access Memory)

    RAM (Random Access Memory) is the hardware in a computing device where the operating system (OS), application programs and data ...

  • RAID 6

    RAID 6, also known as double-parity RAID, uses two parity stripes on each disk. It allows for two disk failures within the RAID ...

  • NOR flash memory

    NOR flash memory is one of two types of non-volatile storage technologies.