In Association with Amazon.in   Flipkart

Saturday, December 1, 2012

HTML Marquee Tag And Its Attributes With Example

HTML <marquee> Tag:  The HTML <marquee> tag is used for scrolling piece of text or image displayed either horizontally across left/right or vertically down/up of your web site page depending on the settings.
Example:

<marquee>This is Sample example of marquee</marquee>
This will produce following result:

This is Sample example of marquee
Attributes:
Attribute
Value
Description
behavior scroll
slid
alternate
Defines the type of scrolling.
bgcolor rgb(x,x,x)
#xxxxxx
colorname
Deprecated - Specifies the background color.
direction up
down
left
right
Defines the direction of scrolling the content.
height pixels or % Defines the height of marquee.
hspace pixels Specifies horizontal space around the marquee.
loop number Specifies how many times to loop. The default value is INFINITE, which means that the marquee loops endlessly.
scrolldelay seconds Defines how long to delay between each jump.
scrollamount number Defines how how far to jump.
width pixels or % Defines the width of marquee.
vspace pixels Specifies vertical space around the marquee.
Standard Attributes:
Attribute
Description
class Document wide identifier
dir Specifies the direction of the text
id Document wide identifier
title Specifies a title to associate with the element.
style Helps to include inline casecadubf style sheet.
lang Sets the language code.
xml:lang Sets the language code.
Event Attributes:
Attribute
Description
onclick Script runs when a mouse click
ondblclick Script runs when a mouse double-click
onmousedown Script runs when mouse button is pressed
onmouseup Script runs when mouse button is released
onmouseover Script runs when mouse pointer moves over an element
onmousemove Script runs when mouse pointer moves
onmouseout Script runs when mouse pointer moves out of an element
onkeypress Script runs when key is pressed and released
onkeydown Script runs when key is pressed
onkeyup Script runs when key is released
Ex:-
 <marquee behavior="alternate" bgcolor="#FFCCFF" width="400px" height="200px" direction="up" loop="4" scrollamount="6" scrolldelay="600" >
It Job Careers, The Best Site For IT Computer Course Learners And Job Seekers!
</marquee>

o/p>---
It Job Careers, The Best Site For IT Computer Course Learners And Job Seekers!

1 comment:

  1. HTML Attributes are property of the elements which may have values and these attribute values are always enclosed in quotes. It’s providing to the browser with some additional information about an elements how the elements should appear or behave. HTML elements can contain one or more attributes, attribute names and attribute values are case-insensitive and separated by an equals (=) sign.

    [HTML Attributes](http://www.willvick.com/HTML/HTMLAttribute.aspx)

    [HTML Attributes Examples](http://www.willvick.com/HTML/HTMLExampleAttribute.aspx)

    [Youtube - HTML Tutorial - Attributes](http://www.youtube.com/watch?v=ucOXvaCEZgg)

    ReplyDelete


Related Posts Plugin for WordPress, Blogger...