6th December 2022

Html input type Properties with Examples

Type property takes many values in inputs and these values are used to determine how to enter data. Data entries such as text, selection, file attachment and encryption can be made. We will examine these ones by one.

tyle = “text”

The text property represents the field for text entry.

tyle=”text”
tyle=”text”
tyle=”text”

 

tyle = “button”

Used to define a clickable button on the name of the button property. But to tell the user what this button does, we need to give value = ””, otherwise our button will appear blank. For example;

<input type = "button" />
 / * Button without value assigned * /
<input type = "button" value = "Button" /> / * Button with value assigned * /
tyle = "button"
tyle = “button”

 

tyle = “checkbox”

The checkbox property represents an input format. It is used for the option sets we refer to as boxes.

<input type = "checkbox" /> Option1
<input type = "checkbox" /> Option2
<input type = "checkbox" /> Option3
tyle = "checkbox"
tyle = “checkbox”

 

tyle = “radio”

The radio property represents an input format. It is used for the option sets we refer to as boxes.

<input type = "radio" /> Option 1
<input type = "radio" /> Option 2
<input type = "radio" /> Option 3
tyle = "radio"
tyle = “radio”

 

LEARN MORE  Installing Php, Apache and Mysql on Centos

Leave a Reply

Your email address will not be published. Required fields are marked *