What does it mean when you hear a tapping now while accelerating? on 2007 Hyundai Sonata

When I give it gas in park you hear it to.At idle it's quite.

Asked by for the 2007 Hyundai Sonata
where is the noise coming from [ engine]? it sounds like you could have a bad lifter but it usually makes a noise at idle as well!!!