T"/> T">
Home >Web Front-end >HTML Tutorial >How to add multilingual content in HTML?
The lang attribute in HTML allows you to set content for languages other than English. You can try running the following code to implement the lang attribute.
Here, we also have French and Spanish.
<!DOCTYPE html> <html> <body> <h2>English</h2> <p lang="en">This is demo text</p> <h2>French</h2> <p lang="fr">Ceci est un texte de démonstration</p> <h2>Spanish</h2> <p lang="es">Este es un texto de demostración</p> </body> </html>
The above is the detailed content of How to add multilingual content in HTML?. For more information, please follow other related articles on the PHP Chinese website!