html中image代表什么?
HTML中的<img>标签用于插入图片,在HTML网页制作中是必不可少的标签之一。HTML image标签是单独使用的,没有闭合标签:
图像默认以原始大小显示。如果图片很大,又与文字处在同一行,那么图片将把当前行的行高撑高,并且图片的底边与文字的底边在同一条水平线上。
figure image character区别?
html figure和image的区别如下:
1、figure元素是一种元素的组合,可带有标题(可选)。figure标签用来表示网页上一块独立的内容,将其从网页上移除后不会对网页上的其他内容产生影响。figure所表示的内容可以是图片、统计图或代码示例。
figure拥有一个子标签——figcaption标签。
实例:
用作文档中插图的图像:
<figure> <p>黄浦江上的的卢浦大桥</p>
<img src="shanghai_lupu_bridge.jpg" width="350" height="234" />
</figure>
2、img 元素向网页中嵌入一幅图像。这个标签并不会在网页中插入图像,而是从网页上链接图像。<img> 标签创建的是被引用图像的占位空间。
用法如下:
<img src="/i/eg_tulip.jpg" alt="上海鲜花港 - 郁金香" />
区别:figure用于对元素进行组合。多用于图片与图片描述组合。而img只是一个图片元素而已。可以嵌套在figure中使用。
还没有评论,来说两句吧...