W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
运行代码
<html> <body> <form> I have a bike: <input id="bike" alt="bike" type="checkbox" name="Bike" /> <br /> I have a car: <input id="car" alt="car" type="checkbox" name="Car" /> </form> <p>The alt text for the checkboxes are: <script type="text/javascript"> document.write(document.getElementById('bike').alt); document.write(" and "); document.write(document.getElementById('car').alt); </script></p> </body> </html>