HTML สร้างลิงค์เชื่อมโยงในเพจเดียวกัน


Code

<html>
    <head>
        <title>สร้างลิงค์เชื่อมโยงในเพจเดียวกัน</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
    </head>
    <body>
        <nav id="topBar">
            <a href="#A">A</a>
            <a href="#B">B</a>
            <a href="#C">C</a>
            <a href="#D">D</a>
            <a href="#E">E</a>
            <a href="#F">F</a>
        </nav>
        <h1><a id="A"></a>A</h1>
        ..............................................................<br>
        ..............................................................<br>
        ..............................................................<br>
        ..............................................................<br>
        ..............................................................<br>
        ..............................................................<br>
        ..............................................................<br>
        ..............................................................<br>
        ..............................................................<br>
        ..............................................................<br>
        <h1><a id="B"></a>B</h1>
        ..............................................................<br>
        ..............................................................<br>
        ..............................................................<br>
        ..............................................................<br>
        ..............................................................<br>
        ..............................................................<br>
        ..............................................................<br>
        ..............................................................<br>
        ..............................................................<br>
        ..............................................................<br>
        <h1><a id="C"></a>C</h1>
        ..............................................................<br>
        ..............................................................<br>
        ..............................................................<br>
        ..............................................................<br>
        ..............................................................<br>
        ..............................................................<br>
        ..............................................................<br>
        ..............................................................<br>
        ..............................................................<br>
        ..............................................................<br>
         <h1><a id="D"></a>D</h1>
        ..............................................................<br>
        ..............................................................<br>
        ..............................................................<br>
        ..............................................................<br>
        ..............................................................<br>
        ..............................................................<br>
        ..............................................................<br>
        ..............................................................<br>
        ..............................................................<br>
        ..............................................................<br>
        <h1><a id="E"></a>E</h1>
        ..............................................................<br>
        ..............................................................<br>
        ..............................................................<br>
        ..............................................................<br>
        ..............................................................<br>
        ..............................................................<br>
        ..............................................................<br>
        ..............................................................<br>
        ..............................................................<br>
        ..............................................................<br>
          <h1><a id="F"></a>F</h1>
        ..............................................................<br>
        ..............................................................<br>
        ..............................................................<br>
        ..............................................................<br>
        ..............................................................<br>
        ..............................................................<br>
        ..............................................................<br>
        ..............................................................<br>
        ..............................................................<br>
        ..............................................................<br>
        <a href="#topBar">กลับไปข้างบน</a>
    </body>
</html>

ตัวอย่างลองกดเล่นดู




A

..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................

B

..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................

C

..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................

D

..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................

E

..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................

F

..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
..............................................................
กลับไปข้างบน

ไม่มีความคิดเห็น:

แสดงความคิดเห็น