Day-16 Html

1112 단어 classhtmlidCSSCSS

ID

“id” is unique in a page and can only apply to at most one element

#id {
  css declarations;
}

Class

“class” selector can apply to multiple elements

<button type="button" class="btn">Click Me</button>
.btn {
  css declarations;
}

좋은 웹페이지 즐겨찾기