Tbh I am using them purely because someone said I would help with getting my website crawled and ranked. I always thought it was more tags and descriptions than the others but since they get better ranking than me I thought it was worth a go
Ah. I haven't seen any discussion on html5 sites rankings in search engines versus simliar html4 sites, so I can't really comment on whether removing those tags will negatively affect your rankings. But if you want to have the site validate as html5, I think the only answer is to remove them. The language one is as CD mentioned, though you might show what the top of your code looks like as I suspect you made a typo or something.
I have added a post with my header code but it is pending approval. My main reason for changing my webpage to html5 was because I was getting validation errors on my Facebook and Twitter plugins and someone advised me to state html5 as my doctype to fix it, which it did. I am just wondering whether this is still the correct route to follow as I have read its not fully supported by all browsers yet.
True, html5 is not supported in all browsers. There's no "yet" because the issue is older browsers, which nobody can control, and will never be upgraded. So it's a matter of your balancing your interest in using new html5 capabilities versus the scope of customers you reach. If you're not actually using html5 tags, then the only downside I can think of is that the Facebook or Twitter code you've included might fail in older browsers. I suspect it won't, because they'd be getting lots of complaints if it did. Frankly my guess is you're not accomplishing anything at all with your switch to html5 doctype, other than some personal "feel good" about seeing the validator tell you the code is okay.
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.
I avoid FB like the plague, but when you go download their plugins, is there a chance that somewhere on the download page they say ".... these plugins are written to HTML xxx specs"? I would think getting that info from the source would be better than inserting them in your code and then having to figure it out for yourself. Or perhaps that's what it is, they're writing them in html5?