Tutorial HTML Forms Tag Regularly



This time, we will discuss how to use HTML forms tag. One of the most complicated elements when creating forms is the fieldset. This element in particular is used for categorizing the data bound to the form. Therefore, you can use fieldsets HTML to put together something similar function. It often used along with legend. The main function of legend is to define additional information on the fieldset element. 

How to Use Fieldsets HTML to Put Together Something Similar Function

After the form begins with <fieldset>, it often followed by <legend> on the next line. This tag will end with </legend>. Between those two tags, you can add additional information related to the whole function of the forms. For instance, you can write something like this <legend>Personal Information:</legend>.as the result, you will see the “Personal Information” separates the form from one data to another. This tag allows you to make fieldset labels using HTML legends.

Aside from using legend to categorize similar function in form tags, you can also use label as well. Labeling using this method begins with <label> and it ends with </label>. The difference between legend and label is located on its visibility. In the result the additional information of legend will appear. However, additional information of label will not appear on the result. If you want to make the result looks nice, you can replace the legend use by using the label element HTML

If the additional result of label does not show up on the result, what is the point of using it? Actually, label is able to make the same categorization as legend, but without having to be showed on the result. It allows you to pair label for attribute HTML easier. Make sure you include it in the form tag when you decided to make one. 

Categorizing form by using legend and label is surely helpful. However, what happens if you have to make options in form of long list on your form. In this case, the outgrup will come in handy. The placement of outgroup label is right after the HTML is started. It only means that you can put HTML outgroup to categorize select the options you want. As it goes with label, outgroup is not visible on the result as well.   

At this rate, your HTML should be completed. In order to protected from your friend or irresponsible person. In order to do so, you can use accesskey. Accessky is considered as attribute that is able to allow you using shortcut to activate particular element on your site. The shortcut key on this accesskey is not the same, depending on what browser you use to open it. By using accesskey how to use HTML in the right time, you can protect and modify it anytime.

The practical use of HTML forms is important. Therefore, you need to know the basic way to make functional form. Aside from being practical, a good HTML forms should also be good looking. By using a lot of practice, you can make sure your forms style a consistent design. It will give professional looks for the HTML forms.


SHARE

About andy

I made this blog just to make about the science that I learned during the study, if there is something wrong please comment below, and do not forget to share, thank you.

    Blogger Comment
    Facebook Comment

0 komentar:

Posting Komentar