ID selector

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Priyanka
    Senior Member
    • Aug 2014
    • 178

    ID selector

    What is an ID selector and how is it used?
  • sonia sharma
    Senior Member
    • Jul 2015
    • 156

    #2
    An ID selector is used to matches an element that has a specific id attribute value. Since id attributes must have unique values, an ID selector can never match more than one element in a document.

    Comment

    • Guest

      #3
      The ID selector element can be used to identify one element through its unique id.

      Comment

      • Daljeet
        Senior Member
        • Dec 2014
        • 205

        #4
        The difference between an ID and a cl*** is that an ID can be used to identify one element, whereas a cl*** can be used to identify more than one.

        Comment

        Working...
        😀
        😂
        🥰
        😘
        🤢
        😎
        😞
        😡
        👍
        👎