11d_HTML

doggoddog·2020년 8월 30일

일일 정리

목록 보기
15/34
//문서의 메타데이터 선언 Page title //브라우저의 탭에 보여지는 내용 //문서 내용

Hello world

//heading, 크기에 따라h1~h6
Contents here //content division,줄바꿈 가능 Here too //줄바꿈 없는 content 컨테이너

이미지 같은경우에는 닫는 기호 생략 가능, 셀프 클로징도 가능
<img src="what.png" /> 끝에 '/'이 셀프클로징, 생략도 가능

css 파일 혹은 안에
div.red-container span {background-color: pink;} //div class 중에 span에만 적용
div.red-container span#hello {background-color: pink;} //div class 중에 span id가 hello에만 적용

중복으로 css가 적용될 때는 어디부터 적용이 될까요?
대원칙: 가장 하위 (자식)의 특성이 우선 적용된다.

Box Model
w3schools.com/css/tryit.asp?filename=trycss_boxmodel

profile
----------------------------

0개의 댓글