Html code - learning html code - free html code tutorial - online html code course - text attributes on web page using html

Sponsored Links

HTML code - Text Controlling Tags Part 2

I must confess, I never wanted to write this section. I thought it would be more appropriate to include it in the Tips and Tricks section. Okay, here it is...

<MARQUEE> and <BLINK> are two browser specific tags. These tags are displayed only by some browsers and ignored by the others.

  • <BLINK>: Netscape Communicator
  • <MARQUEE>: Internet Explorer

The <BLINK>

This tag is rendered ONLY by Netscape. There have been many a things said about this tag (most of them unpleasant). I feel it provides cheap thrills to a novice. Also, IE ignores this tag. So if you are using Internet Explorer you wouldn't see the blinking text below.

  Blink Blink


<MARQUEE>

The <MARQUEE> tag provides some animated text to the page. Unfortunately, it is supported only by Internet Explorer (and WebTV). It provides an easy way to put some dynamic text in otherwise static pages (scripting languages are another story).

An easy way to put some colorful animated text on your page.

It has many attributes:

  • BEHAVIOUR = ALTERNATE, SCROLL OR SLIDE
  • BGCOLOR = #RRGGBB (The RGB code, explained in the color session) or Color-Name such as "Blue", "Green" etc.
  • DIRECTION = DOWN, LEFT, RIGHT OR UP
  • HEIGHT = in pixels or percentage
  • HSPACE = in pixels (the amount of horizontal space left)
  • LOOP = number or INFINITE
  • SCROLLAMOUNT = in pixels
  • SCROLLDELAY = in milliseconds
  • TITLE = some advisory text
  • TRANSPARENCY = 0 to 100 (number)
  • VSPACE = in pixels (amount of vertical space left)
  • WIDTH = in pixels or percentage
  • and the CLASS, ID and STYLE attributes if you use style sheets

I like this marquee tag, its easy, cool and gives great results. Pity it's not supported by Netscape version 4.xx.



Online Workspace

Now play with the code:
To check the result, click on the "Display" button. Another browser window pops up with the results. Modify the code in the box and check the results again. Get a good feel of this before proceeding to the next section.




Page contents: Html code - learning html code - free html code tutorial - online html code course - text attributes on web page using html

AddThis Social Bookmark Button