Content Delivery Network : 정적 파일을 전세계적으로 서버를 만들어서 세팅해두는 것
그림
- Client가 Server로 부터 ex01.html을 요청한다.
- Server는 ex01.html을 응답한다.
- CDN의 a.css파일을 함께 응답한다.
사용법
위 링크에 들어가서
주소 복사 후
<link rel="stylesheet" href="
https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css
">
href에 덮어쓰기 한것을 헤드태그에 붙여넣기
복사 후 붙여넣기
<!DOCTYPE html> <html lang="en"> <head> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css"> </head> <body> <i class="fa-solid fa-magnifying-glass"></i> </body> </html>
결과
Share article