html - 哪些 HTML 5 标记属性可以包含 URL?
问题描述
我试图找出哪些 HTML 5 标记包含可以包含 URL 的属性。
看起来它们中的大多数(如果不是全部)是 html 元素的src
,srcset
和href
属性。
到目前为止,我列出了一些最常用的:
- Tag: a - Attribute: href
- Tag: img - Attribute: src
- Tag: img - Attribute: srcset
- Tag: base - Attribute: href
- Tag: embed - Attribute: src
- Tag: link - Attribute: href
- Tag: script - Attribute: src
PS:我对data-*
自定义属性不感兴趣
解决方案
推荐阅读
- go - 点击 50000 并行请求的 url
- android - 在所有 api 方法中使用通用 url 前缀?
- r - 如何更改 R 中随机森林的分割标准?
- reactjs - React-Native 总是在组件中调用 SwitchNavigator
- sql - 过滤掉 SQL Query 中的重复行
- vue.js - 从子组件 VueJs 添加元素的打开模式
- airflow - 如何在 Airflow 中手动触发来自未来的 dag?
- c# - override inherited event with generic type
- symfony4 - Creating controller-less route in Symfony
- python - 如何用其他元素替换列表的元素