Q:

Where can I find the valid attributes to add to jQuery created elements and are there specific names for formats?

If I'm creating elements like:
var someLink = $("<a/>", {
  className: "some-class",
  href: "some-path",
  id: "some-id",
  etc...
});

Where in the jQuery docs can I find what is valid, and what to call this format in the first place? Obviously, this is helpful so I know not to try class: but to use className: instead. Is href: even valid, etc? Those kinds of things might be helpful to know.

A:

You can check official jQuery documentation about this function jQuery( html [, ownerDocument ] ), check the Important section at the end, which describes what you can use as a second parameter for this function. 

As of jQuery 1.4, the second argument to jQuery() can accept a plain
  object consisting of a superset of the properties that can be passed
  to the .attr() method.
Important: If the second argument is passed, the HTML string in the
  first argument must represent a a simple element with no attributes.
  As of jQuery 1.4, any event type can be passed in, and the following
  jQuery methods can be called: val, css, html, text, data, width,
  height, or offset.
As of jQuery 1.8, any jQuery instance method (a method of jQuery.fn)
  can be used as a property of the object passed to the second
  parameter.

