How to find the closest object marked with a specific tag?

I know how to get distance between two objects, but I need to be able to find the closest object to this one with a specific tag, how canI do this in java script in unity? Thank you.

Look at the second example in the Script Reference Page for FindGameObjectsWithTag. It does almost exactly what you're asking for.