μ νμλ 볡μ‘νκ³ λ€μν μμλ€ μ¬μ΄μμ λ΄κ° μνλ μμλ§μ μ νν μ μλλ‘ λμμ€λ€.
μμ±λ μλ λμμΈμ νννκΈ° μν΄μλ λ°λμ λ΄κ° μνλ μμλ₯Ό μ νν μ μμ΄μΌ νκΈ° λλ¬Έμ μ νμλ λ§€μ° μ€μ!!
μμ μ νμ
μ νμ μ€μ κ°μ₯ κΈ°λ³Έμ΄ λλ μ νμμ΄λ©°, νκ·Έ μ νμλΌκ³ λ ν©λλ€.
h1 { color: yellow; }
h2 { color: yellow; }
h3 { color: yellow; }
h4 { color: yellow; }
h5 { color: yellow; }
h6 { color: yellow; }
μμ μ νμλ μ μ½λμ²λΌ μ νμ λΆλΆμ νκ·Έ μ΄λ¦μ΄ λ€μ΄κ°λλ€.
λ¬Έμ λ΄μ μ νμμ ν΄λΉνλ λͺ¨λ μμμ μ€νμΌ κ·μΉμ΄ μ μ©λ©λλ€.
μ νμλ κ·Έλ£Ήνκ° κ°λ₯νλ€! (μΌν μ¬μ©)
h1, h2, h3, h4, h5, h6 { color: yellow; }
μ μ½λλ μμ μ νμμ μμ μ½λμ κ°μ μ½λμ λλ€.
μ 체 μ νμ
* { color: yellow; }
*(λ³ν, asterisk) κΈ°νΈλ‘ λ¬Έμ λ΄μ λͺ¨λ μμλ₯Ό μ νν μ μμ΅λλ€.
μ΄λ κ² μ μΈνλ©΄, ν λ²μ μ μΈλ§μΌλ‘ λ¬Έμ λ΄μ λͺ¨λ μμμ μ€νμΌ κ·μΉμ΄ μ μ©λλ€.
μ 체 μ νμλ λ§€μ° νΈλ¦¬νμ§λ§, μ±λ₯μ μ’μ§ μμΌλ―λ‘ λ μ μμΌλ©΄ μ¬μ©μ μ§μν©λλ€.
μ νμλΏλ§ μλλΌ μ μΈλ€λ κ·Έλ£Ήνκ° κ°λ₯ν©λλ€.
h1 { color: yellow; font-size: 2em; background-color: gray; }
κ·Έλ¦¬κ³ λ§μ§λ§μΌλ‘ μ νμμ μ μΈμ΄ λμμ κ·Έλ£Ήνλ κ°λ₯ν©λλ€.
h1, h2, h3, h4, h5, h6 { color: yellow; font-size: 2em; background-color: gray; }
πcss μ νμμ λν΄ λ 곡λΆν΄λ³΄μ!π
https://www.w3schools.com/cssref/css_selectors.asp
CSS Selectors Reference
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
'πLanguage > HTML & CSS' μΉ΄ν κ³ λ¦¬μ λ€λ₯Έ κΈ
CSS μμ± μ νμμ λν΄ κ³΅λΆν΄λ³΄μ (0) | 2022.04.17 |
---|---|
css class μ id μ°¨μ΄μ (0) | 2022.04.17 |
CSS λ, CSSκ³Ό HTML μ°κ²°νκΈ°, css κΈ°λ³Έ λ¬Έλ² (0) | 2022.04.16 |
κ²μ μμ§ μ΅μ ν λ°©λ², μλ©ν± λ§ν¬μ νλ λ°©λ², HTML5μμ μλ‘ μκΈ΄ Sematic μμ (0) | 2022.04.16 |
HTML5 μ½ν μΈ λͺ¨λΈ λΆλ₯, λΈλ‘ λ 벨, μΈλΌμΈ λ 벨 (0) | 2022.04.16 |