• Skip to main content
  • Skip to primary sidebar
  • Skip to secondary sidebar
  • Skip to footer

Computer Notes

Library
    • Computer Fundamental
    • Computer Memory
    • DBMS Tutorial
    • Operating System
    • Computer Networking
    • C Programming
    • C++ Programming
    • Java Programming
    • C# Programming
    • SQL Tutorial
    • Management Tutorial
    • Computer Graphics
    • Compiler Design
    • Style Sheet
    • JavaScript Tutorial
    • Html Tutorial
    • Wordpress Tutorial
    • Python Tutorial
    • PHP Tutorial
    • JSP Tutorial
    • AngularJS Tutorial
    • Data Structures
    • E Commerce Tutorial
    • Visual Basic
    • Structs2 Tutorial
    • Digital Electronics
    • Internet Terms
    • Servlet Tutorial
    • Software Engineering
    • Interviews Questions
    • Basic Terms
    • Troubleshooting
Menu

Header Right

Home » Html » Tutorial » HTML fieldset tag
Next →
← Prev

HTML fieldset tag

By Dinesh Thakur

<FIELDSET>tag creates a box around a group of widgets and <LEGEND>tag provides a label to the field set. Both tags require closing tags.

syntax   
<fieldset> control1 control2.........controln </fieldset> 
<legend> group label text</legend>

The following code shows the use of both of these tags:

<html> 
<head><title> text fields</title></head> 
<bodybgcolor="pink"> 
<p align="center"><b>admission form</b> 
<form> 
<fields> <legend><h2>detail</h2></legend> 
<p> 
<inputtype="text"name="name"value="enter your name:"size="25"maxlength="30"> name<br><br> <input type="password"name="passwd"size="25"maxlength="30"><br><br> <input type="text"name="address"size="25"maxlength="30"> address<br><br> <input type="radio"name="sex"value="male"checked>male<br> <input type="radio"name="sex"value="female">female<br> 
<select name="country"> 
<option value="india">india 
<optionvalue="america"> america 
<optionvalue="australia"> australia 
<optionvalue="new zealand"> new zealand 
<optionvalue="china"> china 
</select><b>country</b> 
<textarea name="comments"rows=2cols=20wrap="virtual:"> place your comments here: </textarea> <b> comments </b> <fieldset> <input type="file"name="attachements"size="30"accept="image/jpg"> <b> attachements</b> <palign=center> 
<input type="image"src="c:\windows\hlpglobe.gif"alt="submit"width=55height=40> <input type="reset"value="reset"> 
</form> 
</body> 
</html>

In the above window all the <INPUT> field types have been grouped and labeled as DETAILS

 Disabled Attribute

This attribute disables a form element. The element contents are not only unalterable, but also unusable. It can be applied to any INPUT tag, as well as to the SELECT, OPTION, TEXTAREA tags. So to disable the File field. The code is written as below:

<html> 
<head><title> text fields</title></head> 
<bodybgcolor="pink"> 
<palign="center"><b>admission form</b> 
<form> 
<fields> <legend><h2>detail</h2></legend> <p> 
<inputtype="text"name="name"value="enter your name:"size="25"maxlength="30"> name<br><br> <inputtype="password"name="passwd"size="25"maxlength="30"><br><br> <inputtype="text"name="address"size="25"maxlength="30"> address<br><br> <inputtype="radio"name="sex"value="male"checked>male<br> <inputtype="radio"name="sex"value="female">female<br> 
<selectname="country"> 
<optionvalue="india">india 
<optionvalue="america"> america 
<optionvalue="australia"> australia 
<optionvalue="new zealand"> new zealand 
<optionvalue="china"> china 
</select><b>country</b> 
<textareaname="comments"rows=2cols=20wrap="virtual:"> place your comments here: </textarea> <b> comments </b> 
<fieldset> 
<inputtype="file"name="attachements"size="30"accept="image/jpg"disabled> <b> attachements</b> <palign=center> 
<inputtype="image"src="c:\windows\hlpglobe.gif"alt="submit"width=55height=40> <inputtype="reset"value="reset"> 
</form> 
</body> 
</html> 

While submitting the form, the name/value pairs of disabled form elements are not included.

You’ll also like:

  1. HTML Anchor Tag
  2. HTML frame tag
  3. HTML table tag
  4. HTML button tag
  5. HTML span tag
Next →
← Prev
Like/Subscribe us for latest updates     

About Dinesh Thakur
Dinesh ThakurDinesh Thakur holds an B.C.A, MCDBA, MCSD certifications. Dinesh authors the hugely popular Computer Notes blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps.

Dinesh Thakur is a Freelance Writer who helps different clients from all over the globe. Dinesh has written over 500+ blogs, 30+ eBooks, and 10000+ Posts for all types of clients.


For any type of query or something that you think is missing, please feel free to Contact us.


Primary Sidebar

HTML Tutorials

HTML Tutorials

  • HTML - Home
  • HTML - History
  • HTML - Lists
  • HTML - Unordered List
  • HTML - Ordered Lists
  • HTML - Frame Tag
  • HTML - Input Type
  • HTML - Input Type="File"
  • HTML - Input Type="Hidden"
  • HTML - Form Tag
  • HTML - Img Tag
  • HTML - Anchor Tag
  • HTML - Table Tag
  • HTML - Span Tag
  • HTML - Button Tag
  • HTML - Doctype
  • HTML - Fieldset Tag
  • HTML - Links Tag
  • HTML - Drop Down Menu
  • HTML - Accesskey
  • HTML - Cgi
  • HTML - Post Method
  • HTML - Background Image
  • HTML - Text Area
  • HTML - TabIndex
  • HTML - Align Center
  • HTML - Address Tag
  • HTML - Thumbnails
  • HTML - Marquee Tag
  • HTML - Line Break
  • HTML - Blockquote
  • HTML - HR Tag
  • HTML - Image Center
  • HTML - Center Text
  • HTML - Link CSS
  • HTML - Html Vs Html5

Other Links

  • HTML - PDF Version

Footer

Basic Course

  • Computer Fundamental
  • Computer Networking
  • Operating System
  • Database System
  • Computer Graphics
  • Management System
  • Software Engineering
  • Digital Electronics
  • Electronic Commerce
  • Compiler Design
  • Troubleshooting

Programming

  • Java Programming
  • Structured Query (SQL)
  • C Programming
  • C++ Programming
  • Visual Basic
  • Data Structures
  • Struts 2
  • Java Servlet
  • C# Programming
  • Basic Terms
  • Interviews

World Wide Web

  • Internet
  • Java Script
  • HTML Language
  • Cascading Style Sheet
  • Java Server Pages
  • Wordpress
  • PHP
  • Python Tutorial
  • AngularJS
  • Troubleshooting

 About Us |  Contact Us |  FAQ

Dinesh Thakur is a Technology Columinist and founder of Computer Notes.

Copyright © 2023. All Rights Reserved.