Tutorials  Articles  Notifications  Login  Signup


RA

Ritu Aggrawal

Site reliability engineer at Uber Aug. 14, 2020, 11:46 a.m. ⋅ 485 views

HTML How to assign an initial value to radio button as checked


To assign a values as checked to any radio button in html, we can use checked attribute.

<input type="radio" checked="checked">

Alternatively, we can also just give an attribute of checked to it. 

<input type="radio" checked />

 



HackerFriend Logo

Join the community of 1 Lakh+ Developers

Create a free account and get access to tutorials, jobs, hackathons, developer events and neatly written articles.


Create a free account