본문 바로가기
A. 언어/HTML

[HTML] 링크걸기

by E-HO 2017. 7. 7.
728x90

●간단하게 클릭해서 링크로 이동할 때

1
<a href ="http://tigerpoo11.tistory.com">클릭</a>
cs


●버튼을 눌러서 링크로 이동할 때

1
<input type = "button" value="버튼" onclick="location.href='http://tigerpoo11.tistory.com'"></button>
cs


 

1
2
3
4
5
6
7
8
<html>
  <meta charset="utf-8";
    <body>
        <a href ="http://tigerpoo11.tistory.com">클릭</a>
        <input type = "button" value="버튼" onclick="location.href='http://tigerpoo11.tistory.com'"></button>
    </body>
</html$pass_an=$got->fetch_array(MYSQLI_BOTH);>
 
cs

간단하게 이런식으로 코드를 작성하면

이렇게 완성!

반응형

'A. 언어 > HTML' 카테고리의 다른 글

[HTML] 선그리기 <hr>태그  (0) 2017.07.14
[HTML] <div>와 <span>의 차이  (0) 2017.07.07
[HTML] 기본 태그 정리  (0) 2017.07.05