English
Tamil Nadu Board of Secondary EducationHSC Science Class 11

How will you scroll the text in HTML? - Computer Applications

Advertisements
Advertisements

Question

How will you scroll the text in HTML?

Long Answer

Solution

In HTML, a piece of text or image can be moved horizontally or vertically by using <marquee> tag. This feature makes a web page as more attractive.

  1. General format:
    <marquee> Text or image to be scroll </marquee>
    Attributes of <marquee>
  2. Height and Width:
    These attributes are used to set height and width of the marquee. The values should be either in pixels or in percentage of browser window.
  3. Direction:
    This is used to specify the direction of the movement of text or image. The text or image will move towards right to left by default. So, the default direction is left. The Possible values are ‘up’, ‘down’, ‘left’ or ‘right’.
  4. Behaviour:
    This attribute is used to specify the type of scrolling. The values are ‘scroll’, ‘slide’ and ‘alternate’.
  5. Scrolldelay:
    This attribute is used to define the time delay between each jump. The time unit should be in seconds.
  6. Scrollamount:
    This is used to define the speed of the scroll.
  7. Loop:
    This is for defining how many times the marquee element should repeat on the screen. The default value is ‘infinite’, which me the marquee element scrolls endlessly.
  8. Bgcolor:
    This is used to specify the background color to the marquee elements.
  9. Hspace and Vspace:
    This is for defining the horizontal and vertical space around the marquee. The value can be in pixels or percentage.
shaalaa.com
Scrolling Text Using <Marquee>
  Is there an error in this question or solution?
Chapter 12: HTML - Adding multimedia elements and Forms - Evaluation [Page 284]

APPEARS IN

Samacheer Kalvi Computer Applications [English] Class 11 TN Board
Chapter 12 HTML - Adding multimedia elements and Forms
Evaluation | Q 2. | Page 284
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×