HTML lang attribute

How do you do the lang=en attribute and value inside an HTML tag? I mean, how do you type it?

Hi @Melody-Maker,

To insert the attribute lang="en" into an HTML tag, you simply write it inside the opening tag, like any other attribute.

For example:


<html lang="en">

Here:

  • lang is the name of the attribute

  • "en" is its value (to indicate that the content is in English)