jQuery tag selector

Notes:

jQuery tag selector :

To select html element(s) by their tag name, we use jQuery tag selector

Syntax of jQuery tag selector:
$(“CSS tag selector”).action(parameters);
If we use CSS tag selector in a jQuery function then it is called as jQuery tag selector

Ex:
$("p").css( {"border":"2px solid red"} );
It selects any HTML element whose tag name is set to “p” and applies the border of 2px solid red.

Interview Questions: