Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS Treehouse Club: CSS My First Web Page Introduction to My First Web Page

patrick costello
patrick costello
857 Points

Under DOCTYPE in the html header there was <html lang="en">, what is this?

also in the image line there is 'src' and 'alt', I imagine alt is alternate but what does src stand for?

2 Answers

Stanley Thijssen
Stanley Thijssen
22,831 Points

This code specifies what language your document is in. 'en' is the language code for English, when you use another language for your documents you can change it to the language code of your preferred language :)

The src attribute on an image specifies where the image is located, a link to your image location.

patrick costello
patrick costello
857 Points

So if my image was in documents it would be doc?

Dillon Wyatt
Dillon Wyatt
5,990 Points

"So if my image was in documents it would be doc?"

If your HTML Code was in your Documents file and your image was in your Documents file as well, then your src would be src="imageName"