HTML CSS Reference/HTML Attributes Reference/behavior

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

"behavior" Example

   <source lang="html4strict">
   

<HTML> <head><Title>Example For behavior</Title></head> <BODY> <marquee behavior="slide" bgcolor="#99ffff">Animation.</marquee> </BODY> </HTML>


     </source>
   
  


behavior is applied to

   <source lang="html4strict">

+----------------+--------------------------------------------------------------+ | Applied_To |<marquee> | +----------------+--------------------------------------------------------------+

     </source>
   
  


behavior Possible Values

   <source lang="html4strict">

Possible Values alternate The content moves back and forth between the borders. scroll The content loops through. This is the default value. slide The content moves to the end and stops.


     </source>
   
  


"behavior" Syntax and Note

   <source lang="html4strict">

Note:

This attribute specifies how content will scroll in the <marquee> element.

Syntax:

<marquee behavior="value"> . . . </marquee>


     </source>