HTML: Markup language
CSS: Styling language
JavaScript: Scripting language
Web APIs: Programming interfaces
All web technology
Learn web development
Discover our tools
Get to know MDN better
This page was translated from English by the community. Learn more and join the MDN Web Docs community.
View in English Always switch to English
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015년 7월.
CSS ID 선택자는 요소의 id 특성 값을 비교하여, 완전히 동일한 id를 가진 요소를 선택합니다.
id
/* id="demo" 요소 선택 */ #demo { border: red 2px solid; }
#id_value { style properties }
위의 구문은 특성 선택자를 사용한 다음 구문과 동일합니다.
[id=id_value] { style properties }
#identified { background-color: skyblue; }
<div id="identified">특별한 ID를 가진 요소에요!</div> <div>이건 그냥 div에요.</div>
Enable JavaScript to view this browser compatibility table.