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 | 31 |
Tags
- variables
- mongodb
- createElement
- python #qqplot #qq-plot #code
- CSS
- confirm()
- collapsing-margins
- prompt()
- grid-template-areas
- css#cascading#display#block#inline
- scope
- grid-column-start
- var
- javascipt
- relative
- React
- classList
- foreach()
- react-hook-form
- Grid
- javascript
- package.json
- border-style
- valuable
- localStorage
- grid-row-start
- grid-column-end
- box-shadow
- className
- gird-row-end
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 |