HBCMS更多的中文手册参考:

ALT Attribute | alt参数属性

DHTML文档教程

Sets or retrieves a text alternative to the graphic.

What's New for Microsoft® Internet Explorer 6

This property now applies to the object object.

dhtml语法

HTML<ELEMENT ALT = sTxt... >
Scriptingobject.alt [ = sTxt ]

DHTML可能的值

sTxtString that specifies or receives the text to display as an alternative to the graphic.

The property is read/write. The property has no default value.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see about dynamic properties.

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 title attribute 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.

DHTML代码范例

This example uses the ALT attribute to indicate that the icon displayed denotes a read/write property.

<IMG SRC="/hbcms/php/r.php?url=http%3A%2F%2Fexample.microsoft.com/rw.gif" ALT="Read/Write Property">

是否符合公共标准

This property is defined in HTML 3.2 Non-Microsoft link and is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 Non-Microsoft link.

Applies To

OBJECT, APPLET, AREA, INPUT, INPUT type=image, IMG