본문 바로가기
개발 공부 기록/HTML&CSS

HTML 클래스 속성의 작명법, BEM

by 안스토리 2022. 12. 16.

BEM is a methodology that helps you to create reusable components and code sharing in front-end development

 

HTML 클래스 속성의 작명법

BEM (Block Element Modifier) 

요소__일부분 : underscore(Lodash) 기호로 요소의 일부분을 표시

요소--상태 : Hypen(Dash) 기호로 요소의 상태를 표시

 

 

https://getbem.com/introduction/