Advertisement
Home Open Editor ❯

HTML <input> type Attribute

Example

<input type="radio" id="html" name="language" value="HTML">
<label for="html">HTML</label>

<input type="radio" id="css" name="language" value="CSS">
<label for="css">CSS</label>

<input type="radio" id="javascript" name="language" value="JavaScript">
<label for="javascript">JavaScript</label>

Try this code ❯

Meaning

A radio button, allowing a single value to be selected out of multiple choices with the same name value.

Related attributes:


Standard Syntax

HTML: <input type="radio">

XHTML: <input type="radio" />


Advertisement

Home Open Editor ❯
Advertisement