Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are those URL's that are starting with // - that you can see within Google+ html source?

Tags:

http

url

Hi can somebody please explain what are the URL's that we can see at Google+ HTML source code that look like <img src="//lh5.googleusercontent.com/--kKi9nRc78s/AAAAAAAAAAI/AAAAAAAAAC8/w1PSeKZtt7I/photo.jpg?sz=48" alt="" />

Is it a shortcut for http:// ?

What browsers understand it in this case, where can I find more information on this, please ?

Thanks in advance!

like image 440
Denis Avatar asked Jul 11 '11 20:07

Denis


People also ask

What is URL in HTML?

URL stands for Uniform Resource Locator. A URL is nothing more than the address of a given unique resource on the Web. In theory, each valid URL points to a unique resource. Such resources can be an HTML page, a CSS document, an image, etc.

What is the URL of a website?

A URL (Uniform Resource Locator) is a unique identifier used to locate a resource on the Internet. It is also referred to as a web address. URLs consist of multiple parts -- including a protocol and domain name -- that tell a web browser how and where to retrieve a resource.

Where is the URL of a website located?

A URL is usually located at the top of the browser window in the address bar or omnibox. On desktop computers and laptops, the URL is always visible unless your browser is being displayed in fullscreen.


1 Answers

It's a scheme-relative URL. You see this often on websites/pages which can be served over both http and https. If the image pointed to a http resource and the page itself was served over https, you would otherwise see an annoying browser warning that unsecured content is been served, something like this:

enter image description here

like image 54
BalusC Avatar answered Nov 15 '22 08:11

BalusC