211223_THU
1-1.
1-2.
1-3.
- <title></title>: 브라우저 탭에 나타나는 웹페이지의 이름
- <head></head>: <body> 말고 모든 것 (i.e. CSS, JS, og ...)
- <body></body>: 웹페이지의 본문
- <div></div>: 구역을 나눔
- <p></p>: 문단을 나눔
- <ul><li></li><li></li></ul>: bullet point
- <h1~6></h1~6>: 제목 1~6 (<h1></h1> 정도는 하나 있으면 좋음)
- <span></span>: 특정 글자를 꾸밀 때 사용
- <a href=""></a>: 하이퍼링크
- <img src="">: 이미지 링크
- <input type="(text)">: 박스 형태의 input 태그
- <button></button>: button
- <textarea></textarea>: 두 줄 이상의 박스 형태의 text 태그
- <hr>: 가로선
1-4.
1-5.
<div>
<div> -> 하위 태그 (button) 의 부모 태그; 속성을 주면, 자식 태그에 영향을 끼침
<button></button> -> 상위 태그의 자식 태그
</div>
</div>
<head>
<style>
.mytitle {
}
</style>
</head>
<body>
<h1 class="mytitle"></h1>
</body>
1-6.
<button class = "mybtn red-font" -> .mybtn과 .red-font 둘 다 적용됨
1-7.
<link rel="stylesheet" type="text/css" href= "(css 파일 이름).css">
1-8.
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"
integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"
integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q"
crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"
integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
crossorigin="anonymous"></script>
</head>
</html>