http://www.bhmadhukar.cjb.net


[ GOD AND GODDESS SLOKA'S & POOJA'S ] [ FLASH MOVIES ] [ HOME ] [ CONTACT ME ]


HTML

HTML Tutorial - [ Beginners, Intermediate & Advanced Users]

Explanation on Anchor tag, Sound and how to embed objects in a document


» Know about Anchor Tag - [View Content] - beginner
» How to insert Sound in a document - [View Content]
» How to insert Embed Object in a HTML document - [View Content] - beginner

Anchor Tag

Anchor tag represents with <a>. It opens with <a> and closes with</a>. Generally, we can create hyperlink with this tag by using HREF attribute for external pages or files. With in a document we can use NAME tag.

for example: <a href="http://www.xyz.com/">Click Here to visit xyz Site</a>

Few attributes that Anchor tag supports:

Attribute Name Description
ACCESSKEY It assigns a key sequence to the element.
Ex:- <a href="link.htm" ACCESSKEY="L">Link To Us</a>
CHARSET It specifies character encoding of the data designated by the link. Default value for this attribute for all westren languages is "ISO-8859-1". See RFC2045 for more details.
Ex:-<a href="link.htm" CHARSET="ISO-8859-1">Click Here</a>
COORDS It indicates the co-ordinates that define a clickable area.
Ex:- <a SHAPE="RECT" COORS="10,5,30,25" href="help.htm">Help</a>
HREF It specifies both relative and absolute locatio of a specified file.
<a href="help.htm">Help</a>
ID It assigns a Unique ID selector to an instance of the anchor tag.
Ex:- <a href="help.htm" ID="1">Help</a>
NAME It marks a location within a current document with a name.
Ex:-
<a href="#gobottom">Show Content</a>
<p> --- write some text here --- </p>
<a NAME="gobottom">View Top</a>
CLASS We can apply styles class using CLASS attribute
<a href="help.htm" CLASS="ShowDECORATION">Help</a>
SHAPE It indicates the type of clickable shape. This attribute supports three types, they are RECT, CIRCLE, POLY.
<a SHAPE="RECT" COORS="10,5,30,25" href="help.htm">Help</a>
STYLE We can set style sheet attributes to the content using STYLE attribute.
Ex:-
<a href="help.htm" STYLE="background: green">Help</a>
Other attribute that Anchor tag supports are REL, REV, TABINDEX, TARGET and TITLE. REL & REV specifies the relationship hyperlinks and reverse relationship hyperlinks. TARGET specifies the name of the frame into which the linked document has to be loaded.


                                                                                                                                                                            Top

How to insert Sound in a HTML document

To embed a background sound file in a document, use BGSOUND tag.

Syntax:-<BGSOUND SRC="URL">

Ex:-<BGSOUND SRC="test.wav">

Attribute Description
SRC It indicates relative and absolute location of the sound file
Ex:- <BGSOUND SRC="test.wav">
LOOP It specifies how many times that the sound file to be repeated
Ex:- <BGSOUND SRC="test.wav" LOOP="5">
So, it repeats 5 times.
Along above attributes, BGSOUND also supports BIG, ID, STYLE, TITLE attributes

Top

How to insert EMBED object in a document

Embed objects are generally nothing but, MIDI and Digital Vedio files. To insert such files, we can use EMBED tag. But, this is not that much preferable than OBJECT tag. Still, it have usage. Let us see few attributes.

Attribute Description
ALIGN It aligns the Embed object to the LEFT, RIGHT, CENTER, ABSMIDDLE, BASELINE, ABSBOTTOM, BOTTOM, TOP and TEXTTOP
Ex:- <EMBED SRC="test.midi" ALIGN="RIGHT">
HEIGHT & WIDTH It specifies both height and width of the specifed object.
Ex:- <EMBED SRC="test.midi" WIDTH="100" HEIGHT="100">
NAME It gives the object a name by which other objects can refer to it.
Ex:- <EMBED SRC="test.midi" NAME="MOVIECLIP">
SRC It indicates the absolute and relative path of the file containing the object you want to embed.
Ex:- <EMBED SRC="test.midi">
Other attributes are ACCESSKEY, HIDDEN, OPTIONAL PARAM, PALETTE, TITLE & UNITS.


                                                                                                                                                                           Top

"Fundamentals are the Route to the Destination" - BHMK

Go Home


Hosted by www.Geocities.ws

1