Mid JavaScript

How do you specify a language for an HTML page?

Add the lang attribute in the <html> tag.

Example:

<html lang="en">

Key Takeaway:

Helps screen readers and search engines understand the page’s language.

More from JavaScript Tutorial

All questions for this course