HTML CSS Reference/HTML Attributes Reference/alt

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

"alt" Example

   <source lang="html4strict">
   

<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>


     </source>
   
  


alt is applied to

   <source lang="html4strict">

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

     </source>
   
  


"alt" Syntax and Note

   <source lang="html4strict">

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>


     </source>