Is a link without the protocol valid XHTML? i.e.

后端 未结 1 1638
滥情空心
滥情空心 2021-01-12 10:40

Is it valid XHTML / good practice to have links of the following form? //www.example.com/foo/bar.html

If the current page is HTTP, then the link points to: http://ww

相关标签:
1条回答
  • 2021-01-12 11:28

    Is it valid XHTML

    Completely. XHTML doesn't care about the syntax of URIs. The href attribute is defined as containing CDATA.

    valid in XHTML 1.1 Strict?

    There is no such language.

    XHTML 1.0 has Strict / Transitional / Frameset versions.

    XHTML 1.1 is just XHTML 1.1. (And isn't blessed by rfc2854 for serving as text/html (which you need for IE < 9 support)).

    And, is it supported by many/all browsers?

    Yes. Support is fine.

    0 讨论(0)
提交回复
热议问题