W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
运行代码
<html> <body> <form> <input type="submit" alt="submit button" id="submit1" /> </form> <p>The alt text for the submit button is: <script type="text/javascript"> x=document.getElementById('submit1'); document.write(x.alt); </script></p> </body> </html>