VML Alt Attribute

This topic describes VML, a feature that is deprecated as of Windows Internet Explorer 9. Webpages and applications that rely on VML should be migrated to SVG or other widely supported standards.

Note  As of December 2011, this topic has been archived. As a result, it is no longer actively maintained. For more information, see Archived Content. For information, recommendations, and guidance regarding the current version of Windows Internet Explorer, see Internet Explorer Developer Center.

Defines alternative text to be displayed instead of a graphic. Read/write. String.

Applies To

Shape

Tag Syntax

<v: element alt=" expression ">

Script Syntax

element .alt="expression"

expression=element.alt

Remarks

The Alt attribute is similar to the standard HTML Alt attribute. This attribute provides a way for browsers that convert text to speech to describe graphical elements on a page.

VML Standard Attribute

See Also

Shape

Example

The Alt element below will display the phrase "Red rectangle" in browsers that convert Web pages to spoken phrases.

   <v:rect id=myrect fillcolor="red" alt="Red rectangle"
   style="position:relative;top:1;left:1;width:20;height:20">
   </v:rect>

Alt Attribute Example. (Requires Microsoft Internet Explorer 5 or greater.)

 

 

Send comments about this topic to Microsoft

Build date: 2/7/2012