field-text
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 ô nhập văn bản có nhãn. Dấu sao của ký hiệu bắt buộc là aria-hidden; tín hiệu cho chương trình là thuộc tính required của ô nhập.
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 ="ft_bare" >Tiêu đề</label >
<input rst-input id ="ft_bare" name ="ft_bare" type ="text" >
</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 ="ft_hint" >Dòng tiêu đề</label >
<input rst-input id ="ft_hint" name ="ft_hint" type ="text" aria-describedby ="ft_hint-hint" >
<small rst-field-hint id ="ft_hint-hint" >Hiển thị trong danh sách.</small >
</div >
Bắt buộc
Đặt đoạn này bên trong <section rst-box><form rst-form>.
<div rst-field >
<label rst-field-label for ="ft_required" >Tên hiển thị <span rst-field-required aria-hidden ="true" >*</span ></label >
<input rst-input id ="ft_required" name ="ft_required" type ="text" autocomplete ="nickname" required >
</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 ="ft_error" >Tiêu đề</label >
<input rst-input id ="ft_error" name ="ft_error" type ="text" value ="Ghi chú phát hành" aria-invalid ="true" aria-describedby ="ft_error-error" >
<small rst-field-error id ="ft_error-error" >Đã có bài viết với tiêu đề đó.</small >
</div >
Trường chính
Hãy cho trường chính của biểu mẫu, một tiêu đề hay một cái tên, rst-input="primary" để ô nhập nổi bật hơn.
Đặt đoạn này bên trong <section rst-box><form rst-form>.
<div rst-field >
<label rst-field-label for ="ft_primary" >Đó là gì?</label >
<input rst-input ="primary" id ="ft_primary" name ="ft_primary" type ="text" value ="Cuộc họp hội đồng quý" >
</div >