Search
 
SCRIPT & CODE EXAMPLE
 

HTML

radio button required

One input with required attribute is enough.

<form>
  Select Gender:

  <label><input type="radio" name="gender" value="male" required>Male</label>

  <label><input type="radio" name="gender" value="female">Female</label>

  <label><input type="radio" name="gender" value="other">Other</label>

  <input type="submit">
</form>
Comment

PREVIOUS NEXT
Code Example
Html :: plural of axis 
Html :: how to embed audio in html 
Html :: gradient on top of image css 
Html :: django html checkbox if condition chexked 
Html :: markdown: text size 
Html :: how to add image caption in markdwon 
Html :: hyperlink html 
Html :: htaccess code to remove .php extension 
Html :: css hide image if not found 
Html :: ngfor index 
Html :: html align text right 
Html :: dutch phone pattern html 
Html :: mailto tag with line break 
Html :: how to make a clickable image in html 
Html :: bootstrap 5 datalist example 
Html :: linked image html 
Html :: how to make a button not reload on click 
Html :: increase video speed html5 
Html :: how to center an image in markdown 
Html :: fa fa pencil edit icon 
Html :: html telephone 
Html :: accept method composite jsf 
Html :: table align 
Html :: select2 bootstrap modal issue 
Html :: bootstrap border none modal header 
Html :: Send a SMS Text From A Link - the new code 
Html :: javascript onclick back 
Html :: laravel phpcs.xml 
Html :: input limit file type html 
Html :: input tag html with data list 
ADD CONTENT
Topic
Content
Source link
Name
1+8 =