Ever seen a cool, scrolling text on a website? Do you know how these are made? If not, this article is for you. You can make a marquee any color, scroll any direction, and more.
Steps
- Open your HTML document, if you haven't already.
- Where you want your marquee to be, place this code:This is a scrolling marquee</marquee>
- The style attribute controls the background color for the marquee. Leave the tag out if you don't want one. You should use either a color name, a hexadecimal (hex) value, or a RGB (Red Green Blue) value. A full list of colors and their values can be found here.
- The style attribute inside the
tag controls the color of the text. See
this list for colors.
- Change the direction attribute to any direction you want out of the following: right, left, up or down.
- The loop attribute can be changed to suit your needs - it controls how many times the marquee should loop. If you want it to run continuously, you can leave out this attribute.
- The text inside the tag and the tag is the bit you need to change to put your text in.
Tidak ada komentar:
Posting Komentar