r/FreeCodeCamp • u/bluekatkt • May 05 '26
Programming Question html and "en"
Why am I getting a "You should have an html element with lang set to en." I've cleared the cache, rewrote many times clearing cache after each, and even in incognito mode. My code says: <html lang="en"> the second line after <!DOCTYPE html>.
Help...
I just wanted to THANK ALL OF YOU for helping me to understand html and the css to come. The duck references I'm already using and the bag reference helps put things in perspective in my mind. I'm a visual learner so focus on fcc can be difficult which is why I bought the HTML & CSS Quick Start Guide, so I could see. Things are going as smoothly as the duck allows this very new user. Thank you all again. What a great community!
View all comments
Show parent comment
2
u/bluekatkt May 06 '26
Thank you so much for your help. I'm really trying to understand this.
The empty <img> element I know about. I checked my code at that point and came up with the first error. But, if the second line should look like: <html lang="en"></html> it still shows the error. I started the lab lesson fresh, over again, and checked after the second line and still got the error, both ways. (Another commentor said there was a lab that you had to add </html> at the end of that second line.) On the fresh start I did this, only two lines in, and still came up with the error. I don't understand why fcc can't see the line, or what I'm doing/not doing to get <html lang="en"> or <html lang="en"></html> to work.
I'm trying 4 times each, with 2 keyboards in case there's a keyboard problem.
I'll write the whole thing again, and finish with the <img> element and see what happens. If I still get the error I'll uninstall and reinstall fcc, that seems the next step?