텍스트 등의 정보가 동일 선상이 아닌 다중으로 연결되어 있는 상태
한 텍스트에서 다른 텍스트로 건너뛰어 읽을 수 있는 기능
<!DOCTYPE html>
<html>
<body>
<a href="http://www.google.com">Visiting google site</a>
</body>
</html>
파일 시스템에서 파일의 위치를 나타내는 방법
절대경로 (Absolute path)
- working directory와 관계없이 특정 파일의 절대위치를 가리킴
- root directory를 기준으로 파일의 위치를 나타냄
상대경로 (Relative path)
- working directory를 기준으로 파일 위치를 나타냄
href attribute에서 사용가능한 값
- 절대 URL : 웹사이트 URL
- 상대 URL : 자신의 위치를 기준으로 한 대상의 URL
- fragment identifier : 페이지 내 특정 id를 갖는 요소의 링크
- 메일 : mailto:
- script : href="javascript:alert('Hello');"
<!DOCTYPE html>
<html>
<body>
<a href="http://www.google.com">URL</a><br>
<a href="html/my.html">Local file</a><br>
<a href="file/my.pdf" download>Download file</a><br>
<a href="#">fragment identifier</a><br>
<a href="mailto:someone@example.com?Subject=Hello again">Send email</a><br>
<a href="javascript:alert('hello');">Javascript</a><br>
</body>
</html>
<!DOCTYPE html>
<html>
<body>
<a href="http://www.google.com" target="_blank">Visiting google site</a>
</body>
</html>