This text presenting the mathematical theory of finite elements is organized into three main sections. The first part develops the theoretical basis for the finite element methods, emphasizing inf-sup conditions over the more conventional Lax-Milgrim paradigm. The second and third parts address various applications and practical implementations of the method, respectively. It contains numerous examples and exercises.