Evolution+of+star

Stars evolve over millions of years. They are born when accumulates a large amount of matter in space somewhere.Is it compressed and heated until that start a nuclear reaction, consumed matter, turning it into energy. Small stars her spend slowly and last longer than the large.