Also known as marquees, tickers scroll across the width of a viewing screen, presenting messages designed to be viewed and understood at a glance. Commonly used on television to display news highlights or stock market data, tickers sometimes appear on the Web as well. With a few lines of HTML and Cascading Style Sheet (CSS) code, you can quickly add this type of content to your website.
Open your Web page and view its HTML code. If you use a visual editing tool such as Adobe Dreamweaver, open the page and click on the area where you want to add your ticker. Change your viewing mode to Code View. This shows you the HTML code that controls the appearance of your page. If you use a text editor, open your page in the editor and scroll down to the part of the page where you want to add the ticker.
Video of the Day
Press the "Enter" key to insert a blank line.
Copy and paste the following code onto the blank line:
This code defines a marquee element, which slides content across the screen from right to left by default. The paragraph contained between the opening and closing marquee tags is the content in this example.
Update the code parameters to suit your design needs. The opening marquee tag uses CSS style rules to define a light gray background color, along with a 1-pixel wide border of slightly darker gray. All of these values can be adjusted. In addition, substitute the placeholder content located between the opening and closing paragraph tags with text or images of your own.
Save your page and open it in a Web browser. The ticker appears onscreen at the page location you selected in Step 1.