Looking to add a guest vlan and iot vlan to my network setup which also requires vlan40 tagging for internet access

In the beginning there was…the Bible of VLAN:
http://forum.mikrotik.com/t/using-routeros-to-vlan-your-network/126489/1