百虎谷互联网技术博客

关键词博客:搜索引擎探究、搜索技巧、网络技术、网站制作等!

« 学习html对齐方式属性和标记如何将网页强制放入框架? »

图像和超链接的标记

<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 网址。

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

最近发表

最新评论及回复

百虎谷(鲁ICP备08103840号)

友情提示:请输入关键词