개발자의 길/Web Programming
<HTML> 페이지 내에 링크 사용
모쿠
2017. 3. 29. 13:34
<페이지 내에서 링크를 통한 이동>
- Top에서 Bottom으로, Bottom에서 Top으로 이동
- id값을 사용하여 연결시킴
<11_link.html>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>Link</title> </head> <body> <h1 id="top">HTML Link</h1> <!-- <a>: anchor --> <a href="http://www.google.com">구글</a> <br/> <a href="http://www.daum.net" target="_blank">다음</a> <hr/> <h1><a> 태그를 이용한 페이지 북마크</h1> <a href="#bottom">맨 아래로</a><br/> <!-- <: 보다 작다 >: 보다 크다 --> <h2>Chapter 1</h2> <h2>Chapter 2</h2> <h2>Chapter 3</h2> <h2>Chapter 4</h2> <h2>Chapter 5</h2> <h2>Chapter 6</h2> <h2>Chapter 7</h2> <h2>Chapter 8</h2> <h2>Chapter 9</h2> <h2>Chapter 10</h2> <h2>Chapter 11</h2> <h2>Chapter 12</h2> <h2>Chapter 13</h2> <h2>Chapter 14</h2> <h2>Chapter 15</h2> <h2>Chapter 16</h2> <h2>Chapter 17</h2> <h2>Chapter 18</h2> <h2>Chapter 19</h2> <h2>Chapter 20</h2> <h2 id="bottom">Chapter 1</h2> <a href="#top">맨 위로</a> </body> </html> | cs |