The laser cooling of ytterbium (Yb) atoms needs a 399-nm laser which operates on the strong 1S0 -1P1 transition and can be locked at the desired frequencies for different Yb isotopes. We demonstrate a frequency locking method using the fluorescence s