ok, i know how to do a file in tar, but how to tar a directory?

is it the same thing or do i have to use a different command