Tables – allows you to present text, images and other information
objects in table form.
Syntax:
<TABLE align=”center|left|right”
background=”URL”
bgcolor=”ColorName|#RRGGBB”
border=”integer pixel”
bordercolor=”ColorName|#RRGGBB”>
:
Table Elements
:
</TABLE>
Table Elements:
- Table Row
<TR align=”center|justify|left|right”
bgcolor=”colorName|#RRGGBB”
valign=”baseline|bottom|middle|top”>
:
Table Data
:
</TR>
- Table Data
<TD align=”center|justify|left|right”> …text…
Example:
<TABLE border=”1”>
<TR>
<TD>Mathematics
<TD>98.00
</TR>
<TR>
<TD>Computer Science
<TD>97.00
</TR>
<TR>
<TD>Physics
<TD>94.00
</TR>
</TABLE>
Marquee - use to animate text/images
Syntax:
<MARQUEE behavior=”alternate|scroll|slide”
direction=”down|up|left|right”
loop=”integer”>
:
Text/object
:
</MARQUEE>
Sample Code:
<HTML><TITLE>HTML Example 3</TITLE>
<BODY>
<TABLE border=”1”>
<TR>
<TD>Mathematics
<TD>98.00
</TR>
<TR>
<TD>Computer Science
<TD>97.00
</TR>
<TR>
<TD>Physics
<TD>94.00
</TR>
</TABLE>
<MARQUEE behavior="alternate" direction="left">
Marquee alternate left
</MARQUEE>
<MARQUEE behavior="scroll" direction="right">
Marquee scroll right
</MARQUEE>
<MARQUEE behavior="slide" direction="left">
Marquee slide left
</MARQUEE>
</BODY>
</HTML>
Sample Output:
No comments:
Post a Comment