完整的具有URL值的HTML标签属性列表? [英] COMPLETE list of HTML tag attributes which have a URL value?
问题描述
除了以下内容,是否还有HTML标签属性的URL值为?
href 属性标记:
< link>
,< a>
,< area>
src
标记属性:< ; img>
,< iframe>
,< frame>
,< embed>
,< script>
,< input>
动作
标记属性:< form>
data
标记属性:< object>
寻找广泛使用的标签,包括非标准标签和旧浏览器,以及HTML 4.01,HTML 5和XHTML。
查看W3C的 HTML属性列表,那里有一个类型列,只是看对于URI类型。
当然,该列表的HTML 5版本也很有用(编辑:HTML 5.2的更新链接 here )
所以对于HTML4我们'已经得到:-
< a href = url>
-
< applet codebase = url>
-
< area href = url> ;
-
< base href = url>
-
< body background = url>
-
< del cite = url>
-
< ; form action = url>
-
< frame longdesc = url>
and< frame src = url>
-
< head profile = url>
-
< iframe已变长esc = url>
和< iframe src = url>
-
< ; img longdesc = url>
和< img src = url>
和< img usemap = url> code>
-
< input src = url>
和< input usemap = url>
-
< ins cite = url>
-
< link href = url>
-
< object classid = url>
和< object codebase = url>
和< object data = url>
和< ; object usemap = url>
-
< q cite = url>
$ b -
< script src = url>
< blockquote cite = url>
HTML 5添加了一些(并且HTML5似乎也不使用上面的一些):
<音频src = url>
< button formaction = url>
< embed src = url>
< html manifest = url>
< input formaction = url>
< source src = url>
< ; track src = url>
< video poster = url>
and < video src = url>
这些不一定是简单的网址:
$ ul
< img srcset =url1 resolution1 url2 resolution2>
< source srcset =url1 resolution1 url2 resolution2>
< object archive = url>
或< object archive =url1 url2 url3>
< applet archive = url>
或< applet archive = url1,url2,url3>
< meta http-equiv =refreshcontent =seconds; url>
SVG还可以包含指向资源的链接:< svg>< image href =url/>< / svg>
另外, style
属性可以包含带有一个或多个url的css声明,例如:< div style =background:url(image.png)>
Besides the following, are there any HTML tag attributes that have a URL as their value?
href
attribute on tags:<link>
,<a>
,<area>
src
attribute on tags:<img>
,<iframe>
,<frame>
,<embed>
,<script>
,<input>
action
attribute on tags:<form>
data
attribute on tags:<object>
Looking for tags in wide usage, including non-standard tags and old browsers as well as HTML 4.01, HTML 5, and XHTML.
Check out the W3C's list of HTML attributes, there's a "type" column in there and just look for URI types.
And of course the HTML 5 version of that list is useful too (edit: updated link for HTML 5.2 here)
So for HTML4 we've got:
<a href=url>
<applet codebase=url>
<area href=url>
<base href=url>
<blockquote cite=url>
<body background=url>
<del cite=url>
<form action=url>
<frame longdesc=url>
and<frame src=url>
<head profile=url>
<iframe longdesc=url>
and<iframe src=url>
<img longdesc=url>
and<img src=url>
and<img usemap=url>
<input src=url>
and<input usemap=url>
<ins cite=url>
<link href=url>
<object classid=url>
and<object codebase=url>
and<object data=url>
and<object usemap=url>
<q cite=url>
<script src=url>
HTML 5 adds a few (and HTML5 seems to not use some of the ones above as well):
<audio src=url>
<button formaction=url>
<command icon=url>
<embed src=url>
<html manifest=url>
<input formaction=url>
<source src=url>
<track src=url>
<video poster=url>
and<video src=url>
These aren't necessarily simple URLs:
<img srcset="url1 resolution1 url2 resolution2">
<source srcset="url1 resolution1 url2 resolution2">
<object archive=url>
or<object archive="url1 url2 url3">
<applet archive=url>
or<applet archive=url1,url2,url3>
<meta http-equiv="refresh" content="seconds; url">
SVGs can also contain links to resources: <svg><image href="url" /></svg>
In addition, the style
attribute can contain css declarations with one or several urls. For example: <div style="background: url(image.png)">
这篇关于完整的具有URL值的HTML标签属性列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!