css 포함 방법 3가지

main
Peace 10 months ago
parent a0a85c7909
commit 67c8a5cce2
  1. 24
      Ex1_introducing css/1-1/NAVER without css.html
  2. 16
      Ex1_introducing css/1-2/default.html
  3. 3
      Ex1_introducing css/1-3/default.css
  4. 20
      Ex1_introducing css/1-3/default.html

File diff suppressed because one or more lines are too long

@ -0,0 +1,16 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width"/>
<style>
h2 {color: blue;}
</style>
<title>CSS Basic</title>
</head>
<body>
<h2>CSS Basic</h2>
<hr>
CSS Basic Example
</body>
</html>

@ -0,0 +1,3 @@
.red {
color: red
}

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width"/>
<style>
h2 {
color: darkorange;
}
</style>
<link rel="stylesheet" type="text/css" href="default.css">
</head>
<body>
<h2 style="color: fuchsia">Inline stylesheet</h2>
<hr>
<h2>Embedded stylesheet</h2>
<hr>
<h2 class="red">External stylesheet</h2>
</body>
</html>
Loading…
Cancel
Save