码迷,mamicode.com
首页 > Web开发 > 详细

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

时间:2018-07-21 14:53:50      阅读:150      评论:0      收藏:0      [点我收藏+]

标签:连接   --   todo   tools   The   view   页面   project   doc   

当连接指向同一网站中的其他页面时,就没必要在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>

  

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

标签:连接   --   todo   tools   The   view   页面   project   doc   

原文地址:https://www.cnblogs.com/q2546/p/9345972.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!