عرض سلام و خسته نباشید خدمت تمام کاربران عزیز امروز با آموزش Input Types در Html در خدمت شما عزیزان هستیم .
<input type=”button“>
<input type=”checkbox“>
<input type=”color“>
<input type=”date“>
<input type=”datetime-local“>
<input type=”email“>
<input type=”file“>
<input type=”hidden“>
<input type=”image“>
<input type=”month“>
<input type=”number“>
<input type=”password“>
<input type=”radio“>
<input type=”range“>
<input type=”reset“>
<input type=”search“>
<input type=”submit“>
<input type=”tel“>
<input type=”text“>
<input type=”time“>
<input type=”url“>
<input type=”week“>
مقدار text در صفت Type تگ input
مقدار Password در صفت Type تگ input
<form>
<label for=”username”>نام کاربری :</label><br>
<input type=”text” id=”username” name=”username”><br>
<label for=”pwd”>رمز ورود :</label><br>
<input type=”password” id=”pwd” name=”pwd”>
</form>
نتیجه در مرورگر :
مقدار Submit در صفت Type تگ input
مقدار Reset در صفت Type تگ input
<form action=”/action_page.php”>
<label for=”fname”>نام :</label><br>
<input type=”text” id=”fname” name=”fname” value=”علی”><br>
<label for=”lname”>نام خانوادگی :</label><br>
<input type=”text” id=”lname” name=”lname” value=”محمدی”><br><br>
<input type=”submit” value=”Submit”>
<input type=”reset”>
</form>
نتیجه در مرورگر :
مقدار Radio در صفت Type تگ input
مقدار Checkbox در صفت Type تگ input
مقدار Button در صفت Type تگ input
مقدار Color در صفت Type تگ input
<form>
<label for=”favcolor”>رنگ مورد علاقه خود را انتخاب کنید </label>
<input type=”color” id=”favcolor” name=”favcolor”>
</form>
نتیجه در مرورگر :
مقدار Date در صفت Type تگ input
<form>
<label for=”datemax”>تاریخی را تا قبل از تاریخ ۱۹۸۰-۰۱-۰۱ انتخاب کنید : </label>
<input type=”date” id=”datemax” name=”datemax” max=”1979-12-31″><br><br>
<label for=”datemin”>تاریخی را تا بعد از سال ۲۰۰۰-۰۱-۰۲ انتخاب کنید </label>
<input type=”date” id=”datemin” name=”datemin” min=”2000-01-02″>
</form>
نتیجه در مرورگر:
امیدواریم این بخش از آموزش در مورد انواع Input Types در HTML نیز برای شما مفید واقع شده باشد و ما را در تلگرام و اینستاگرام دنبال کنید .