📄 alttag.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html lang = "en">
<!-- Fig. 23.1 alttag.html -->
<!-- Using the alt tag to make an image accessible -->
<head>
<meta http-equiv = "Content-Type"
content = "text/html; charset=iso-8859-1">
<title>
How to use the "ALT" attribute
</title>
<style type = "text/css">
body { background: #00FF00; color: black }
p { margin-top: 1em }
.center { text-align: center }
</style>
</head>
<body>
<h1>How to use the "ALT" attribute</h1>
<p>Below we compare two images, one with the
"ALT" attribute present, and one without. The
"ALT" appears as a tool tip in the first
image, but more importantly, will help users
who cannot view information conveyed graphically.
</p>
<p class = "center">
This image has the "ALT" attribute<br>
<img alt = "This is a picture of the Advanced
Java How To Program Text Book" src = "advjhtp1cov.jpg"
width = "182" height = "238">
</p>
<p class = "center">
This image does not have the "ALT" attribute<br>
<!-- This markup should be changed -->
<!-- because there is no alt attribute -->
<img src = "advjhtp1cov.jpg" width = "182" height="238">
</p>
</body>
</html>
<!--
###########################################################################
# (C) Copyright 2001 by Deitel & Associates, Inc. and Prentice Hall. #
# All Rights Reserved. #
# #
# DISCLAIMER: The authors and publisher of this book have used their #
# best efforts in preparing the book. These efforts include the #
# development, research, and testing of the theories and programs #
# to determine their effectiveness. The authors and publisher make #
# no warranty of any kind, expressed or implied, with regard to these #
# programs or to the documentation contained in these books. The authors #
# and publisher shall not be liable in any event for incidental or #
# consequential damages in connection with, or arising out of, the #
# furnishing, performance, or use of these programs. #
###########################################################################
-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -