[Adverisment]

What is the marquee tag in HTML?

The Marquee tag This tag is not part of HTML 3.2 and is only supported by Microsoft Internet Explorer so if you try to se...




The Marquee tag

This tag is not part of HTML 3.2 and is only supported by Microsoft Internet Explorer so if you try to see the page with marquee tag using any other browser you won't see anything very interesting.


The <marquee> tag is used to introduce text that scrolls horizontally within a display box. Here's a simple example.


<p align=center>
<font size=+3 color=red>
<marquee width=75%>
Hello World!
</marquee>
</font></p>


IE3, apparently, does not honour any other tags that appear within a marquee so it is impossible to animate multi-colored text or images this way. This restriction has been relaxed in IE4.


The tag, which is a container tag, has 11 attributes.



Align

This tag can take one of the values top, middle and bottom. It controls the positioning of the marquee display box relative to the current text in exactly the same manner as the <img> tag's align attribute.



Behavior

This tag controls the behaviour of the displayed text. There are three possible values. Text scrolling starts as soon as the page is downloaded, not when the user first scrolls the marquee into view.


Add a border to a table:

Value effect
scroll text scrolls across display and re-appears from the other end when it has disappeared from one end. This is the default behaviour.
slide This is similar to scroll except that when the sliding text reaches the far end of the box, it disappears and restarts at the starting end of the box. If the display is not looping then the text remains positioned at the far end of the box.
alternate text "bounces" between the ends of the box

Direction

This attribute controls the direction of scrolling. Permissible values are left and right specifying the end of the box that the scroll starts from. Here's some examples.

Add a border to a table:

Value effect
right starts at right hand end
left starts at left hand end


It appears that the value of this attribute does not affect the behaviour of the marquee if the value of the behavior attribute is alternate.


The following four attributes are used in exactly the same way as they are used with the <img> tag.


Height

This controls the height of the display box.


Width

This controls the width of the display box.


Hspace

This controls the horizontal space around the display box.


Vspace

This controls the vertical space around the display box.


Loop

The value of this attribute controls the number of display cycles. The values -1 and infinite both mean continue indefinitely.


Scrollamount

This controls the amount of movement (in pixels) between the successive displays that give the impression of animation.


Scrolldelay

This controls the delay (in milliseconds) between the successive displays that give the impression of animation.


COMMENTS

Advertisement

Name

CBSE,1,Essay Writing,7,G.K & Current Affairs,9,Information & Technology,24,Letter Writing,8,News Letter,10,Passage Writing,3,Report Writing,2,SEBA,1,
ltr
item
Teacher Notes: What is the marquee tag in HTML?
What is the marquee tag in HTML?
https://images.hasgeek.com/embed/file/ce5258a94b8b44f1a4c0ef4998f357e7?size=1024x768
Teacher Notes
https://www.freeteachernotes.com/2019/11/what-is-marquee-tag-in-html.html
https://www.freeteachernotes.com/
https://www.freeteachernotes.com/
https://www.freeteachernotes.com/2019/11/what-is-marquee-tag-in-html.html
true
2332357964370966229
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy