I'm using Facebook's javascript sdk and it has double forward slashes. What do they mean?
<script src="//connect.facebook.net/en_US/all.js"></script>
I know a single /
means root directory, but what is //
? Is that telling the source to use http://
and then the path?
Definition and Usage The src attribute specifies the location (URL) of the external resource.
Attribute ValuesThe URL of the image. Possible values: An absolute URL - points to another web site (like src="http://www.example.com/image.gif") A relative URL - points to a file within a web site (like src="image.
Definition and UsageThe src property sets or returns the value of the src attribute of an image. The required src attribute specifies the URL of an image.
The purpose of the HTML src attribute is to specify a URI for an external file or resource. HTML src attribute supports frame, iframe, img, input and script elements.
This is a "protocol-relative" link. It uses http or https depending on what was used to load the current page.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With