In this tutorial we are heading to learn about the <Marquee> tag that we mostly used to create scrollable text and images within a web page using HTML. there is no limit to display images in marquee style.
Scrollability is of two types:-
1. Horizontal scroll (left to right, right to left)
2.verticle scroll (up to down, down to up)
Instead of discussing both of them we will discuss only horizontal scroll.
This section contains some images that can be scrolled in horizontal direction (left to right, right to left) by changing their direction attribute. If code is written as
Images/texts scroll towards the left side.
Images/texts scroll towards the right side.
As we discussed above, we are going to use the <Marquee> tag in HTML for multiple images. Let me tell you a bit about the <Marquee> tag that we have already discussed. This tag we use for adding scroll effects on a web page. For adding that style we need to use direction attribute and behavior="scroll" behavior is default with scroll direction is variable with conditions.
here is an example of right to left scrolling.
<marquee behavior="slide" direction="left">
<img src="https://m.media-amazon.com/images/I/31wCV73+N2L.jpg " height="250" width="275"> </marquee>
Moving towards the left side.
Hope this will help.