How to change text movement direction in marquee of html? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to change text movement direction in marquee of html?

20th Aug 2017, 6:57 AM
Friday
Friday - avatar
3 Answers
+ 7
<marquee direction = "right/left/up/down"> note: the marquee tag is no longer supported in html 5, so it's not recommended to use it, try to achieve the same effect with css by animating your container
20th Aug 2017, 7:24 AM
Kamil
Kamil - avatar
+ 4
you can use 'direction' attribute in marquee tag to change its direction. example: <p> <marquee direction="left"> this is a paragraph </marquee> </p> <!--text will move from right to left --> p> <marquee direction="right"> this is a paragraph </marquee> </p> tex will move from left to right. p> <marquee direction="down"> this is a paragraph </marquee> </p> tex will move from up to down. p> <marquee direction="up"> this is a paragraph </marquee> </p> tex will move from down to up. hope it will help....
20th Aug 2017, 7:26 AM
Ubaid Siddiqui
Ubaid Siddiqui - avatar
0
<MARQUEE DIRECTION=LEFT>Hi There.</MARQUEE> <MARQUEE DIRECTION=RIGHT>Hi There.</MARQUEE> <MARQUEE BEHAVIOR=SCROLL>Hello</MARQUEE> <MARQUEE BEHAVIOR=SLIDE>Hello</MARQUEE> <MARQUEE BEHAVIOR=ALTERNATE>Hello</MARQUEE> try all these
20th Aug 2017, 7:22 AM
Mohit Mehta
Mohit Mehta - avatar