What is a Fieldset in HTML ?

  • 6 Replies
  • 558 Views
*

pihu147741

  • Guest
What is a Fieldset in HTML ?
« on: July 22, 2019, 01:05:57 AM »
Hello friends,

I want to know that What is a Fieldset in HTML ?

*

sinelogixtech

  • Hero Member
  • *****
  • 1647
  • +0/-0
    • View Profile
Re: What is a Fieldset in HTML ?
« Reply #1 on: July 22, 2019, 01:10:36 AM »
Hi Friends,
The <fieldset> element gives us a nice semantic tag to wrap or group similar fields or 'questions' together. General info, address, etc can be grouped into sections.

It can be used to style labels and inputs and align them according to type of question - checkboxes might be on the left side of labels, where name or type inputs might be the other way around.

Legends are titles or headers for the fieldset, but sometimes those are a little inconsistent to style correctly across browsers.

It even helps when scripting a form - you can apply javascript conditionals to show or hide entire fieldsets depending on how a question is answered. You can even pull this off in CSS. Use the :checked state to hide the fieldset adjacent to the checked box.

*

pranav1997

  • Newbie
  • *
  • 40
  • +0/-0
    • View Profile
Re: What is a Fieldset in HTML ?
« Reply #2 on: July 23, 2019, 03:45:28 AM »
The HTML 4 elements fieldset and legend allow you to layout and organise a large form with many different areas of interest in a logical way without using tables. The fieldset tag can be used to create boxes around selected elements and the legend tag will give a caption to those elements.

*

satheesh

  • Sr. Member
  • ****
  • 273
  • +0/-0
    • View Profile
Re: What is a Fieldset in HTML ?
« Reply #3 on: November 02, 2019, 05:45:23 AM »
The field set is the HTML tag used to group the related elements in form. <fieldset>

*

Arjun75020

  • Digital Marketing Company in Chennai
  • Full Member
  • ***
  • 122
  • +0/-0
    • View Profile
    • Digital Marketing Company in Chennai
Re: What is a Fieldset in HTML ?
« Reply #4 on: November 05, 2019, 02:34:06 AM »
The <fieldset> tag visually groups logically related fields in an HTML form defined with the <form> tag. The tag provides an opportunity to break forms down into logical sections. ... The <legend> tag is used to define a caption of a logical section defined by the <fieldset> element.
Digital Marketing Company in Chennai

*

cityweb

  • Web Development Services
  • Jr. Member
  • **
  • 87
  • +0/-0
  • Cityweb
    • View Profile
    • Web Development Services in Pune
Re: What is a Fieldset in HTML ?
« Reply #5 on: March 21, 2020, 03:35:13 AM »
The HTML fieldset element is used to group several controls as well as labels within a web form.

*

RH-Calvin

  • Hero Member
  • *****
  • 1749
  • +0/-0
    • View Profile
    • Reprise Hosting
Re: What is a Fieldset in HTML ?
« Reply #6 on: March 23, 2020, 08:49:15 AM »
The <fieldset> tag visually groups logically related fields in an HTML form defined with the <form> tag. The tag provides an opportunity to break forms down into logical sections. In the browser, a box around content is drawn.
Cheap VPS | $1 VPS Hosting
Cheap Dedicated Servers | Free Setup with IPMI

 




See Our Webmaster Tools for Windows and Mac

A1 Sitemap Generator
      
A1 Website Analyzer
      
A1 Keyword Research
      
A1 Website Download
      
A1 Website Search Engine
      
A1 Website Scraper