- Get link
- X
- Other Apps
- Get link
- X
- Other Apps
HTML Elements:-
HTML Input Element:-
The HTML input element creates interactive controls to accept the data from the user.
There are different types of inputs.
The HTML input element creates interactive controls to accept the data from the user.
There are different types of inputs.
- Text
- Password
- Radio
- Date
- Checkbox
html:- <input type="text" />
Note:- Default type for the HTML input element is text.
Password Input:- It provides a way for the user to enter a password securely.
html:- <input type="password" />
DOM Properties:-
Value We can use the value property to get the value of the HTML input Element
JS:- document.getElementById("inputElement").value;
Comparison Operator:-
Loose equal to vs Strict equal to (== vs===):-
Loose equal to vs Strict equal to (== vs===):-
Loose equal to (==):- Loose equality compares two values for equality but doesn’t compare types of values.
Strict equal to (===):- Strict equality compares two values for equality including types of values.
JS:-
console.log(2 == '2');
console.log(2 == '2');
o/p:- true
console.log(2 === '2');
o/p:- false
checkbox input element
date input element
HTML Input Element
password input element
radio input element
text
- Get link
- X
- Other Apps
Comments
Post a Comment