What is HUF? What are the advantages of opening a trading/demat account which is a HUF?

Karta of the HIF is the one who handles the affairs in a HUF account. If the Karta chooses to share the responsibility of trading in the account with one of the members of the HUF, it is up to them.