编辑下面的代码:【加编码】
<html> <body> <img id="compman" src="/demo/compman.gif" alt="Crazy computerman" width="107" height="98"> <p>The value of the alt atrribute is: <script> document.write(document.getElementById("compman").alt); </script> </p> </body> </html>
结果: 【此窗口】 帮助?
Try it Yourself - © 自强学堂