หากต้องการจัดรูปแบบช่องป้อนข้อมูลของแบบฟอร์ม คุณสามารถลองเรียกใช้โค้ดต่อไปนี้ จัดรูปแบบ <อินพุต>:
ตัวอย่าง
<!DOCTYPE html> <html> <head> <style> input { width: 100%; } </style> </head> <body> <p>Fill the below form,</p> <form> <label for = "subject">Subject</label> <input type = "text" id = "subject" name = "sub"> <label for = "student">Student</label> <input type = "text" id = "student" name = "stu"> </form> </body> </html>