Wednesday 1 December 2021

Write HTML code to scroll news from bottom to top on a webpage. बेब पेज पर इमेट एवं टेक्‍स्‍ट को स्‍क्रॉल कराने के लिए एचटीएमएल कोड लिखें।


 

Marquee is one of the important tags introduced in HTML to support such scrollable texts and images within a web page.

Marquee टैग का use करके टेक्स्ट और images को स्क्रॉल या move किया जा सकता है

The <marquee> tag in HTML is used to create scrolling text or image in a webpages. It scrolls either from horizontally left to right or right to left, or vertically top to bottom or bottom to top.

यह ऊपर से नीचे, नीचे से ऊपर, लेफ्ट से राइट, राइट से लेफ्ट स्क्रॉल करता है

The marquee element comes in pairs. It means means that the tag has opening and closing elements.

मार्की tag जोड़े में आता है। marquee tag मे दो टैग में खुलने और बंद होने वाले tag हैं

 syntax:-

<marquee>

   <--- contents --->

</marquee>


Example-

<html>

<head>

    <title>Example for HTML Marquee Tag</title>

</head>


<marquee width="40%" direction="up" height="30%">

    This is sample scrolling text.

</marquee>

</html>



No comments:

Post a Comment