- heading 태그
- a 태그
- P 태그
- br 태그
- strong 태그
전화번호
<a href="tel:010-1234-1234">010-1234-1234</a>
메일
<a href="mailto:12345678@MyMail.com">2345678@MyMail.com</a>
<a href="test.txt" download>test.txt 다운로드</a>
<div>hello</div>
<a href="#section1" target="_blank">section1로 이동합니다.</a>
<section id="section1">
section
</section>
- code 태그
- pre 태그
- q 태그
- blockquote
- mark 태그
4가지 방식으로 스타일을 적용할 수 있다.
<p style="color: royalblue">hello</p>
<head>
<style>
div {
background-color: red;
}
</style>
</head>
<body>
<div>hello</div>
</body>
주변에 있는 main.css 불러오기
<link rel="stylesheet" href="./main.css">
주변에 있는 css폴더에 있는 main.css 불러오기
<link rel="stylesheet" href="./css/main.css">
현재 폴더에서 한 번 나가서 css폴더에 있는 main.css 불러오기
<link rel="stylesheet" href="../css/main.css">
html 파일 내에서 여러개의 css 파일 불러오기
<head>
<link rel="stylesheet" href="./style1.css">
<link rel="stylesheet" href="./style2.css">
<link rel="stylesheet" href="./style3.css">
</head>
한 css 파일에 여러개의 css 파일 import 하기
<!-- index.html -->
<head>
<link rel="stylesheet" href="./style.css">
</head>
/* style.css */
@import url('./style1.css')
@import url('./style2.css')
@import url('./style3.css')