field-url
Biểu mẫu Các trường mà người ta gõ vào, ở những trạng thái mà một biểu mẫu thật đặt chúng vào. Mỗi cái nằm trong một rst-box có đệm, vì đó là tấm thẻ mà biểu mẫu nằm trong.
Một ô địa chỉ web nhận example.com có hoặc không có https://. Thứ đọc biểu mẫu phải tự thêm giao thức và kiểm tra địa chỉ.
Mỗi ví dụ đều hoạt động thật, nhưng các liên kết trong đó không dẫn đến đâu. HTML hiển thị mã đánh dấu để sao chép.
Trơn
Đặt đoạn này bên trong <section rst-box><form rst-form>.
<div rst-field >
<label rst-field-label for ="fu_bare" >Trang web</label >
<input rst-input id ="fu_bare" name ="fu_bare" type ="text" inputmode ="url" autocomplete ="url" autocapitalize ="none" autocorrect ="off" spellcheck ="false" >
</div >
Kèm một gợi ý
Đặt đoạn này bên trong <section rst-box><form rst-form>.
<div rst-field >
<label rst-field-label for ="fu_hint" >Trang web công ty</label >
<input rst-input id ="fu_hint" name ="fu_hint" type ="text" inputmode ="url" autocomplete ="url" autocapitalize ="none" autocorrect ="off" spellcheck ="false" aria-describedby ="fu_hint-hint" >
<small rst-field-hint id ="fu_hint-hint" >Bạn có thể bỏ phần https.</small >
</div >
Kèm một lỗi
Đặt đoạn này bên trong <section rst-box><form rst-form>.
<div rst-field >
<label rst-field-label for ="fu_error" >Trang web</label >
<input rst-input id ="fu_error" name ="fu_error" type ="text" inputmode ="url" autocomplete ="url" autocapitalize ="none" autocorrect ="off" spellcheck ="false" value ="brightwater" aria-invalid ="true" aria-describedby ="fu_error-error" >
<small rst-field-error id ="fu_error-error" >Hãy nhập một địa chỉ web, ví dụ example.com.</small >
</div >