运行 ❯
获取您
自己的
网站
×
更改方向
保存代码
更改主题,深色/浅色
前往 Spaces
<!DOCTYPE html> <html> <body> <h1>The textarea form attribute</h1> <form action="/action_page.php" id="usrform"> Name: <input type="text" name="usrname"> <input type="submit"> </form> <br> <textarea rows="4" cols="50" name="comment" form="usrform"> Enter text here...</textarea> <p>The text area above is outside the form element, but should still be a part of the form.</p> </body> </html>