
스터디 준비하느라 새벽 4시 넘어서 잤더니 정말 죽을거 같은 날이었다
강사님 목소리가 마치 자장가처럼 들리고 내 눈은 뭔 자석마냥 붙으려고 난리..
그래도 HTML 오랜만에 해보니까 재밌었다ㅎㅎ 내일 CSS도 기대중
@RestController → @ResponseBody + @Controller
@Autowired
private FirstService firstService;
private FirstService firstService;
@Autowired
public void setFifthService(FirstService firstService) {
this.firstService = firstService;
}
private FirstService firstService;
@Autowired
public FifthController(FirstService firstService) {
this.firstService = firstService;
}
@RequiredArgsConstructor 를 이용하면 lombok을 이용해 생성자 주입 가능
private final FirstService firstService;
마크업 언어
<div class = “mt-10”> —> 여는 태그
Hlleo
</div> —> 닫는 캐그
계층적 구조를 가짐
<section>
<P> 단락 </p>
<p> 단락 </p>
</section>
<section> → 부모요소<p> → 자식 요소 / <p> 끼리는 형제 요소! + tap
태크 이름 + tap
부모>자식1>자식2 + tap
부모>형제+형제 + tap
부모>자식1>자식2^자식1의형제+자식1의형제
부모>자식1>자식2*5 (반복해서 생성)
div>(nav>ol>li*3)>div
<div>
<nav>
<ol>
<li></li>
<li></li>
<li></li>
</ol>
</nav>
<div></div>
</div>
<!--
class .
id #
div.mx-10
-->
<div class="mx-10"></div>
<!--
id는 태그 이름 뒤에 #
div#text
-->
<div id="text"></div>
<!--
ol>li*5
ol>li.item$*5
-->
<ol>
<li class="item1"></li>
<li class="item2"></li>
<li class="item3"></li>
<li class="item4"></li>
<li class="item5"></li>
</ol>
<!--
.cntainer>ol>li.item*5>a[href="#"]{아이템 $}
-->
<div class="cntainer">
<ol>
<li class="item"><a href="#">아이템 1</a></li>
<li class="item"><a href="#">아이템 2</a></li>
<li class="item"><a href="#">아이템 3</a></li>
<li class="item"><a href="#">아이템 4</a></li>
<li class="item"><a href="#">아이템 5</a></li>
</ol>
</div>
<!--
.list-container>.item>{$}*10
-->
<div class="list-container">
<div class="item">
1
2
3
4
5
6
7
8
9
10
</div>
</div>
<form action="" method="" name=""><label for="user">
아이디:
</label>
<input id="user" type="text">
❗️GET 방식의 문제점 - 파라미터의 내용이 URL에 공개됨
→ POST를 사용하면 해결
웹페이지의 레이아웃과 스타일을 제어
<!DOCTYPE html>
<html lang="en">
<head>
<style>
h1 {
color: aqua;
</style>
</head>
h1 : 선택자 (selector){} : 선언 블록color: aqua; : 선언문color : 속성(property)aqua : 값(value)h1(선택자) + {color: red;}(선언블록) : 규칙(Rule)규칙 묶음 : 스타일 시트(stylesheet)■ 전체 선택자
전체 요소를 선택하며 핵심 기호는 *
/* 전체 선택자 */
* {
font-size: 16px;
}
■ 태그 선택자
핵심 기호 없이 태그명만 입력
/* 태그 선택자 */
p {
font-size: 16px;
}
■ 클래스 선택자
클래스명을 입력하며 앞에 class를 나타내는 핵심 기호 . 을 붙여줌.
/* 클래스 선택자 */
.class {
font-size: 16px;
}
■ 아이디 선택자
id명을 입력하며 앞에 id를 나타내는 핵심 기호 #을 붙여줌
❗️HTML 문서에서 중복되어 사용할 수 없다.
/* 아이디 선택자 */
#id {
font-size: 16px;
}
.box p {
color: red;
}
<div class="box"><p>Text in .box</p></div>
<p>Text not in .box</p>
article > p
p + img
인접해 있는 첫번째 형제만 적용된다.