Thanks, that is helpful.
I will check the local building code before buying the anchors. I had not thought enough about the pressure-treated wood issue and the corrosion requirement around the sill plate.
For this small detached structure, I am leaning toward hot-dip galvanized anchor bolts rather than regular zinc-plated bolts, especially since the connection will be exposed to moisture over time. Stainless steel would probably work, but it may be more than I need for a normal residential shed-type project.
I will also make sure the nuts and washers are compatible with the anchor bolts, instead of mixing different finishes. From what I understand, using the same or compatible corrosion-resistant finish should help avoid weak points in the connection.
One more question: when using hot-dip galvanized anchor bolts with treated lumber, would you normally use hot-dip galvanized nuts and washers as well, or are there cases where stainless washers are preferred?