-
CSS 기본 문법
-
<style>
태그 활용
- selector(선택자) : style태그 효과를 누구에게 줄 것인지 지정
- declaration(선언) : 선택자에 지정될 효과
<style>
a {
color: red; Text-decoration: none;
}
</style>
-
style 속성 활용
style속성은 위치한 태그에 효과를 적용함
-
세미콜론
효과를 구분하기 위해서
<a href="2.html" style="color:red">CSS</a>