CSS - pseudo klasy :checked
kod |
wynik kodu |
<html>
<head>
<style type="text/css">
input:checked {
height: 40px;
width: 40px;
}
</style>
</head>
<body>
<form action="">
<p>Wybierz swój ulubiony serwis internetowy:<br />
<input type="radio" name="service" value="youtube" checked="checked" /> YouTube
<input type="radio" name="service" value="vimeo" /> Vimeo
<input type="radio" name="service" value="cda"> cda
</p>
</form>
</body>
</html>
|
|
kod |
wynik kodu |
<html>
<head>
<style type="text/css">
input:checked {
height: 40px;
width: 40px;
}
</style>
</head>
<body>
<form action="">
<p>Wybierz swój ulubiony serwis internetowy:<br />
<input type="checkbox" name="service" value="youtube" checked="checked" /> YouTube
<input type="checkbox" name="service" value="vimeo" /> Vimeo
<input type="checkbox" name="service" value="cda" /> cda
</p>
</form>
</body>
</html>
|
|