vivarem logo
/ Vivarem / Computers and IT / IT Education / online / tutorial / Html / chap4 /
There are 0 sub sections

You can add Your Link here with New Link
Links and Frames

Anchor Tag
To link to other documents or internal document links
syntax: <a href="your url"></a>
this tag is responsible for interconnection of documents in the internet and hence the most important of all the tags. It has an important attribute that requires special mention, "href" , it is here we code the url of the page to be linked. eg if you want to connect to vivarem.com you will code
<a href="http://www.vivarem.com"> Vivarem- information that works home</a> 'Vivarem- information that works home' statement will be visible to people who visit the web site for clicking. The color of the text changes according to link,vlink, alink attributes you have specified in the body tags To add a clickable image instead of text do the following
<a href="http://www.vivarem.com"><img src="http://www.vivarem.com/img/vivarem.jpg"></a> here replace any attribute value with url of your requirement . attribute target is usefull when you want to change the current window <a href="" target="_top|_blank|_parent|self"></a> target attribute can be any one of _blank, _parent, _self,_top. _top - the target URL will open in the full body of the window, _blank - the target URL will open in a new window, _parent - the target URL will open in the parent frameset. You amy also linke to a location in a page by page.html#name where name is specified in the location using <a name="name"></name>
_self - the target URL will open in the same frame as it was clicked
Learn by doing - Anchor

Frames
Used Layout of documents in window. It is used only on situation were you have to display multiple html documents on a window.For horizontally displaying two documents use the following format
syntax:<frameset cols="15%,85%"> <frame src="navigator.htm" name="navi"> <frame src="index.htm" name="content"> </frameset>

Here to open a link in frame on the second frame add the following anchor to the navigator <a href ="a.htm" target ="content">open in content frame</a> by default all links ill open documents will be openend in thecurrent frame itself. To make vertical frames use <frameset rows="15%,85%"> instead of above. you can also mix both horizontal and vertical frames you may adopt the folowing or change it according to your preference.<frameset cols="15%,85%"> <frame src="navigator.htm" name="navi"> <frameset rows="15%,85%"> <frame src="index.htm" name="contentindex"> <frame src="index.htm" name="content"> </frameset> </frameset> This is called nesting of frames.

Common frame attributes
frameborder, allowed values 0/1 Specifies whether or not to display border around the frame
marginheight, Defines the top and bottom margins in the frame in pixels
marginwidth, Defines the left and right margins in the frame
name, frame_name used to identify the frame to use in scripts
noresize specified to make the frame non resizable
scrolling allowed values yes/no/auto Determines scrollbar action
src default web page to be displayed by the Frame


iframes
Internal frames, They are used to display pages within pages with out frames.
Syntax <iframe src=""> all the frame attributes are applicable here also accept two additional ones width and height which are spcified accoring to your requirements
Learn by doing - frame

vivarem learn by doing more advanced html tutorial with online practice


You can Add a Classified here with New Classified