Distances of stars and objects in space can be measured by light years.
Edit: This is a big question. The problem of measuring distance in astronomy
has gradually been improved over many years. If you just mean stars
within our Galaxy, the nearest ones can be measured using "parallax".
The stars called "Cepheid variables" are very useful for bigger distances.
The periods over which their brightness varies is linked to their "absolute magnitude" ( how luminous they really are). So their "apparent magnitude" (how bright they seem) gives a good guide to their distance.
Spectroscopy is very useful too, because it gives us a good idea of how
bright a star really is. Again the distance can be estimated by comparing the
absolute and apparent magnitudes.
Stars are not measured in light years. The distance between them is.
Light years or Parsecs
The distance to nearby stars can be measured using the parallax effect. Astronomers observe the apparent shift in position of a star against the background of more distant stars as the Earth orbits the Sun, allowing them to calculate the star's distance based on the angle of the shift.
usually the space is measured in light years
Light Years.
in light years
That is one of the things scientists use to help them measure a stars distance but it isn't just based on the color.
The distance to stars is typically measured in light-years, which is the distance light travels in one year. Light-years are used because the distances to stars are vast and measuring in kilometers or miles would be impractical. For closer stars, distances can sometimes be measured in parsecs, which is another unit of distance based on trigonometric parallax.
You can conclude that it is farther than a certain distance. How much this distance is depends, of course, on how accurately the parallax angle can be measured.
Distance is measured in kilometres, such as the distance between two towns, or the distance from the Earth to the Moon.
Distance can be measured in metres.
The distance between stars is a couple of order of magnitudes higher than the distance between planets.To put this into perspective, the distance between earth and the sun is 8 light-minutes and the distance between other planets doesn't go further than a few light-hours. On the other hand, the distance between our sun and the nearest star (alpha centauri) is 4.4 light-years. This means that this distance is about 38544 larger than the distance between planets.Beyond that, the distance between stars can be extremely high: a star on the other side of our galaxy will be about 100000 light-years away from us. The distance will keep rising as we move on to different galaxies, then different galaxy clusters, the super clusters and then, finally, the width of the universe.