编辑下面的代码:【加编码】
<html> <body> <form action="demo-form.php"> <textarea rows="4" cols="50" name="comment" required> </textarea> <input type="submit"> </form> <p><b>注意:</b> IE 9 及更早 IE 版本,Safari浏览器不支持 required 属性。</p> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂