<marquee> ਟੈਗ HTML ਦਾ ਇੱਕ ਮਹੱਤਵਪੂਰਨ ਟੈਗ ਹੈ। ਵੈੱਬ ਪੇਜ਼ ਵਿੱਚ ਇਸ ਦੀ ਵਰਤੋਂ ਟੈਕਸਟ ਅਤੇ ਤਸਵੀਰਾਂ ਆਦਿ ਨੂੰ ਸਕਰੋਲ (scroll) ਕਰਨ ਲਈ ਕੀਤੀ ਜਾਂਦੀ ਹੈ। ਇਸਦੀ ਮਦਦ ਨਾਲ ਕੰਟੈਂਟਸ ਨੂੰ ਲੇਟਵੇਂ (horizontal) ਰੂਪ ਵਿੱਚ (ਖੱਬੇ ਤੋਂ ਸੱਜੇ ਜਾਂ ਸੱਜੇ ਤੋਂ ਖੱਬੇ) (vertically) ਰੂਪ ਵਿੱਚ (ਉੱਪਰ ਤੋਂ ਹੇਠਾਂ ਜਾਂ ਹੇਠਾਂ ਤੋਂ ਉੱਪਰ) ਸਕਰੋਲ ਕੀਤਾ ਜਾ ਸਕਦਾ ਹੈ। <marquee> ਟੈਗ ਇੱਕ ਕੰਟੇਨਰ ਟੈਗ ਹੈ। ਇਹ ਟੈਗ HTML 5 ਵਿੱਚ deprecated ਕੀਤਾ ਗਿਆ ਹੈ। <marquee> ਟੈਗ ਨਾਲ ਵਰਤੇ ਜਾਣ ਵਾਲੇ ਕੁੱਝ ਮੁੱਖ ਐਟਰੀਬਿਊਟਸ ਹੇਠਾਂ ਦਿਤੇ ਗਏ ਹਨ।
Behavior: ਇਹ ਐਟਰੀਬਿਊਟਸ ਸਕਰੋਲਿੰਗ ਦੀ ਕਿਸਮ (scroling type)ਨੂੰ ਪਰਿਭਾਸ਼ਤ ਕਰਨ ਲੲਈ ਵਰਤਿਆ ਜਾਦਾ ਹੈ| scrol, slide, Alternate ਇਸ ਐਟਰੀਬਿਊਟ ਲਈ ਵਰਤੇ ਜਾਣ ਵਾਲੇ ਕੁਝ ਮੁੱਖ ਮੁੱਲ ਹਨ |
ᴅɪʀᴇᴄᴛɪᴏɴ: ਇਸ ਐਟਰੀਬਿਊਟ ਦੀ ਵਰਤੋਂ ਸਕਰੋਲਿੰਗ ਕੰਟੈਟ ਦੀ ਦਿਸ਼ਾ ਨਿਰਧਾਰਤ ਕਰਨ ਲਈ ਵਰਤਿਆ ਜਾਦਾ ਹੈ |ਇਸ ਐਟਰੀਬਿਊਟ ਲਈ ᴜᴩ(ਉਪਰ)ᴅᴏᴡɴ (ਹੇਠਾ) ʟᴇꜰᴛ ਜਾ ʀɪɢʜᴛ ਮੁੱਲ ਦੀ ਵਰਤੋ ਸਕਰੋਲਿੰਗ ਕੰਟੈਂਟ ਦਿਸ਼ਾ ਨਿਰਧਾਰਤ ਕਰਨ ਲਈ ਕੀਤੀ ਜਾਂ ਸਕਦੀ ਹੈ|
ʜᴇɪɢʜᴛ: ਇਹ ਐਟਰੀਬਿਊਟ ਸਕਰੋਲਿੰਗ ਟੈਕਸਟ ਲਈ ਉਚਾਈ ਪਰਿਭਾਸ਼ਤ ਕਰਨ ਲਈ ਵਰਤਿਆ ਜਾਦਾ ਹੈ| ਅਸੀ ਇਸ ਐਟਰੀਬਿਊਟ ਦਾ ਮੁੱਲ ਪਿਕਸਲ ਜਾ ਪ੍ਤੀਸ਼ਤ ਵਿੱਚ ਨਿਰਧਾਰਤ ਕਰ ਸਕਦੇ ਹਾਂ|
ʟᴏᴏᴩ: ਇਹ ਐਟਰੀਬਿਊਟ ਇਹ ਨਿਰਧਾਰਿਤ ਕਰਨ ਲਈ ਵਰਤਿਆ ਜਾਦਾ ਹੈ, ਕਿ ਕੰਟੈਟ ਨੂੰ ਕਿੰਨੀ ਵਾਰ ਸਕਰੋਲ ਕੀਤਾ ਜਾਵੇ| ਜੇਕਰ ਅਸੀ ਇਸ ਐਟਰੀਬਿਊਟ ਨੂੰ ਪਰਿਭਾਸ਼ਤ ਨਹੀ ਕਰਦੇ, ਤਾਂ ਕੰਟੈਂਟ ਲਗਾਤਾਰ ਹਮੇਸ਼ਾ ਲਈ ਸਕਰੋਲ ਹੁੰਦਾ ਰਹੇਗਾ|
Note: This attribute is depreciated from HTML 5.
ꜱᴄʀᴏʟʟᴀᴍᴏᴜɴᴛ : ਇਹ ਐਟਰੀਬਿਊਟ ਇਹ ਪਰਿਭਾਸ਼ਿਤ ਕਰਦਾ ਹੈ ਕਿ ਹਰੇਕ ਅੰਤਰਾਲ ਬਾਅਦ ਕੰਟੈਂਟ ਕਿੰਨਾ ਸਕਰੋਲ ਹੋਵੇ | ਇਸ ਐਟਰੀਬਿਊਟ ਦਾ ਮੁੱਲ ਪਿਕਸਲ ਵਿਚ ਪਰਿਭਾਸ਼ਿਤ ਕੀਤਾ ਜਾਦਾ ਹੈ,ਇਸਦਾ ਡਿਫਾਲਟ ਮੁੱਲ 6 ਪਿਕਸਲ ਹੁੰਦਾ ਹੈ|
ᴡɪᴅᴛʜ : ਇਹ ਐਟਰੀਬਿਊਟ ਸਕਰੋਲੇਬਲ ਟੈਕਸਟ ਲਈ ᴡɪᴅᴛʜ ਨੂੰ ਪਰਿਭਾਸ਼ਿਤ ਕਰਨ ਲਈ ਵਰਤਿਆ ਜਾਦਾ ਹੈ | ਅਸੀ ਇਸ ਐਟਰੀਬਿਊਟ ਦਾ ਮੁੱਲ ਪਿਕਸਲ ਜਾ ਪ੍ਤੀਸ਼ਤ ਵਿੱਚ ਨਿਰਧਾਰਤ ਕਰ ਸਕਦੇ ਹਾਂ|
Attribute | Description |
---|---|
width | provides the width or breadth of a marquee. For example width="10" or width="20%" |
height | provides the height or length of a marquee. For example height="20" or height="30%" |
direction | provides the direction or way in which your marquee will allow you to scroll. The value of this attribute can be: left, right, up or down |
scrolldelay | provides a feature whose value will be used for delaying among each jump. |
scrollamount | provides value for speeding the marquee feature |
behavior | provides the scrolling type in a marquee. That scrolling can be like sliding, scrolling or alternate |
loop | provides how many times the marquee will loop |
bgcolor | provides a background color where the value will be either the name of the color or the hexadecimal color-code. |
vspace | provides a vertical space and its value can be like: vspace="20" or vspace="30%" |
hspace | provides a horizontal space and its value can be like: hspace="20" or hspace="30%" |
Comments
Post a Comment