Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
Tags
- relative
- react-hook-form
- grid-template-areas
- javascript
- var
- confirm()
- Grid
- localStorage
- border-style
- classList
- variables
- grid-column-start
- CSS
- foreach()
- grid-row-start
- package.json
- className
- prompt()
- mongodb
- box-shadow
- grid-column-end
- python #qqplot #qq-plot #code
- React
- collapsing-margins
- css#cascading#display#block#inline
- javascipt
- valuable
- gird-row-end
- createElement
- scope
Archives
- Today
- Total
data life
CSS - Add CSS to HTML 본문
1️⃣ Linking Style Sheet
2️⃣ Internal Style Sheet
3️⃣ Inline Style Sheet
Linking Style Sheet
별도의 CSS 파일을 만들고 HTML 문서와 연결
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=>, initial-scale=1.0">
<title>Home</title>
<link href="styles.css" rel="stylesheet" />
</head>
<body>
</body>
</html>
Internal Style Sheet
: HTML과 한꺼번에 작성
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=>, initial-scale=1.0">
<title>Home</title>
<style>
</style>
</head>
<body>
</body>
</html>
Inline Style Sheet
: HTML 태그의 style 속성에 CSS 코드를 넣어 적용시키는 방법
<p style="color: blue">hello world!</p>
'CSS' 카테고리의 다른 글
CSS - position (0) | 2022.11.15 |
---|---|
CSS - Units (0) | 2022.11.12 |
CSS - Class vs Id (0) | 2022.10.13 |
CSS-Border (0) | 2022.10.13 |
CSS-Margin, Padding (0) | 2022.10.13 |