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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

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

android - How to create dynamically Fragment pager adapter -