ປະເພນວັດຖຸ <input> name ຂອງ HTML
ການອະທິບາຍແລະການນໍາໃຊ້
name
ປະເພນວັດຖຸຕັດສິນສຳລັບຊື່ສັບ <input>。
name
ປະເພນວັດຖຸໃຊ້ສຳລັບການຫົກຫວຍສັບສຳລັບຢູ່ສະຕິກັນຈັກສະແດງສັບສຳລັບຄວາມມີພາບສະແດງຂອງ JavaScript ຫຼືສຳລັບການຫົກຫວຍຂໍ້ມູນອອກຂອງບົດສະຫລອງຫຼັງຈາກການຢືນຢັນບົດສະຫລອງ。
Note:Only name
Form elements with the attribute can pass their values when submitting the form.
Example
HTML form containing three input fields: two text fields and one submit button:
<form action="/action_page.php"> <label for="fname">Name:</label> <input type="text" id="fname" name="fname"><br><br> <label for="lname">Surname:</label> <input type="text" id="lname" name="lname"><br><br> <input type="submit" value="Submit"> </form>
Syntax
<input name="text">
Attribute Value
Value | Description |
---|---|
text | Define the name of the <input> element. |
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support |