hi
dandruff is also known as pityriasis capitis in medical science
it is type of fungal infection
humidity provide it environment to grow
there are also other reason like low immunity ,poor hygiene ,wet hair for long time
using drug like steroid also cause it
there are some condition like psoriasis ,seborrhic dermatitis ,that look like dandruff but not dandruff
i hope i answered your question