【发布时间】:2023-12-23 05:56:01
【问题描述】:
具有以下形式的链接是有效的 XHTML / 良好做法吗? //www.example.com/foo/bar.html
如果当前页面是HTTP,那么链接指向:http://www.example.com/foo/bar.html 如果当前页面受 HTTPS 保护,则链接指向:https://www.example.com/foo/bar.html
换句话说,是
在 XHTML 1.1 Strict 中有效?而且,它是否被许多/所有浏览器支持?
【问题讨论】:
标签: http xhtml https anchor href