Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

alt property

Sets or retrieves a text alternative to the graphic.

HTML 4.01 Specification, Section 13.8

Syntax

HRESULT value = object.put_alt( altText);HRESULT value = object.get_alt(* altText);

Property values

Type: BSTR

the text to display as an alternative to the graphic.

Standards information

Remarks

The text is used to replace the graphic for text-only browsers and to display in the window before the graphic has loaded. The text also acts as a ToolTip if the IHTMLElement::title is not set when the user hovers the mouse over the graphic.

Alternate text should be provided whenever the graphic is not rendered. Alternate text is mandatory for Level 0 documents.

In Microsoft Internet Explorer 6, This property now applies to the object object.

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.