The <radio> Tag

Purpose

The <radio> tag renders a radio button input field (i.e., it is mapped to an HTML <input> element with type="radio").

Requirements

A <radio> tag has to be embedded in a <form> tag.

Attributes

Attribute groups: %coreattrs, %i18n, %events and %input.

NameDescription
assertClass Appended to the HTML class attribute, if an assertion concerning this input field failed. (Default: equally named attribute value of the embedding form.)
assertStyle Appended to the HTML style attribute, if an assertion concerning this input field failed. (Default: equally named attribute value of the embedding form.)
checked Mapped to the HTML attribute of the same name, if no current value is available.
errorClass Appended to the HTML class attribute, if the validation of this input field failed. (Default: equally named attribute value of the embedding form.)
errorStyle Appended to the HTML style attribute, if the validation of this input field failed. (Default: equally named attribute value of the embedding form.)
name Required - Mapped to the HTML attribute of the same name.
value Required - Mapped to the HTML attribute of the same name.

Body

The <radio> tag has no body.

Related tags

<radioitem>, <checkbox>, <checkboxitem>