Forum : Tags
Brief description  about Online courses   join in Online courses
View yasmin  banu 's Profile

Tags

Can anybody help me about these tags with examples?
Param
Frameset
fieldset
caption
Asked by yasmin banu | Aug 31, 2010 |  Reply now
Replies (1)
View teacher siliconindia 's Profile
Hi

Parameters

Parameters are how you give details about how an applet should run. You use <PARAM ...> to communicate parameters. For example, if you want to tell MyApplet what text to display, you use the TEXT parameter.

<APPLET CODE="MyApplet.class" HEIGHT=50 WIDTH=100>
<PARAM NAME=TEXT VALUE="Hey Dude">
</APPLET>


The <PARAM> tag in the above example simply says TEXT="Hey Dude". This method of assigning a name with one attribute and a value with another is a way of bridging the gap between the worlds of HTML and Java.
Here's what each piece means:
<PARAM
This is a parameter to pass to MyApplet.
NAME=TEXT
The name of the parameter to pass is "TEXT"
VALUE="Hey Dude"
The value of the "TEXT" parameter is "Hey Dude".




FRAMESET

<FRAMESET ...> defines the general layout of a web page that uses frames. <FRAMESET ...> is used in conjunction with <FRAME ...> and <NOFRAMES>.
<FRAMESET ...> creates a "table of documents" in which each rectangle (called a "frame") in the table holds a separate document. In its simplest use, <FRAMESET ...> states how many columns and/or rows will be in the "table". You must use either the COLS or the ROWS attributes or both. For example, this code creates a set of frames that is two columns wide and two rows deep:
<HTML>
<HEAD>
<TITLE>A Basic Example of Frames</TITLE>
</HEAD>

<FRAMESET ROWS="75%, *" COLS="*, 40%">
<FRAME SRC="framea.html">
<FRAME SRC="frameb.html">
<FRAME SRC="framec.html">
<FRAME SRC="framed.html">
</FRAMESET>

</HTML>


<FRAMESET ...> itself only define how many rows and columns of frames there will be. <FRAME ...> defines what files will actual go into those frames.
<FRAMESET ...> can be nested within another <FRAMESET ...> to create a "table within a table". By doing this you can create frames that are not strict grids like in the example above. This set of nested framesets creates the popular "title and sidebar" layout.

<HTML>
<HEAD>
<TITLE>Great Recipes</TITLE>
</HEAD>

<FRAMESET ROWS="15%,*">
<FRAME SRC="recipetitlebar.html" NAME=TITLE SCROLLING=NO>

<FRAMESET COLS="20%,*">
<FRAME SRC="recipesidebar.html" NAME=SIDEBAR>
<FRAME SRC="recipes.html" NAME=RECIPES>
</FRAMESET>
</FRAMESET>

</HTML>


The first <FRAMESET ...> creates a "table" of two rows and only one column (because there is no COLS attribute). The first row in the frameset is filled in by the first <FRAME ...>. The row in the frameset is filled in not by a frame but by another <FRAMESET ...>. This inner frameset has two columns, which are filled in by two <FRAMESET ...>


<FIELDSET>
<FIELDSET> defines a group of form elements as being logically related. The browser draws a box around the set of fields to indicate that they are related.For example, a form might contain a few fields about name and email, some fields asking for opinions, and a field for "other comments". <FIELDSET> could be used to group those fields like this:
<FIELDSET>
name: <INPUT NAME="realname"><BR>
email: <INPUT NAME="email">
</FIELDSET><P>

<FIELDSET>
favorite color: <INPUT NAME="favecolor"><BR>
<INPUT TYPE=CHECKBOX NAME="onions"> like green onions<BR>
<INPUT TYPE=CHECKBOX NAME="cookies"> like cookies<BR>
<INPUT TYPE=CHECKBOX NAME="kimchee"> like kim chee<BR>
</FIELDSET><P>

<FIELDSET>
other comments:<BR>
<TEXTAREA NAME="comments" ROWS=5 COLS=25></TEXTAREA>
</FIELDSET>



CAPTION

<CAPTION ...> sets a caption for the table. <CAPTION ...> goes just after the <TABLE ...> tag. It does not go inside a <TR ...>, <TD ...> or <TH ...> element. There should be only one <CAPTION ...> per table. For example, this code creates a table with a caption of "Favorite Foods":


<TABLE BORDER=2 CELLPADDING=3>
<CAPTION>Favorite Foods</CAPTION>

<TR> <TH>Person</TH> <TH>Food</TH> </TR>
<TR> <TD>Ping</TD> <TD>French Toast</TD> </TR>
<TR> <TD>Andy</TD> <TD>Squirrel</TD> </TR>
</TABLE>
<CAPTION ...> is rarely used even though virtually every browser in use these days supports it.


Regards
Sep 1, 2010