marquee tag in html
marquee tag in html. जिसका ज्यादातर use text को scrolling effect देने के लिए होता हे। जिससे आपका webpage ज्यादा आकर्षित लगता हे। <marquee> tag के बहोत सारे attributes हे जिससे आप <marquee> tag को और भी ज्यादा attractive बना सकते हो। अगर किसी webpage को css के बगैर attractive दिखाना हे तब उसमे <marquee> tag का use करना ही होता हे।
use of <marquee> tag in webpage
<html>
<head>
<title> <marquee> tag </title>
</head>
<body>
<h1> <marquee> tag </h1>
<marquee> <marquee> tag </marquee>
</body>
<html>
output
<marquee> tag
<marquee> tag attributes
All Attributes in marquee tag | |
---|---|
No | Attributes |
1 | bgcolor |
2 | scrollamount |
3 | direction |
4 | height |
5 | width |
6 | hspace |
7 | vspace |
8 | behavior |
9 | loop |
10 | scrolldelay |
1) bgcolor attribute in <marquee> tag
bgcolor attribute का इस्तेमाल background-color के लिए होता हे।
<html>
<head>
<title> <marquee> tag </title>
</head>
<body>
<h1> <marquee> tag </h1>
<marquee bgcolor="yellow"> <marquee> tag </marquee>
</body>
<html>
output
<marquee> tag
2) scrollamount attribute in <marquee> tag
scrollamount attribute का इस्तेमाल <marquee> tag में लिखी गयी text effect की speed बढ़ाने के लिए होता हे। इसमें आप maximum value डालके text effect की speed को बहोत ज्यादा भी सकते हो।
<html>
<head>
<title> <marquee> tag </title>
</head>
<body>
<h1> <marquee> tag </h1>
<marquee scrollamount="20" bgcolor="yellow"> <marquee> tag </marquee>
</body>
<html>
output
<marquee> tag
3) direction attribute in <marquee> tag
direction attribute का इस्तेमाल text effect को किस direction से करवाना हे इस के लिए use होता हे।
direction attribute के 4 value हे। Right, Left, Top, Bottom
<html>
<head>
<title> <marquee> tag </title>
</head>
<body>
<h1> <marquee> tag </h1>
<marquee bgcolor="yellow" direction="left"> <marquee> tag </marquee>
</body>
<html>
output
<marquee> tag
4) height attribute and width in <marquee> tag
height attribute का इस्तेमाल <marquee> tag element की height देने के लिए use होता हे। इसकी value आप % , px, और rem भी दे सकते हो।
width attribute का इस्तेमाल <marquee> tag element की width देने के लिए use होता हे। इसकी value आप % , px, और rem भी दे सकते हो।
<html>
<head>
<title> <marquee> tag </title>
</head>
<body>
<h1> <marquee> tag </h1>
<marquee bgcolor="yellow" height="50px" width="70%"> <marquee> tag </marquee>
</body>
<html>
output
<marquee> tag
5) hspace attribute and vspace in <marquee> tag
hspace attribute का इस्तेमाल horizontal space देने के लिए होता हे। इसकी value आप % , px, और rem भी दे सकते हो।
vspace attribute का इस्तेमाल vertical space देने के लिए होता हे। इसकी value आप % , px, और rem भी दे सकते हो।
<html>
<head>
<title> <marquee> tag </title>
</head>
<body>
<h1> <marquee> tag </h1>
<marquee bgcolor="yellow" hspace="50px" vspace="50px" height="50px" width="70%"> <marquee> tag </marquee>
</body>
<html>
output
<marquee> tag
6) behavior attribute in <marquee> tag
behavior attribute का इस्तेमाल <marquee> tag में लिखी गयी text effect को manage करता हे। यदि behavior attribute की value alternate हे और text effect right side से आ रही हे तो border को छूने के बाद वह अपना direction change करके left side हो जाएगी।
behavior attribute values : alternate, scroll, slide
<html>
<head>
<title> <marquee> tag </title>
</head>
<body>
<h1> <marquee> tag </h1>
<marquee behavior="alternate" scrollamount="20" bgcolor="yellow"> <marquee> tag </marquee>
</body>
<html>
output
<marquee> tag
Al great deal for a web developer.