سمة اسم <fieldset> HTML

❮ علامة HTML <fieldset>

مثال

A <fieldset> بسمة اسم:

<form action="/action_page.php" method="get">
  <fieldset name="personalia">
    <label for="fname">First name:</label>
    <input type="text" id="fname" name="fname">
  </fieldset>
  <br>
  <button type="button"
  onclick="form.personalia.style.backgroundColor='yellow'">
  Change background color of fieldset</button>
  <input type="submit">
</form>

التعريف والاستخدام

تحدد السمة nameاسمًا لمجموعة الحقول.

تُستخدم nameالسمة للإشارة إلى العناصر في JavaScript ، أو للإشارة إلى بيانات النموذج بعد إرسال النموذج.


دعم المتصفح

Attribute
name Yes 11.0 Yes Yes Yes

بناء الجملة

<fieldset name="text">

قيم السمات

Value Description
name Specifies the name of the fieldset

❮ علامة HTML <fieldset>