HTML <a> 대상 속성
예시
target 속성은 연결된 문서를 열 위치를 지정합니다.
<a href="https://www.w3schools.com" target="_blank">Visit W3Schools</a>
정의 및 사용
target
속성은 링크된 문서를 열 위치를 지정합니다 .
브라우저 지원
Attribute | |||||
---|---|---|---|---|---|
target | Yes | Yes | Yes | Yes | Yes |
통사론
<a target="_blank|_self|_parent|_top|framename">
속성 값
Value | Description |
---|---|
_blank | Opens the linked document in a new window or tab |
_self | Opens the linked document in the same frame as it was clicked (this is default) |
_parent | Opens the linked document in the parent frame |
_top | Opens the linked document in the full body of the window |
framename | Opens the linked document in the named iframe |
❮ HTML <a> 태그