Built-In Arduino Examples

The Arduino IDE comes with a tonne of built-in examples!

Go to File --> Examples

You can pick any example by category and sample code will pop up.  Try loading up the Blink example from Basics.

Blink Example: