By applying the continuous finite element methods for ordinary differential equations,the first,second and third order finite element methods for linear Hamiltonian systems are proved to be symplectic as well as energy conservative.In addition,the linear element for nonlinear Hamiltonian systems are approximately symplectic on three order accuracy meaning,while they remain energy conservation.The numerical results are in agreement with theory.