HTML


Working with Elements Outside the Form

Posted on September 22nd, by Learning in HTML, HTML Elements In Context. No Comments
Working with Elements Outside the Form

In HTML4, the input, button, and other form-related elements had to be contained within the form element. In HTML5, that restriction has been removed, and you can associate elements with forms anywhere in the document.



Using the button Element

Posted on September 22nd, by Learning in HTML, HTML Elements In Context. No Comments
Using the button Element

The button element is more flexible than it might first appear. There are three ways you can use button. Check out all properties about it!



Disabling Groups of Inputs Using the fieldset Element

Posted on September 22nd, by Learning in HTML, HTML Elements In Context. No Comments
Disabling Groups of Inputs Using the fieldset Element

You can disable multiple input elements in a single step by applying the disabled attribute to the fieldset element. Check out how to do it!



Adding a Descriptive Label to a fieldset Element

Posted on September 22nd, by Learning in HTML, HTML Elements In Context. No Comments
Adding a Descriptive Label to a fieldset Element

You grouped your input elements together, but you still lack context for the user. You can remedy this by adding a legend element to each of your fieldset elements.



Grouping Form Elements Together

Posted on September 22nd, by Learning in HTML, HTML Elements In Context. No Comments
Grouping Form Elements Together

As you build more complex forms, it can be convenient to group some of the elements together, which you can do using the fieldset element.



Setting the Name and adding Labels to a Form

Posted on September 22nd, by Learning in HTML, HTML Elements In Context. No Comments
Setting the Name and adding Labels to a Form

The name attribute lets you set a unique identifier for a form so that you can distinguish between forms. By using the label element, lets you provide some context for each element in a form.



Disabling Individual input Elements

Posted on September 21st, by Learning in HTML, HTML Elements In Context. No Comments
Disabling Individual input Elements

You can disable input elements so that the user cannot enter data into them. Check out all properties about it!



Specifying a Target for the Form Response

Posted on September 21st, by Learning in HTML, HTML Elements In Context. No Comments
Specifying a Target for the Form Response

The default behavior of a browser is to replace the page that contains the form with the response that the server returns after the form has been submitted.



Controlling Form Completion

Posted on September 21st, by Learning in HTML, HTML Elements In Context. No Comments
Controlling Form Completion

Browsers aid the user by remembering the data they have entered into forms and offering to reuse that data automatically when a similar form is seen again.



Configuring the Data Encoding

Posted on September 21st, by Learning in HTML, HTML Elements In Context. No Comments
Configuring the Data Encoding

The enctype attribute specifies how the browser encodes and presents the data to the server. Check out all properties about it.