开发者

HTML - Can I use a same ID and NAME on two different web page?

I know that ID and NAME should be unique to a page.

however, I would like to know whether or not it is valid to use a same ID and NAME on different pages.

For example:

<img alt="" src="images/shadow.png" id="shadow" name="shadow开发者_运维知识库"/>

Whether or not it is valid to include this statement to all pages?

Thank you


this is fine. it only has to be unique to a page

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜