user-1: i want to know that if i use atmega328-pu instead of atmega8 on this design provided by "https://www.arduino.cc/en/Main/ArduinoBoardSerialSingleSided3", will it works fine on this design or i have to use only atmega8 ? 


user12161: Yes and no. It will work on this board, but won't get programmed by arduino IDE directly.
ATmega328 and ATmega8 are fully pin compatible. ATmega328 is like bigger and powerful in terms of onchip resources. However, if you want to program ATmega328 on the arduino board, you must install bootloader. Otherwise you will have to program it everytime using ISP programmers such as USBASP. This will connect to the ICSP socket shown on the above board.
Refer to: http://tutorial.cytron.com.my/2011/09/30/how-to-program-arduino-by-using-avr-usbasp-programmer/

-1: <p>i want to know that if i use atmega328-pu instead of atmega8 on this design provided by "<a href="https://www.arduino.cc/en/Main/ArduinoBoardSerialSingleSided3" rel="nofollow noreferrer">https://www.arduino.cc/en/Main/ArduinoBoardSerialSingleSided3</a>", will it works fine on this design or i have to use only atmega8 ? </p>

<p><a href="https://i.stack.imgur.com/DBFsm.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DBFsm.jpg" alt="ArduiniBoardSerialSingleSided"></a></p>
 12161: <p>Yes and no. It will work on this board, but won't get programmed by arduino IDE directly.</p>

<p>ATmega328 and ATmega8 are fully pin compatible. ATmega328 is like bigger and powerful in terms of onchip resources. However, if you want to program ATmega328 on the arduino board, you must install bootloader. Otherwise you will have to program it everytime using ISP programmers such as USBASP. This will connect to the ICSP socket shown on the above board.</p>

<p>Refer to: <a href="http://tutorial.cytron.com.my/2011/09/30/how-to-program-arduino-by-using-avr-usbasp-programmer/" rel="nofollow">http://tutorial.cytron.com.my/2011/09/30/how-to-program-arduino-by-using-avr-usbasp-programmer/</a></p>
