I read this answer, that explains that links starting with // are used to maintain the procotol (http or https).
Is this something defined in a standard or RFC? Or is it just a hack implemented by browsers? I think it's useful, but before using it I want to make sure it is understood by all browsers.