July 16, 20188 yr My company (Kirkby Microwave) website was coded in XHTML, and had no errors on the W3C validator. It has been suggested that nobody uses XHTML, and I should switch to HTML 5. So I changed the bit at the top of the webpages to read <!DOCTYPE html > After making some minor changes, mainly removing the setting of the width inside the <img src> tag, I can get pages to almost validate. Some don't, but that is simply because I have not got around to fixing the errors. But the W3C validator is always complaining Warning: This document appears to be written in English. Consider adding lang="en" (or variant) to the html start tag. I can't seem to see how to fix this. Despite reading the links on the W3C validator page, no matter what I try does not work! Feel free to look at the source of my homepage, and let me know how to fix this. I only speak English, so just want to leave it as English, and nothing else. I did not post the link to my homepage, as I'd be interested if anyone that Googles Kirkby Microwave finds a .com domain. There is a .com, but it should be hidden from Google, but anyone on the BT broadband network may be able to see it, as the IP address range is restricted to those that BT seems to serve me up. Dave Edited July 16, 20188 yr by drkirkby
July 16, 20188 yr You add it to the opening html; <html lang="en"> Edit: I see you're missing the opening html on your home page, it should be; <!DOCTYPE html> <html lang="en"> <head> <!-- Head bits --> </head> <body> <!-- Body bits --> </body> </html> Edited July 16, 20188 yr by BrowserBugs Forgot summit
July 16, 20188 yr Author Thank you. The fact I had the opening html missing, is probably why no attempt to fix the problem worked. It must be time to write a shell script to change all the pages, as I don't want to do it manually. Dave
Create an account or sign in to comment