Ultrafast science, attosecond and femtosecond spectroscopies