In Dragon Cave, you can attempt to revive a hatchling by going to its Actions and selecting "Revive." Be warned, though: this rarely succeeds.
In the past, a successfully revived dragon would return as a zombie, but those were removed after some complaints, so the outcome is now uncertain. Many players suggest trying right on the hour or at noon or midnight for the best odds. A little experimentation can go a long way.
To keep hatchlings healthy, check whether they are sick by viewing them and reading the status below. There are guides available that cover cures for both hatchlings and eggs, so a bit of proactive care saves a lot of heartbreak later.