搜索文档
首页
HTML/CSS
JavaScript
服务端开发
Java教程
移动端
数据库
当前位置:
首页
HTML/CSS
HTML参考手册
HTML 属性
源代码
清空
点击运行
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>HTML <fieldset> name 属性使用-基础教程(div.cn)</title> </head> <body> <form action="action_page.php" method="get"> <fieldset name="personalia"> Name: <input type="text" name="username"><br> Email: <input type="text" name="usermail"><br> </fieldset> <button type="button" onclick="form.personalia.style.backgroundColor='yellow'">Change background color of fieldset</button> <input type="submit"> </form> </body> </html>
运行结果