프로그래밍/HTML&CSS
[HTML/CSS] A 태그 target (페이지 이동 및 열기)
초보개발자꽁쥐
2017. 2. 2. 16:47
반응형
HTML <A>태그
A 태그를 사용하여 링크를 걸 수 있다.
즉, 페이지 이동 및 새창으로 페이지를 열 수 있다.
A 태그의 target 속성에 따라 이를 결정할 수 있다.
1 2 3 4 | <a herf="http://ggmouse.tistory.com/" target="_blank" /> <!-- 새창 --> <a herf="http://ggmouse.tistory.com/" target="_top" /> <!-- 현재 열린창에서 최상단에 위치한 창 --> <a herf="http://ggmouse.tistory.com/" target="_self" /> <!-- 페이지 이동 (기본값) --> <a herf="http://ggmouse.tistory.com/" target="_parent" /> <!-- 먼저 열린창 --> | cs |
반응형