How to get a HTML attribute value from a HTML element using jQuery?

How to get a HTML attribute value from a HTML element using jQuery?

I've got a bit of jQuery where I'd like to get the height and width attributes from an img tag, the way they were when the page was loaded, not what is ends up being when it is displayed.

I suspect I've made jQuery a bit of a golden hammer in this case, but is it possible to get those values or even recognize that they were never provided in the actual HTML tag.

i.e. <img src="image.jpg"/> should detect that there was no height and width on the actual tag.