How to add multi-language content in HTML?

HTMLWeb DevelopmentFront End Technology

The lang attribute in HTML allows you to set content for languages other than English. You can try to run the following code to implement lang attribute.


Here, we have added content in French and Spanish as well.

<!DOCTYPE html>
      <p lang="en">This is demo text</p>
      <p lang="fr">Ceci est un texte de démonstration</p>
      <p lang="es">Este es un texto de demostración</p>
Published on 13-Mar-2018 12:53:45