英文:
Can we use two summary tags in a single details tag?
问题
在HTML中,我尝试在单个
标记中使用两个
标记。但在浏览器页面中没有反映出任何变化。
标记。但在浏览器页面中没有反映出任何变化。
所以我想知道是否可以在单个
标记中使用两个
标记。
英文:
I tried to use two summary tags in a single details tag in html. But it is not reflecting any change in the browser page.
So I want to know whether can we use two summary tags in a single details tag.
答案1
得分: 1
不,<details> 标签只能有一个 <summary> 标签,并且它应该是 第一个子元素。
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/summary
英文:
No, the <details> tag can have only one <summary> tag and it should be first child only
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/summary
				
标记。
英文:
I tried to use two summary tags in a single details tag in html. But it is not reflecting any change in the browser page.
So I want to know whether can we use two summary tags in a single details tag.
答案1
得分: 1
不,<details> 标签只能有一个 <summary> 标签,并且它应该是 第一个子元素。
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/summary
英文:
No, the <details> tag can have only one <summary> tag and it should be first child only
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/summary
				
英文:
I tried to use two summary tags in a single details tag in html. But it is not reflecting any change in the browser page.
So I want to know whether can we use two summary tags in a single details tag.
<details> 标签只能有一个 <summary> 标签,并且它应该是 第一个子元素。英文:
No, the <details> tag can have only one <summary> tag and it should be first child only
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/summary
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。


评论