Computer >> คอมพิวเตอร์ >  >> การเขียนโปรแกรม >> HTML

เราจะเพิ่มจำนวนอักขระสูงสุดที่อนุญาตในองค์ประกอบใน HTML ได้อย่างไร


ใช้ ความยาวสูงสุด คุณลักษณะเพื่อเพิ่มค่าสูงสุดใน HTML คุณสามารถลองเรียกใช้โค้ดต่อไปนี้เพื่อใช้งาน ความยาวสูงสุด แอตทริบิวต์ −

ตัวอย่าง

<!DOCTYPE html>
<html>
   <body>

      <form action = "">

         Rank:
         <input type = "number" name = "rank" min = "1" max = "10"><br>
         Cricketer:
         <input type = "text" name = "cricketer" maxlength = "20"><br>

         <input type = "submit" value = ”Submit”>
      </form>

   </body>
</html>