Thursday 5 July 2018

MOVING AHEAD WITH HTML

MOVING AHEAD WITH HTML


 We have learnt about how to create HTML document in NOTEPAD and view it in any web browser. We have also learnt about some tags and attributes of HTML. Let us learn some more HTML codes in this chapter.

MARQUEE Element

The MARQUEE element is used to insert scrolling text anywhere in a web page. The code given below will display the text "INTRODUCTION TO HTML" to scroll from right to left in the Web page.

<BODY> <MARQUEE> INTRODUCTION TO HTML
</MARQUEE> </BODY> 

Attributes of the MARQUEE element are as follows.

BG COLOR Attribute

This attribute is used for specifying the background color of the scrolling text.


<BODY> <MARQUEE BGCOLOR = YELLOW> INTRODUCTION TO HTML
</MARQUEE> </BODY> 

The code given above will display YELLOW as the background color for the scrolling text.

DIRECTION Attribute

This attribute is used for specifying the DIRECTION of the scrolling text. The direction can be specified as either LEFT or RIGHT. By default the text scrolls from right to left.

<BODY> <MARQUEE DIRECTION = LEFT> INTRODUCTION TO HTML
</MARQUEE> </BODY> 


The code given above will display the text to scroll from left to right.

BEHAVIOR Attribute

The BEHAVIOR Attribute is used for specifying the movement of the scrolling text. The values for the BEHAVIOR attribute can be specified as SCROLL, SLIDE or ALTERNATE.

0 comments:

Post a Comment

Good Morning Beautiful

Do you know????

Do you know????
/