The following example demonstrates how to select all the elements using the tag name.
var p = $('p'); // Select all <p> elements. var a = $('a'); // Select all <a> elements.