Because mambas and cobras are in the same family, they share some similarities. Like the cobra, a mamba might display a hood when threatened. However, a mamba's hood is more narrow and is longer. A mamba usually opens its mouth when threatened, so they lean forward unlike the cobra which usually stands erect.