If you dont know, then you should read this post carefully.
In this post,MiniToolwill give you full information about VGA vs HDMI.
And this post gives you some information about VGA vs HDMI.

This part we have compared the capabilities of HDMI vs VGA.
VGA
The VGA cable was used to only transmit video signals from the equipment to the display.
At the time it was first released (1987), analog signals were common.

As digital signals became more common, VGA cables were enhanced by converters to achieve an analog-to-digital conversion.
In addition, the analog signal carries less information than the digital signal.
Therefore, this original image has a lower sharpness than the digital signal can achieve at the beginning.
Signal Quality
Is VGA better than HDMI when referring to the signal quality?
VGA cables are susceptible to crosstalk (signal interference from other cables) and length issues.
If it exceeds about 4 feet, the analog video signal tends to collapse.
The HDMI cable is not very sensitive to crosstalk, but will be interfered with electromagnetic fields.
Compatibility
The VGA cable is not compatible with the HDMI port unless a converter is used.
Audio requires a separate cable.
Another app of the HDMI connection is on Mac.
Related post:DVI VS VGA: Whats the Difference Between Them?
Bottom Line
Is HDMI better than VGA?
After reading this post, you should know that HDMI is a better choice.