hyperlink - HTML href tag. Add current path into href value -


when use url www.w3schools.com, redirecting me 404 not found page. don't want use http or https because url stored in database without http.

<!doctype html> <html> <body>  <p>an absolute url: <a href="www.w3schools.com">w3schools</a></p>  </body> </html> 

if use protocol agnostic url should alleviate problem.

i.e. "//www.w3schools.com"

this should adopt necessary protocol (http, https, etc.) on own , prevent 404 error.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -