W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
运行代码
<html> <body> <form> Male: <input id="male" alt="male" type="radio" name="Sex" value="Male" /> <br /> Female: <input id="female" alt="female" type="radio" name="Sex" value="Female" /> </form> <p>The alt text for the radio buttons are: <script type="text/javascript"> document.write(document.getElementById('male').alt); document.write(" and "); document.write(document.getElementById('female').alt); </script></p> </body> </html>