Files
Learn_Javascript/html/checkBox.html

29 lines
1.0 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="/css/style.css">
</head>
<body>
<p id="p1">
<label for="myCheckBox">Subscribe</label>
<input type="checkbox" id="myCheckBox"><br>
<button id="myButton">Submit</button>
</p>
<p id="p2">
<label for="visa">Visa</label>
<input type="radio" name="card" id="visa">
<label for="paypal">PayPal</label>
<input type="radio" name="card" id="paypal">
<label for="master">Master</label>
<input type="radio" name="card" id="master"><br>
<button id="payButton">Go to checkout</button>
</p>
<p id="p3">
</p>
<script src="/js/checkBox.js"></script>
</body>
</html>