<HTML><HEAD> <TITLE>Listing 2-7</TITLE></HEAD>
<BODY>
Here is an image <IMG SRC=“1.jpg" WIDTH=“40" HEIGHT="36">.
<BR><!—插入图片 --!/>
<IMG SRC=“ 1.jpg ” WIDTH=“40” HEIGHT=“36” ALIGN=“right“ alt=“图片1”>
This image has been given an alignment. This causes the image to be removed from the flow of the text and displayed at a particular location relative to the surrounding text.
<BR>
Here is a <A HREF=http://www.microsoft.com >link to Microsoft</A>.
<BR> <!--使用文字链接到www.microsoft.com --!/>
The next link has a picture and text and links to a local file.
<BR>
<A HREF="other.htm"><IMG SRC=" 1.jpg "> text</A>
<BR> <!—使用图片和文字链接到同一目录下的other.htm --!/>
This final link points to a bookmark in the file "other.htm".
<BR>
<A HREF="other.htm#bookmark1">Link to bookmark</A>
<!--用文字链接到other文件中的锚记名为bookmark1 --!/>
</BODY></HTML>
说明:
<IMG> 用来把一幅图像放在网页上。结束标记</IMG>是可选的。图像是一个内嵌的元素,可以随着文本移动。
SRC属性指定了图象的来源,包括存放图像源文件的路径。
WIDTH指定图象的宽度,象素值
HEIGHT指定图象的高度,象素值
ALT:提示语句
BORDER:边框线的宽度
<A> </A>:之间的文本是超链接的标记,HREF 定义了IE应该访问的位置,可以是任何有效的Web 网址。
学习html对齐方式属性和标记 (2009-3-28 11:35:50)
HTMl中字符、字体、标题、行格式编排标记 (2009-3-27 20:15:52)
HTML 容器标记 (2009-3-27 20:13:18)
学习html的基础知识,校园宝典! (2009-3-27 20:9:21)
学习html前该掌握哪些知识? (2009-3-27 20:0:7)
快速学习HTML的方法,轻松掌握HTML语法 (2009-3-19 11:8:47)
◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。