首頁區

<!--HTML5(037)絕對路徑-->
<!--
之前所學的都是屬於相對路徑,
接下來為絕對路徑。

file:///c:/xxx/xxx.html
「本機C槽上的一個HTML 檔案」。

http://www.xxx.tw
「網路上一台 WWW Server 上的一個 HTML 檔案」。

/xxx/xxx/xxx
「本機 WWW 根目錄下的一個目錄」。-->
<!doctype html>
<html>
<head>
    <meta charset = "utf-8">
    <title>HTML5(037)絕對路徑</title>
</head>
<body>
<header>
    <h1>首頁</h1>
</header>
<p>
    <a href = "file:///C|Users/ASUS/Desktop
    /main/child/child1.html"><h3>child1</h3></a>
    <!--c:/可用c|代替-->
</p><p>
    <a href = "file:///C:/Users/ASUS/Desktop
    /main/index1.html"><h3>index1</h3></a>
</p>
</body>
</html>

結果為:

image

 

index1

<!--HTML5(037)絕對路徑-->
<!doctype html>
<html>
<head>
    <meta charset = "utf-8">
    <title>HTML5(037)絕對路徑</title>
</head>
<body>
<header>
    <h1>index1</h1>
</header>
<p>
    <a href = "file:///C|Users/ASUS/Desktop
    /main/child/child1.html"><h3>child1</h3></a>
</p><p>
    <a href = "file:///C|Users/ASUS/Desktop
    /main/main.html"><h3>main</h3></a>
</p>
</body>
</html>

結果為:

image

child1

<!--HTML5(037)絕對路徑-->
<!doctype html>
<html>
<head>
    <meta charset = "utf-8">
    <title>HTML5(037)絕對路徑</title>
</head>
<body>
<header>
    <h1>child1</h1>
</header>
<p>
    <a href = "file:///C|Users/ASUS/Desktop
    /main/main.html"><h3>main</h3></a>
</p><p>
    <a href = "file:///C:/Users/ASUS/Desktop
    /main/index1.html"><h3>index1</h3></a>
</p>
</body>
</html>

結果為:

image

 

 

 

 

 

 

 

 

 

arrow
arrow
    文章標籤
    HTML5
    全站熱搜
    創作者介紹
    創作者 愛學習 的頭像
    愛學習

    愛學習

    愛學習 發表在 痞客邦 留言(0) 人氣()