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
21,788 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
4,533 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"