Fieldset Element
It is used to group related controls in a single box. Suppose you have to show information to user regarding his purchase and his information.
Than you will put his information like Username, Address, phone number etc at one single block and product information in other single block.
By doing this information will look more organized.
Attributes of FieldSet Element
It is used to group related controls in a single box. Suppose you have to show information to user regarding his purchase and his information.
Than you will put his information like Username, Address, phone number etc at one single block and product information in other single block.
By doing this information will look more organized.
Attributes of FieldSet Element
- disabled- disabled the textarea.
- id- refers to the name of textarea.
- form- refers to the id of the form
Legend Element
It is used to provide caption for the fieldset element.
example 1
<!Doctype Html>
<html>
<body>
<h1>Fieldset and Legend Element</h1>
<form>
<Fieldset>
<legend>
login window
</legend>
<label>
username<input type="text">
</label><br/>
<label>
password<input type="password">
</label><br/>
<label>
<input type="submit" value="click here" name="submit" />
</label>
</fieldset>
</form>
</body>
</html>
example 2: using disabled attribute
<!Doctype Html>
<html>
<body>
<h1>Fieldset and Legend Element</h1>
<form>
<Fieldset disabled>
<legend>
login window
</legend>
<label>
username<input type="text">
</label><br/>
<label>
password<input type="password">
</label><br/>
<label>
<input type="submit" value="click here" name="submit" />
</label>
</fieldset>
</form>
</body>
</html>
0 comments:
Post a Comment