HTML中的标签用于为web-developers提供灵活性以指定图像资源。 标签包含和标签。设置属性值以加载更合适的图像。 元素用于图片声明块的最后一个子元素。 元素用于为不支持该元素的浏览器或没有匹配的源标签提供向后兼容性。
用法:
Image and source tag
下面的示例说明了HTML中的标签:
例:
"width=device-width, initial-scale=1.0">
HTML picture Tag
body {
text-align:center;
}
h1 {
color:green;
}
GeeksforGeeks
HTML Tag
"https://media.geeksforgeeks.org/wp-content/uploads/20190825000042/geeks-221.png">
="https://media.geeksforgeeks.org/wp-content/uploads/20190802021607/geeks14.png">
"https://media.geeksforgeeks.org/wp-content/uploads/20190808102629/geeks15.png"
alt="GFG" style="width:auto;">
输出:
支持的浏览器:下面列出了HTML 标记支持的浏览器:
谷歌浏览器38.0
Internet Explorer 13.0
Firefox 38.0
Safari 9.1
Opera 25.0