Lesson 31: Creating Forms in Bootstrap 5
Forms in Bootstrap 5 make it easy for developers to build web forms. Here's how to create a form using Bootstrap 5.
Forms in Bootstrap 5 make it easy for developers to build web forms. Below is how to create a form using Bootstrap 5 .
Stacked Form
All elements and với class .form-control đều có kiểu dáng biểu mẫu phù hợp. Code mẫu:
Ví dụ:
Bootstrap Example Đăng nhập TipsMake.com.com
Lưu ý: Ví dụ đã thêm class .form-label vào mỗi phần tử label để đảm bảo thuộc tính đệm chính xác.
Các ô tích có kiểu đánh dấu khác nhau. Chúng được bao bọc xung quanh một phần tử container với .form-check và các label kèm class của .form-check-label, còn những ô tích và nút tròn dùng .form-check-input.
Hộp văn bản
Code mẫu: