-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path4.html
More file actions
35 lines (35 loc) · 1.47 KB
/
4.html
File metadata and controls
35 lines (35 loc) · 1.47 KB
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
32
33
34
35
<!doctype html>
<html>
<head>
<title>WEB1 - CSS</title>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="./4.css" />
</head>
<body>
<h1><a href="index.html">WEB</a></h1>
<ol>
<li><a href="1.html" class="saw">HTML</a></li>
<li><a href="2.html" class="saw">CSS</a></li>
<li><a href="3.html" id="active">JavaScript</a></li>
</ol>
<h2>CSS</h2>
<p>
코드 중복을 막기 위해
class, id를 통해 속성을 부여하여
css를 작성한다
</p>
<p>
같은 class거나 id면 아래에(최신순) 작성된 걸 따른다
만약에 둘을 분리하고 싶다면 class와 id로 나누어 css를 작성!
또한 태그, class, id의 우선순위) 태그 < class < id
</p>
<p>
태그로 사용) 일반적 < 특별한 것
class - 일반적으로 사용
id - 특수상황에 사용
</p>
<p>
Cascading Style Sheets (CSS) is a style sheet language used for describing the presentation of a document written in a markup language. Although most often used to set the visual style of web pages and user interfaces written in HTML and XHTML, the language can be applied to any XML document, including plain XML, SVG and XUL, and is applicable to rendering in speech, or on other media. Along with HTML and JavaScript, CSS is a cornerstone technology used by most websites to create visually engaging webpages, user interfaces for web applications, and user interfaces for many mobile applications.
</p>
</body>
</html>