More and more, began to notice that the links in the source code on Web sites begin with two slashes. For example:
<a href="//example.com/1.png">Image</a>
Why do it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It’s a protocol-relative URL (typically HTTP or HTTPS). So if I’m on
http://example.organd I link (or include an image, script, etc.) to//example.com/1.png, it goes tohttp://example.com/1.png. If I’m onhttps://example.org, it goes tohttps://example.com/1.png.This lets you easily avoid mixed content security errors.