html - Safe to use // over https:// or http:// -


on our website have secure , unsecure pages. should link images, css etc using full https:// or how safe link using // ?

example 1: <link href="https://www.domain.com/style.css" rel="stylesheet" type="text/css" />  example 2: <link href="//www.domain.com/style.css" rel="stylesheet" type="text/css" /> 

to ensure traffic encrypted, use https safe. can't hurt; can make traffic more secure.


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

html - How can i make an element from a bottom stacking context stays in front of another higher stacking context? -

html - href attribute breaking an element -