Yes.
The definition of the href
attribute for the link
element says:
[…] must contain a valid non-empty URL potentially surrounded by spaces
This links to the definition of valid non-empty URL, which links to the definition of valid URL, which says that is has to be a URL that
conforms to the authoring conformance requirements in the URL standard
That URL standard is http://www.w3.org/TR/url/ (which is actually only a Working Draft from 2014), and this, of course, defines/allows relative URLs.
Or in other words (tl;dr): The href
attribute is the same for a
, area
, and link
.
<link>
element with a closing slash (nor any of the others such as<img>
,<input>
, etc.