 <form>: Defines a form that is used to read data from
user.
Attributes:
 name=form_name( give a name to the control which is
sent to the server to be recognized and get the value.)
 action=script_page(Backend script ready to process
your passed data.)
 method=get|post(used to upload data)
Get:
 The default method when submitting form data is GET.
 However, when GET is used, the submitted form data will
be visible in the page address field.
Note:
 Appends form-data into the URL in name/value pairs
 The length of a URL is limited (about 3000 characters)
 Never use GET to send sensitive data! (will be visible in the
URL)
 Useful for form submissions where a user wants to bookmark the
result
 GET is better for non-secure data, like query strings in Google
Post:
 Always use POST if the form data contains sensitive or
personal information. The POST method does not
display the submitted form data in the page address
field.
Note:
 POST has no size limitations, and can be used to send
large amounts of data.
 Form submissions with POST cannot be bookmarked.
 Input Element <input>
 Select Element <select>
 Textarea Element <textarea>
<input> element can be displayed in several ways,
depending on the type attribute.
Attributes:
 type=text | password | email | number | date | file | checkbox
| radio | button | submit | reset | image
 name
 value
 readonly
 disabled
 size
 maxlength
 placeholder
 required
 checked(when type is checkbox or
radio)
 min and max (when type=number)
 src, width and height (when type is image)
 <select> defines a drop-down list.
Attributes:
 name
 size
 multiple
 <option> defines an option that can be selected.
Attributes:
 value
 selected
 <textarea> defines a multi-line input field.
Attributes:
 name
 rows
 cols
 A frame can be divided a web document into
multiple web documents.
 The <frameset> element holds one or
more <frame> elements. Each <frame> element
can hold a separate document.
Attributes of <frameset>:
 cols=pixels | % | *
 rows=pixels | % | *
 name=string(Specifies the name of a frame)
 src=URL(Specifies the URL of the document to show in a
frame)
 frameborder=0|1(Specifies whether or not to display a
border around a frame)
 marginheight=pixel(Specifies the top and bottom margins
of a frame)
 marginwidth=pixel(Specifies the left and right margins of a
frame)
 noresize (Specifies that a frame is not resizable)
 scrolling=yes|no|auto(Specifies whether or not to display
scrollbars in a frame)
 The <iframe> tag specifies an inline frame.
 An inline frame is used to embed another
document within the current HTML document.
 align=left|right|top|middle|bottom (Specifies the
alignment of an <iframe> according to
surrounding elements)
 height=pixels(Specifies the height of an
<iframe>)
 width=pixels(Specifies the width of an <iframe>)

Unit 1part-2 forms & frames

  • 2.
     <form>: Definesa form that is used to read data from user. Attributes:  name=form_name( give a name to the control which is sent to the server to be recognized and get the value.)  action=script_page(Backend script ready to process your passed data.)  method=get|post(used to upload data)
  • 3.
    Get:  The defaultmethod when submitting form data is GET.  However, when GET is used, the submitted form data will be visible in the page address field. Note:  Appends form-data into the URL in name/value pairs  The length of a URL is limited (about 3000 characters)  Never use GET to send sensitive data! (will be visible in the URL)  Useful for form submissions where a user wants to bookmark the result  GET is better for non-secure data, like query strings in Google
  • 4.
    Post:  Always usePOST if the form data contains sensitive or personal information. The POST method does not display the submitted form data in the page address field. Note:  POST has no size limitations, and can be used to send large amounts of data.  Form submissions with POST cannot be bookmarked.
  • 5.
     Input Element<input>  Select Element <select>  Textarea Element <textarea>
  • 6.
    <input> element canbe displayed in several ways, depending on the type attribute. Attributes:  type=text | password | email | number | date | file | checkbox | radio | button | submit | reset | image  name  value  readonly  disabled  size  maxlength  placeholder  required  checked(when type is checkbox or radio)  min and max (when type=number)  src, width and height (when type is image)
  • 7.
     <select> definesa drop-down list. Attributes:  name  size  multiple  <option> defines an option that can be selected. Attributes:  value  selected
  • 8.
     <textarea> definesa multi-line input field. Attributes:  name  rows  cols
  • 9.
     A framecan be divided a web document into multiple web documents.  The <frameset> element holds one or more <frame> elements. Each <frame> element can hold a separate document. Attributes of <frameset>:  cols=pixels | % | *  rows=pixels | % | *
  • 10.
     name=string(Specifies thename of a frame)  src=URL(Specifies the URL of the document to show in a frame)  frameborder=0|1(Specifies whether or not to display a border around a frame)  marginheight=pixel(Specifies the top and bottom margins of a frame)  marginwidth=pixel(Specifies the left and right margins of a frame)  noresize (Specifies that a frame is not resizable)  scrolling=yes|no|auto(Specifies whether or not to display scrollbars in a frame)
  • 11.
     The <iframe>tag specifies an inline frame.  An inline frame is used to embed another document within the current HTML document.
  • 12.
     align=left|right|top|middle|bottom (Specifiesthe alignment of an <iframe> according to surrounding elements)  height=pixels(Specifies the height of an <iframe>)  width=pixels(Specifies the width of an <iframe>)