<!DOCTYPE html> <html> <body> <form action="/demo/demo_form.asp"> <textarea rows="4" cols="50" name="comment" required> </textarea> <input type="submit"> </form> <p><b>注释:</b>Internet Explorer 和 Safari 都不支持 required 属性。</p> </body> </html>