Lab 7 : Fundamentals of web technology

 



1.  The <input type = "radio"> defines a radio button. In most cases, radio buttons are provided in radio groups. In a group, only one radio button can be selected at a time.

    The <input type = "checkbox"> defines a checkbox. When active, the checkbox appears as a square box that is ticked (checked). Checkboxes allow a user to select one or more alternatives from a limited set of alternatives.


2.  <!DOCTYPE html>

<html>

<body>


<h2> LAB-07 21-4-2020 </h2>

<h3> Exercise </h3><br>


<b><form>

  <input type="checkbox" id="car" name="v1" value="car">

  <label for="car">Car</label><br>

  <input type="radio" id="Black" name="color" value="black">

  <label for="black">Black</label>

  <input type="radio" id="White" name="color" value="white">

  <label for="white">White</label>

  <input type="radio" id="Green" name="color" value="green">

  <label for="green">Green</label>

  <input type="radio" id="Red" name="color" value="red">

  <label for="red">Red</label><br>

  <input type="checkbox" id="home" name="v2" value="home">

  <label for="home">Home</label><br>

  <input type="radio" id="small" name="size" value="small">

  <label for="small">Small</label>

  <input type="radio" id="large" name="size" value="large">

  <label for="large">Large</label>

</form></b>


</body>

</html>







Comments

Popular posts from this blog

Lab 6 : Fundamentals of web technology

Lab 8 : Fundamentals of web technology