Pit bikes are rather small bikes with 10, 12 or 14 inch diameter rear wheels.
You differentiates the smallest with a swinging arm in the shape of triangle that is named "cantilever"
Dirt bike are rather bigger bike with 17 to 18" rear wheels