HTML CSS Reference/HTML Attributes Reference/alt

Материал из Web эксперт
Перейти к: навигация, поиск

"alt" Example

    
<HTML>
<Title>Example For alt</Title>
<BODY>
<input type="image" 
       alt="This is an alt text" 
       border="0"
       src="http://www.wbex.ru/style/logo.png" 
       width="99" 
       height="79">
</BODY>
</HTML>



alt is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |<applet>                        <area>                        |
|                |<img>                           <input>                       |
|                |<input type="image">            <object>                      |
+----------------+--------------------------------------------------------------+



"alt" Syntax and Note

Note:
    
This attribute allows elements, such as embedded objects or images, 
to have an alternate description. 
In the case that a browser has images or objects turned off, it 
will display the value of this attribute.
    
Syntax:
    
<element alt="value"> . . . </element>