Link to the home page of a website
- Published:
Link to the home page of a website should look like this:
<a href="/">…</a>
…and in no way should point to a file, e. g.:
<a href="/index.htm">…</a>
<a href="/index.php">…</a>
<a href="/index.aspx">…</a>
Otherwise, site will have two identical home pages — the one that is shown in browser’s location bar when user has typed-in the website’s domain name (http://example.com/
), and the second one where user goes to by clicking “home”-page link placed on the site pages (http://example.com/index.php
).