Easy To Learning
  • Login
  • Sign Up
  • Q&A
  • Home
  • Php Tutorial
  • MySql Tutorial
  • Object-Oriented Programming
  • Java Tutorial
  • HTML Tutorial
  • React JS Tutorials
  • Free Projects
  • Blogs & Articles
  • Others
    • About Us
    • Contact Us
Marquee HTML
Easy To Learning

Education Needs Complete Solution

Online Ask Question Question And Answer
  1. Home
  2. HTML Tutorials
  3. Marquee HTML

HTML Tutorial

Basic HTML Fundamentals

  • HTML Table Content
  • Introduction To HTML
  • What Is HTML
  • HTML Tags
  • HTML Formatting
  • HTML Heading
  • HTML Paragraph
  • HTML Anchor
  • HTML Image
  • HTML Table
  • HTML Lists
  • HTML Ordered List
  • HTML Unordered List
  • HTML Description List
  • HTML Form

HTML Tags

  • Marquee HTML
  • HTML Textarea
  • HTML Quotes
  • HTML Style
  • HTML Title Or HTML Doctype
  • HTML Div Tag
  • HTML Pre Tag
  • HTML Code Tag
  • HTML Label Tag
  • HTML Input Tag
  • HTML Button Tag
  • HTML Hr Tag
  • HTML Br Tag
  • HTML Script Tag
  • HTML NoScript Tag
  • HTML Bold Tag

Marquee HTML

Marquee HTML

The Marquee HTML tag is a non-standard HTML element which is used to scroll a image or text horizontally or vertically.

In simple words, you can say that it scrolls the image or text up, down, left or right automatically.

Marquee tag was first introduced in early versions of Microsoft's Internet Explorer. It is compared with Netscape's blink element.

Marquee HTML Example

<marquee>This is an example of html marquee </marquee>  

Output:

This is an example of html marquee 

 

 

 

Supporting Browsers

 

 

 

Element  Chrome  IE  Firefox  Opera  Safari
<marquee> Yes Yes Yes Yes Yes

 

 

 

HTML Marquee Attributes

 

 

 

Marquee's element contains several attributes that are used to control and adjust the appearance of the marquee.

 

 

 

Attribute Description
behavior It facilitates user to set the behavior of the marquee to one of the three different types: scroll, slide and alternate.
direction defines direction for scrolling content. It may be left, right, up and down.
width defines width of marquee in pixels or %.
height defines height of marquee in pixels or %.
hspace defines horizontal space in pixels around the marquee.
vspace defines vertical space in pixels around the marquee.
scrolldelay defines scroll delay in seconds.
scrollamount defines scroll amount in number.
loop defines loop for marquee content in number.
bgcolor defines background color. It is now deprecated.

 

 

 

HTML Scroll Marquee

 

 

 

It is a by default property. It is used to scroll the text from right to left, and restarts at the right side of the marquee when it is reached to the end of left side. After the completion of loop text disappears.

 

 

 

<marquee width="100%" behavior="scroll" bgcolor="pink">  
This is an example of a scroll marquee...  
</marquee>  

 

 

 

Output :

 

 

 

   This is an example of a scroll marquee...     

 

 

 

HTML Slide Marquee

 

 

 

In slide marquee, all the contents to be scrolled will slide the entire length of marquee but stops at the end to display the content permanently.

 

 

 

<marquee width="100%" behavior="slide" bgcolor="red">  
This is an example of a slide marquee...  
</marquee>

 

 

 

Output :

 

 

 

   This is an example of a slide marquee...  

 

 

 

HTML Alternate Marquee

 

 

 

It scrolls the text from right to left and goes back left to right.

 

 

 

<marquee width="100%" behavior="alternate" bgcolor="red">  
This is an example of a alternate marquee...  
</marquee>  

 

 

 

Output :

 

 

 

   This is an example of a slide marquee...  

 

 

 

Direction in HTML marquee

 

 

 

This is used to change the direction of scrolling text. Let's take an example of marquee scrolling to the right. The direction can be left, right, up and down.

 

 

 

 

 

 

 

<marquee width="100%" direction="right">  
 This is an example of a right direction marquee...  
</marquee>  

 

 

 

Output : 

 

 

 

This is an example of a right direction marquee...

 

 

 

Nested marquee example

 

 

 

<marquee width="400px" height="100px" behavior="alternate" style="border:2px solid blue">  
<marquee behavior="alternate">  
Nested marquee...  
</marquee>  
</marquee>  

 

 

 

Output :

 

 

 

Nested marquee...

 

 

 

Disadvantages HTML marquee

 

 

 

  • Marquee may be distracting because human eyes are attracted towards movement and marquee text constantly.
  • Since Marquee text moves, so it is more difficult to click static text, depending on the scrolling speed.
  • It is a non-standard HTML element.
  • It draws user's attention needlessly and makes the text harder to read.

 

 

 

Series: HTML Tutorials Hub
All Topics
Free Download Projects
Previous Chapter
Next Chapter

Ask a Question

Have a coding query or doubt? Ask here and get help from our community.

500 characters remaining
Submitting...
Free Download Projects
Join Telegram Group Join WhatsApp Group
Related Topics:
marquee in html easytolearning marquee tag in html stop on mouseover marquee behaviour marquee tag example marquee html5 marquee in css marquee tag in html for multiple images marquee tag attributes

Member Sign In

Forgot?
Signing in...

Don't have an account? Register here

Create Free Account

Register Captcha
Registering...

Already have an account? Sign In

Ask a Question

500 characters remaining
Submitting...

About Easy To Learning

Easy To Learning is a comprehensive programming learning portal offering free, practical, developer-driven tutorials for PHP, Java, Python, Spring, MySQL, CSS, Bootstrap, CakePHP, and more.

Explore community-contributed questions and answers, and download ready-to-run source code projects.

Quick Links

  • Home
  • Questions & Answers
  • Download Projects
  • Blog & Articles
  • Member Login

Community

  • Telegram Group
  • WhatsApp Community
  • Ask a Question
  • Join as Member

Connect With Us

Stay updated with our newest programming tutorials and free open source projects.

© 2026 Easy To Learning. All Rights Reserved.