HTML中可以连接资源的标签集合

1.<a>标签,href属性指示链接的目标,可以是HTML也可以是内部css样式。
<a href="http://www.w3school.com.cn">W3School</a>

2.<area>标签,href属性,作用,带有可点击区域的图像映射,可能的值:站内链接,站外链接。锚点。
注:
HTML 与 XHTML 之间的差异
在 HTML 中,<area> 没有结束标签。
在 XHTML 中,<area> 必须正确地关闭
<img src="planets.jpg" border="0" usemap="#planetmap" alt="Planets" />

<map name="planetmap" id="planetmap">
<area shape="circle" coords="180,139,14" href ="venus.html" alt="Venus" />
<area shape="circle" coords="129,161,10" href ="mercur.html" alt="Mercury" />
<area shape="rect" coords="0,0,110,260" href ="sun.html" alt="Sun" />
</map>

3.<audio>标签的src属性,播放该url下的音频
<audio src="URL">

4.<base>标签的href属性,页面上所有的相对链接的基准url
注:
4.1在 HTML 中,<base> 标签没有结束标签;在 XHTML 中,<base> 标签必须被正确地关闭。
4.2<base> 标签必须位于 head 元素内部。
<head>
<base href="http://www.w3school.com.cn/i/" />
</head>

5.<blockquote> cite 属性,指定引用的来源
<blockquote cite="http://www.wwf.org">

6.<body> 标签的 background 属性
<body background="bgimage.jpg">

7.<button> formaction 属性
formaction 属性覆盖 form 元素的 action 属性。该属性与 type="submit" 配合使用。
<form action="demo_form.asp" method="get">
First name: <input type="text" name="fname" />
Last name: <input type="text" name="lname" />
<button type="submit">提交</button><br />
<button type="submit" formaction="demo_admin.asp">以管理员身份提交</button>
</form>

8.<command> icon 属性,规定用于代表command元素的图像
<menu>
<command onclick="alert('Hello World')" icon="bulbon.gif">
Click Me!
</command>
</menu>
注:<command>必须位于menu元素内时,其元素才是可见的。

9.<embed> src 属性,<embed> 标签定义嵌入的内容,比如插件
<embed src="helloworld.swf" />

10.<frame> 标签的 longdesc 属性,规定框架的内容描述页面的 URL。
<html>

<frameset cols="50%,50%">
<frame src="frame_a.htm" longdesc="w3school.txt" />
<frame src="frame_b.htm" />
</frameset>

</html>
11.<frame> 标签的 src 属性,规定要在框架中显示的文档的地址。
<html>

<frameset cols="50%,50%">
<frame src="frame_a.htm" />
<frame src="frame_b.htm" />
</frameset>

</html>
注:
注释:如果您希望验证某个包含框架的页面,请确保 DTD 被设置为 "Frameset DTD"。
重要事项:您不能与 <frameset></frameset> 标签一起使用 <body></body> 标签。
不过,如果您需要为不支持框架的浏览器添加一个 <noframes> 标签,请务必将此标签放置在 <body></body> 标签中!

12.<iframe> 标签的 longdesc 属性,规定 iframe 的内容描述页面的 URL。
<iframe src ="/index.html" longdesc="w3school.txt">
<p>Your browser does not support iframes.</p>
</iframe>

13.<iframe> 标签的 src 属性,规定显示在 iframe 中的文档的地址。
<iframe src="/index.html">
<p>Your browser does not support iframes.</p>
</iframe>

14.<img> 标签的 src 属性
<img src="/i/eg_tulip.jpg" />

15.<img> 标签的 longdesc 属性(页面不会显示)
<img src="eg_logo_w3school.gif" alt="W3School.com.cn" longdesc="w3s.txt" />

16.<link> 标签的 href 属性,href 属性指向了一个外部样式表的位置
<head>
<link rel="stylesheet" type="text/css" href="theme.css" />
</head>

17.<menuitem> 标签定义用户可以从弹出菜单调用的命令/菜单项目。(只有火狐支持,但是基本没有应用)
<menuitem label="Refresh" onclick="window.location.reload();" icon="ico_reload.png">

18.<object>网页对象,标签的 codebase 属性
<object classid="clock.class" codebase="http://www.w3school.com.cn/classes/">
</object>
这行语句可以解析为这个 URL:
http://www.w3school.com.cn/classes/clock.class

19.<object> 标签的 archive 属性,
属性的值是一个用引号括起来的 URL 列表,
其中每个 URL 都指向一个在显示或执行对象之前浏览器需要加载的档案文件,
用来指名对象资源列表的以空格分隔的 URI 列表。

20.<object> 标签的 data 属性
data 属性用于指定供对象处理的数据文件的 URL。
该属性的值是文件的 URL,该 URL 可能是相对于文件基本 URL 的绝对 URL 或相对 URL,
或者是相对于用 codebase 属性提供的 URL 的绝对或相对 URL。

21.<script> 标签的 src 属性
<script type="text/javascript" src="myscripts.js"></script>

22.<source> src 属性
<audio controls>
<source src="horse.ogg" type="audio/ogg">
<source src="horse.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>

23.<track> src 属性
带有两个字幕轨道的 video 元素:
<video width="320" height="240" controls="controls">
<source src="forrest_gump.mp4" type="video/mp4" />
<source src="forrest_gump.ogg" type="video/ogg" />
<track kind="subtitles" src="subschi.srt" srclang="zh" label="Chinese">
<track kind="subtitles" src="subseng.srt" srclang="en" label="English">
</video>

24.<video> src 属性
<video controls="controls" src="movie.ogg">
Your browser does not support the video tag.
</video>

原文地址:https://www.cnblogs.com/zhang293/p/7365683.html