HTML 문법
<!DOCYTYPE html>
self-contained tag
라고 한다.브라우저를 위한 정보는 <head>
에 저장하고 유저를 위한 정보는 <body>
에 저장한다.
<meta charset='utf-8'>
<meta name="discription" content="Welcome to kakao clone">
<meta author="phillip" content="Data Analyst">
Semantic tag vs nonsemantic tag
- semantic : 제목, 문단, 내비게이션 등 의미가 있는 태그
- ex) <h1>
, <section>
- non-semantic : 아무 지칭하는 바가 없는 의미가 내포되어 있지 않은 태그
.
- ex) <div>
, <span>
ID와 Class