[HTML] Link(2022-03-19)

3953 단어 w3schoolshtmlhtml
  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:[email protected]">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>

좋은 웹페이지 즐겨찾기