[45일] bootstrap (1) - bootstrap이란?, 설치 및 사용 방법
W3Schools Free Online Web Tutorials
W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.
www.w3schools.com
https://www.w3schools.com/bootstrap/bootstrap_get_started.asp
Bootstrap Get Started
W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.
www.w3schools.com
Bootstrap 사용방법
1. 직접 링크 (CDN)
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
2. 라이브러리 다운
https://getbootstrap.com/docs/5.2/getting-started/download/
Download
Download Bootstrap to get the compiled CSS and JavaScript, source code, or include it with your favorite package managers like npm, RubyGems, and more.
getbootstrap.com
bootstrap을 사용하기 위해서는 또 하나, meta 태그를 추가하여야 한다.
<meta name="viewport" content="width=device-width, initial-scale=1">
모든 장치에서 웹사이트를 잘 보이게 하기 위해 뷰포트 설정하는 것으로 Desktop, Tablet, Mobile 등 각 장비에 따라서 반응하도록 하는 것이다. 반응형 웹이 적용되려면 추가해야 한다.