Thanks for your replies, I will change the html tag position.
I am trying to make my code completely valid, mainly to make sure there's no problems but yes, it is also so I feel ok with it saying its valid.
The reason for this is because I had a lot of grief from my last project. I made a website for someone and they were completely happy with it. However, someone with coding knowledge decided to test it using code validator and got up two minor errors from plugins like FB and decided to broadcast it to everyone on Facebook. When I stood up to them about it they told me the only person giving me a bad name was me for having errors. So for that reason I am trying to make my websites 100% valid.