
- HTML Tutorial
- HTML - Home
- HTML - Overview
- HTML - Basic Tags
- HTML - Elements
- HTML - Attributes
- HTML - Formatting
- HTML - Phrase Tags
- HTML - Meta Tags
- HTML - Comments
- HTML - Images
- HTML - Tables
- HTML - Lists
- HTML - Text Links
- HTML - Image Links
- HTML - Email Links
- HTML - Frames
- HTML - Iframes
- HTML - Blocks
- HTML - Backgrounds
- HTML - Colors
- HTML - Fonts
- HTML - Forms
- HTML - Embed Multimedia
- HTML - Marquees
- HTML - Header
- HTML - Style Sheet
- HTML - Javascript
- HTML - Layouts
- HTML References
- HTML - Tags Reference
- HTML - Attributes Reference
- HTML - Events Reference
- HTML - Fonts Reference
- HTML - ASCII Codes
- ASCII Table Lookup
- HTML - Color Names
- HTML - Entities
- HTML - Fonts Ref
- HTML - Events Ref
- MIME Media Types
- HTML - URL Encoding
- Language ISO Codes
- HTML - Character Encodings
- HTML - Deprecated Tags
- HTML Resources
- HTML - Quick Guide
- HTML - Useful Resources
- HTML - Color Code Builder
- HTML - Online Editor
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
HTML - <marquee> Tag
Description
The HTML <marquee> tag is used for scrolling piece of text or image displayed either horizontally across or vertically down your web site page depending on the settings.
Example
<!DOCTYPE html> <html> <head> <title>HTML marquee Tag</title> </head> <body> <marquee>This is basic example of marquee</marquee> <marquee direction = "up">The direction of text will be from bottom to top.</marquee> </body> </html>
This will produce the following result −
Global Attributes
This tag supports all the global attributes described in − HTML Attribute Reference
Specific Attributes
The HTML <marquee> tag also supports the following additional attributes −
Attribute | Value | Description |
---|---|---|
behavior | scroll slide alternate |
Defines the type of scrolling. |
bgcolor | rgb(x,x,x) #xxxxxx colorname |
Deprecated − Defines the direction of scrolling the content. |
direction | up down left right |
Defines the direction of scrolling the content. |
height | pixels or % | Defines the height of marquee. |
hspace | pixels | Specifies horizontal space around the marquee. |
loop | number | Specifies how many times to loop. The default value is INFINITE, which means that the marquee loops endlessly. |
scrolldelay | seconds | Defines how long to delay between each jump. |
scrollamount | number | Defines how how far to jump. |
width | pixels or % | Defines the width of marquee. |
vspace | pixels | Specifies vertical space around the marquee. |
Event Attributes
This tag supports all the event attributes described in − HTML Events Reference
Browser Support
Chrome | Firefox | IE | Opera | Safari | Android |
---|---|---|---|---|---|
Yes | Yes | Yes | Yes | Yes | ? |
html_tags_reference.htm
Advertisements