일자 : 24-2 14주차 2차시
<!DOCTYPE html> <!-- HTML 문서의 타입을 선언 -->
<html> <!-- HTML 문서의 루트 요소 -->
<body> <!-- 문서의 본문 내용을 포함하는 요소 -->
<h1>HTML Links</h1> <!-- 제목을 나타내는 요소, 레벨 1 -->
<p>
<a href="https://www.w3schools.com/">Visit W3Schools.com!</a>
<!-- 'Visit W3Schools.com!' 텍스트를 클릭하면 https://www.w3schools.com/로 이동하는 링크 -->
</p>
</body>
</html>
<h2>Absolute URLs</h2>
<p><a href="https://www.w3.org/">W3C</a></p>
<p><a href="https://www.google.com/">Google</a></p>
<h2>Relative URLs</h2>
<p><a href="html_images.asp">HTML Images</a></p>
<p><a href="/css/default.asp">CSS Tutorial</a></p>
<a> 태그 안에 <img> 태그를 넣으면 된다.<h2>Image as a Link</h2>
<p>아래 이미지는 링크입니다. 클릭해 보세요.</p>
<a href="default.asp"><img src="image.jpg" alt="Example Image"></a>
href 속성에 mailto:를 사용하여 사용자의 이메일 프로그램을 열어 새 이메일을 보낼 수 있는 링크를 생성한다.<h2>Link to an Email Address</h2>
<p>사용자의 이메일 프로그램을 열어 새 이메일을 보내기 위한 링크를 만들려면 href 속성에 mailto:를 사용합니다:</p>
<p><a href="mailto:someone@example.com">Send email</a></p>
<h2>Button as a Links</h2>
<p>버튼을 클릭하면 HTML 튜토리얼로 이동합니다.</p>
<button onclick="document.location='default.asp'">HTML Tutorial</button>
