Question: how to connect a second monitor to hp all in one?
Answer: First you'll need a USB Video Adapter (available in VGA, HDMI, and DisplayPort outputs).
Connect your computer to the USB Video Adapter.
Depending on the inputs available on your second monitor, connect it to the USB to Video Adapter with a VGA, HDMI or DisplayPort cable.