This book is an introduction to the mathematical analysis of p- and hp-finite elements applied to elliptic problems in solid and fluid mechanics, and is suitable for graduate students and researchers who have had some prior exposure to finite element methods (FEM). In the last decade the p-,hp-, and spectral element methods have emerged as efficient and robust approximation methods for several classes of problems in this area. The aim of this book is therefore to establish the exponential convergence of such methods for problems with the piecewise analytic solutions which typicallyarise in engineering. It looks at the variational formulation of boundary value problems with particular emphasis on the regularity of the solution. The books then studies the p- and hp- convergence of FEM in one and two dimensions, supplying complete proofs. Also covered are hp-FEM for saddle pointproblems and the techniques for establishing the discrete infsup condition. Finally, hp-FEM in solid mechanics and the issue of locking is addressed in the context of these methods.