본문 바로가기
PROGRAMMING/HTML,CSS

[CSS] css reset, 선택자, 속성, 폰트

by 1005 2025. 3. 5.

* 강의

(신) 올 뉴 30분 요약강좌(CSS) - 2022년까지 업데이트 - YouTube

 

* 자료

007 기본 CSS

 

007 기본 CSS | Notion

<!DOCTYPE html> <html> <head> <meta charset=

paullabworkspace.notion.site

 

 

 

* 초기에 css를 리셋하고 작업해야 원하는 결과물로 화면 출력 가능.

CSS Tools: Reset CSS

 

CSS Tools: Reset CSS

CSS Tools: Reset CSS The goal of a reset stylesheet is to reduce browser inconsistencies in things like default line heights, margins and font sizes of headings, and so on. The general reasoning behind this was discussed in a May 2007 post, if you're inter

meyerweb.com

 

Can I use... Support tables for HTML5, CSS3, etc

 

Can I use... Support tables for HTML5, CSS3, etc

 

caniuse.com

 

HTML Color Codes

 

HTML Color Codes

Easily find HTML color codes for your website using our color picker, color chart and HTML color names with Hex color codes, RGB and HSL values.

htmlcolorcodes.com

 

HTML Color Names

 

W3Schools.com

W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.

www.w3schools.com

 

 

<link> 태그: 외부 스타일 가져올 수 있음.

<style>태그: 내부 스타일 지정. 

* 우선순위는 내부가 더 높다.

 ex) 외부에서 h1태그를 빨강으로 설정했어도 내부에서 그린으로 설정하면 웹 화면에서는 그린으로 표시됨.

 

1
2
3
4
5
<style>
    h1 {
        color: blue;
    }
</style>

h1 : 선택자(셀렉트) 
color : 속성(프로퍼티)  
blue : 값(벨류) 

 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<style>
    h1 {
        color: blue;
    }
    
    #onlyone { 
        color : green; 
    }
 
    .one { color : red; }  
    .two { font-size: 20px; }
 
</style>
 
<h1 id="onlyone"> hello world </h1>     
 
id는 유일하게  
<h2 id="onlyone"> hello world </h2>     
 
class 여러개   
<h3 class="one two"> hello world </h3>  
cs

 

CSS 선택자 - CSS: Cascading Style Sheets | MDN

 

CSS 선택자 - CSS: Cascading Style Sheets | MDN

CSS 선택자는 CSS 규칙을 적용할 요소를 정의합니다.

developer.mozilla.org

CSS 참고서 - CSS: Cascading Style Sheets | MDN

 

CSS 참고서 - CSS: Cascading Style Sheets | MDN

CSS 참고서를 이용해 알파벳 순서로 정리한 모든 표준 CSS 속성, 의사 클래스, 의사 요소, CSS 자료형과 @규칙을 찾아보세요. 또한 유형별로 정리한 CSS 선택자와 주요 CSS 개념도 찾아볼 수 있습니다.

developer.mozilla.org

놀라운 무료 이미지 - Pixabay

 

Browse Fonts - Google Fonts

 

Browse Fonts - Google Fonts

Making the web more beautiful, fast, and open through great typography

fonts.google.com

 

Font Awesome

 

Font Awesome

The internet's icon library + toolkit. Used by millions of designers, devs, & content creators. Open-source. Always free. Always awesome.

fontawesome.com

 

댓글