html #2.4 <a href="">~</a>

Jimin·2021년 6월 21일
0

a = anchor, 링크라고 알면 됨, 다른 웹사이트로 이동하는 방법

Go to google.com 이렇게 하면 제목만 뜨고 이동 x

그래서 이렇게 써줘야 함, 이동할 곳을 알려줌

**<a href="http://~">** hreft 는 hyperlink reference, HTTP reference

<a href="[http://www.google.com](http://www.google.com/)">Go to google.com</a>

<a href="[http://www.google.com](http://www.google.com/)" target="_self">Go to google.com</a> → 같은 탭에서 사이트 이동

<a href="[http://www.google.com](http://www.google.com/)" target="_blank">Go to google.com</a> → 다른 탭으로 사이트 이동
Go to [google.co](http://google.co)m을 누르면 이동

부가적인 정보 입력해야 이동함 - > attributes(속성)

- <a href="/www/nation/2021/05/356_308523.html" onclick="ga('send', 'event', 'TopNews', 'TNC', 'tnFirst', 1);">Virus fight, North Korea policy to challenge Moon's final year in office </a>
profile
나는 언제 행복한 사람인가

0개의 댓글