form.attributes.optgroup = FORM
form.attributes.optgroup {
	method = post

	# Basics
	10 = FIELDSET
	10 {
		legend = Basics, already shows label
		10 = SELECT
		10 {
			1 = OPTGROUP
			1 {
				label = Option Group 1
				1 = OPTION
				1 {
					data = optgroup 1 option 1
				}
				2 = OPTION
				2 {
					data = optgroup 1 option 2
				}
			}
			2 = OPTGROUP
			2 {
				label = Option Group 2
				1 = OPTION
				1 {
					data = optgroup 2 option 1
				}
				2 = OPTION
				2 {
					data = optgroup 2 option 2
				}
			}
		}
	}

	# Class
	20 = FIELDSET
	20 {
		legend = Class
		10 = SELECT
		10 {
			1 = OPTGROUP
			1 {
				label = Single Class
				class = singleClass
				1 = OPTION
				1 {
					data = optgroup 1 option 1
				}
			}
			2 = OPTGROUP
			2 {
				label = Multiple classes
				class = class1 class2
				1 = OPTION
				1 {
					data = optgroup 2 option 1
				}
			}
		}
	}

	# Disabled
	30 = FIELDSET
	30 {
		legend = Disabled
		10 = SELECT
		10 {
			1 = OPTGROUP
			1 {
				label = disabled=1
				disabled = 1
				1 = OPTION
				1 {
					data = optgroup 1 option 1
				}
			}
			2 = OPTGROUP
			2 {
				label = disabled=0
				disabled = 0
				1 = OPTION
				1 {
					data = optgroup 2 option 1
				}
			}
			3 = OPTGROUP
			3 {
				label = disabled=disabled
				disabled = disabled
				1 = OPTION
				1 {
					data = optgroup 3 option 1
				}
			}
		}
	}

	# Id
	40 = FIELDSET
	40 {
		legend = Id
		10 = SELECT
		10 {
			1 = OPTGROUP
			1 {
				label = Option group 1
				id = optgroup1
				1 = OPTION
				1 {
					data = optgroup 1 option 1
				}
			}
		}
	}

	# Lang
	50 = FIELDSET
	50 {
		legend = Lang
		10 = SELECT
		10 {
			1 = OPTGROUP
			1 {
				label = has Lang
				lang = en-US
				1 = OPTION
				1 {
					data = optgroup 1 option 1
				}
			}
		}
	}

	# Style
	60 = FIELDSET
	60 {
		legend = Style
		10 = SELECT
		10 {
			1 = OPTGROUP
			1 {
				label = has Style
				style = background-color: red;
				1 = OPTION
				1 {
					data = optgroup 1 option 1
				}
			}
		}
	}

	# Title
	70 = FIELDSET
	70 {
		legend = Title
		10 = SELECT
		10 {
			1 = OPTGROUP
			1 {
				label = has Title
				title = This is the OPTGROUP title
				1 = OPTION
				1 {
					data = optgroup 1 option 1
				}
			}
		}
	}
}