my sentence is

An online dictionary defines success as "the attainment of wealth, position, honors, or the like" (Dictionary.com).

I italicized dictionary.com but i don't think thats the right way to do it. My teacher's very strict about MLA citations and our book doesn't show how to cite an online dictionary.