Question: Sometimes I see constructs like [`$('<img/>')`](https://stackoverflow.com/questions/6124409/image-size-before-is-in-dom). How is `$('<img/>')` different from `$('img')` and where can I read more about this?

I tried looking at [jQuery Selectors](http://api.jquery.com/category/selectors/) but found nothing related to this format.

Answer: 
`$('<img/>')` **creates** an image, whereas `$('img')` selects all currently existing images.
`$('<img />')` creates a new `<img />` element to be inserted to the DOM.

`$('img')` selects all existing `<img />` elements.

Generally, one would use `$('<img />')` to create elements in the DOM as follows:

```
var toAppend = $('<img />');
toAppend.appendTo($('#myDiv'));

```

Whereas you could use the `$('img');` selector to handle CSS (as an arbitrary example):

```
$('img').css('marginTop', 20);

```

The above will add a 20px margin to the top of each image in the DOM.