SELECT: Tells the computer another form is going here.NAME: This is the heading of the form item.Size: denotes the size of the boxOption selected: denotes which option will appear in the boxOption: denotes another choice that will be visible when we click on item.< SELECT NAME = “AGE” SIZE = “4”><OPTION VALUE = “child “ > Under 12<OPTON VALUE = “teen”> 13-19<OPTION VALUE = “adult” SELECTED> 20 – 64<OPTION VALUE = “Senior”> 65 or order</SELECT><LABEL> Tag<LABEL> tag provides a label for the form control. Theforattribute connectsthe label with the input control.<LABELfor=REGNO>Reg.No.</LABEL><INPUTTYPE=”TEXT”ID=”REGNO”>Eg. :- To create the following Application form,93Page | 93Example 4.2.6HTML document that demonstrate Form TagContactus.html<html><head><title> contact us </title></head><body text = maroon><font size=5> <b> contact form</b></font><br><br><font size=4> thank you for your interest in contacting the wild lifeconservation foundation.<br> please use the form below to contact usatanytimeorseeourcontactdetailsbelowtheform.<br><br>required fields are marked with a star:* </font><br><form><p align="left"><label for ="fname"> *first name </label> <input type="text" name="fname" value="your first name" id="fname"size="20"><br><br><labelfor="sname">*surname</label> <inputtype="text"name="sname" id="sname" size="20"><br><br>email id <inputtype="text" size="30"><br><br>sex <label for ="male"> male: </label><input type="radio" name="sex" value="male" id="male"> <label for ="female"> female: </label><input type="radio" name="sex" value="female" id="female"><br><br><labelfor="query">*comment/query:</label><br> <textareaname="query"cols=60rows=5id="query">query
CSIT4.2.2.3FRMAESFRAMESET>&<FRAME> TagWe can create frames to divide a web browser window into sectionsthat will display a different web page.A collection of frames in the browserwindow is known as a frameset.To use frames on a page we use <frameset> tag instead of <body>tag. The <frameset> tag defines how to divide the window into frames. Eachframe is indicated by <frame> tag and it defines which HTML documentshall open into the frame.Attributes of <FRAMESET> TagAttributesDescriptionCOLSSpecifies number of columns contained in the frameset and the size of each column.Width of the frame can be specified in absolute values as pixel or in % of totalwindow width. The * can be used for variable width.Eg: <FRAMESET COLS =“50%,150,*”>ROWSIt is used to specify the rows in the frameset. For example to create two horizontalframes, use<FRAMESET ROWS="10%, 90% ">BORDERCOLORAssigns a colour to the border. Colour name or code can be given.BORDERThis attribute specifies the thickness of the border of each frame in pixels. A value ofzero means no border.For example <FRAMESET BORDER ="5">Attributes of <FRAME> TagAttributesDescriptionSRCSpecifies the URL of the document to be loaded in the frame.
Upload your study docs or become a
Course Hero member to access this document
Upload your study docs or become a
Course Hero member to access this document
End of preview. Want to read all 139 pages?
Upload your study docs or become a
Course Hero member to access this document
Term
Spring
Professor
N/A
Tags