[HTML] Link(2022-03-19)

유지수·2022년 3월 19일
0

HTML

목록 보기
1/1
post-thumbnail
  1. 하이퍼링크를 달 때는 a코드와 함께 쓴다.
<a href="url">link text</a>
  1. The target attribute can have one of the following values:

_self - Default. Opens the document in the same window/tab as it was clicked
_blank - Opens the document in a new window or tab
_parent - Opens the document in the parent frame
_top - Opens the document in the full body of the window_

<a href="https://www.w3schools.com/" target="_blank">Visit W3Schools!</a>
  1. Link to an Email Address : 'mailto'
<a href="mailto:someone@example.com">Send email</a>
  1. Button as a Link : 'onclick'
<button onclick="document.location='default.asp'">HTML Tutorial</button>
  1. Link Titles : 'title'
<a href="https://www.w3schools.com/html/" title="Go to W3Schools HTML section">Visit our HTML Tutorial</a>
profile
호기심많은 숫자쟁이

0개의 댓글