CSS :checked Selector

HTML Code

<!DOCTYPE html>
<html>
<head>
<style>
input:checked {
height: 50px;
width: 50px;
}
</style>
</head>
<body>

<form action=””>
<input type=”radio” checked=”checked” value=”male” name=”gender”> Male<br>
<input type=”radio” value=”female” name=”gender”> Female<br>
<input type=”checkbox” checked=”checked” value=”Bike”> I have a bike<br>
<input type=”checkbox” value=”Car”> I have a car
</form>

</body>
</html>

HTML View

Male
Female
I have a bike
I have a car

If you want to join my online or offline graphic designing course than just call me - 9334029817

Related Posts

Leave a Reply

Open chat