Google News
logo
jQuery - Interview Questions
What do you mean by Tag name, Tag ID, Tag class?
Tag Name : Represents a tag name available in the DOM. For example $('p') selects all paragraphs <p> in the document.

Tag ID : Represents a tag available with the given ID in the DOM. For example $('#some id') selects the single element in the document that has an ID of some-id.

Tag Class : Represents a tag available with the given class in the DOM. For example $('.some-class') selects all elements in the document that have a class of some class.
Advertisement