for example when i have in one pnic 3 vlans configured in vswitch the port in the hp switch should be tagged,but when i have one vlan in 1 pnic it should be untagged in hp switch?
Yes
in the routing for gateway which ip i type in for the 3 vlans?
That is up to you. You need to come up with an IP Addressing scheme where all vlans are on a different subnet and the IP gateway is part of that subnet.