A subset of a metric space canonically inherits a metric by restriction. This is called the induced metric.

The corresponding metric topology is the subspace topology.