It is used for the movement of text. Marquee tag support scrollable text and image in webpage. This effect create an attractive effect for website. Content will be scroll either left, right, up, down direction.

The Marquee scrolldelay attribute : This is basically used to set the time interval between each scroll movement in milliseconds. The by default value of Scroll delay is 85.
Note: Value less then 60 is not acceptable, unless true speed is specified.

Marquee Tag Attribute:

1.Width: This attribute provide a width of a marquee. You can provide a units in pixel or percent.

Example: width=”100px” or width=”100%”

2.Height: This attribute provide a height of a marquee. You can provide a units in pixel or percent.

Example: height =”100px” or height =”100%”

3.Scrollamount: It provide a speed for the text ,content, image.You can increase or decrease the speed of an content.

Example: <marquee width=”10px height =”100px” scrollamount=”100”> scrollamount</marquee>

4. Scrolldelay: It Provide a feature of delaying a content, delaying among each jump. After some delaying movement of text will be initial. By default scrolldelay value is 85.

Example: <marquee width=”500px” height=”400px” direction=”down” scrolldelay=”95″> scrolldelay </marquee>

5. Direction: It Provides the direction or way to your content, in which your marquee will move as according to direction. By default it follow left direction, it will scroll from right to left. If you use right direction then it will scroll from right to left. The value of this attribute can be: left, right, up or down.

5. Behavior: It will provides the scrolling type in a content. That scrolling can be like sliding, scrolling or alternate.

1.Slide: By this, Content strike at last and stop the movement after that.

2.Scroll: This is a by default process that it follow. By this, content will scroll.

3.Alternate: By this alternate type, content will come back after scrolling.

6. Loop: In which there is a need to repeat a content a fixed number of time. It will provides how many times the marquee will run or execute. The Marquee loop attribute in HTML is used to define the number of time marquee should loop. The default value of loop is infinite.

7. Bgcolor: It will provides a background color where the value will be either color name or the hexadecimal color-code.

8. vspace: It provides a vertical space and its value can be like: vspace=”50″ or vspace=”50%”. It will increase or decrease a vertical space. Vertical space means space from top to bottom.

9. hspace: It Provides a horizontal space and its value can be like: vspace=”20″ or vspace=”30%”. It will increase or decrease a horizontal space. horizontal space means space from left to right.

Program:

(Visited 75 times, 1 visits today)
Share with Friends :