Copyright © tutorialspoint.com

HTML Marquees

previous next


Advertisements

A HTML marquee is a scrolling piece of text displayed either horizontally across or vertically down your web site page depending on the settings. This is created by using HTML tag <marquees>.

NOTE: The HTML <marquee> is an MSIE extension, but is now supported by NS 7 also. So please check if your browser supports this tag or not.

Syntax:

A simple syntax to use marquee is as follows:

<marquee attribute_name="attribute_value"....more attributes>

One or more lines or text message or image

</marquee>

Attrubutes:

A HTML marquee can have following attributes:

Examples:

Here are few examples to demonstrate the usage of marquee tag.

To Become more comfortable - Do Online Practice

<marquee>This is basic example of marquee</marquee>

This will produce following result:

This is basic example of marquee

<marquee width="50%">This example will take only 50% width</marquee>

This will produce following result:

This example will take only 50% width

<marquee direction="right">This text will scroll from left to right</marquee>

This will produce following result:

This text will scroll from left to right

<marquee direction="up">This text will scroll from bottom to up</marquee>

This will produce following result:

This text will scroll from bottom to up

previous next

Copyright © tutorialspoint.com