指向同一网站中其中的页面的链接

当连接指向同一网站中的其他页面时,就没必要在URL中指定域名这时我们可以采用简短的相对URL.

<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <title>TODO supply a title</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
    </head>
    <body>
        <div>TODO write content</div>
        <p>
        <ul>
            <li><a href="index.html">home</a></li>
            <li><a href="about-us.html">About</a></li>
            <li><a href="movies.html">Movies</a></li>
            <li><a href="contact.html">Contact</a></li>
        </ul>
        </p>
    </body>
</html>

  

posted @ 2018-07-21 11:13  梦人亭  阅读(142)  评论(0编辑  收藏  举报