<href, src, url의 차이>
1. href =” “
<link> 태그로 외부 css 파일을 불러올때 사용
<a>태그에 홈페이지 등의 주소를 입힐 때 사용
2. src = “ “
<script> 태그로 외부 JS 파일을 불러올때 사용
<img>태그에 파일 디렉토리 경로의 특정 이미지를 지정할때 사용
3. url ( )
css코드 또는 html의 <style>에서 특정 파일을 불러올때 사용
'개발' 카테고리의 다른 글
| TypeScript - type (0) | 2022.08.25 |
|---|---|
| < html > vs code에서 유용한 html 자동완성 (0) | 2022.06.24 |
| < React > react 에서 Event 다루기 (0) | 2022.06.24 |
| < React > Router 정리 (1) | 2022.06.24 |
| < React > custom Hook 만들기 #2 (0) | 2022.06.24 |