Home > Web Front-end > HTML Tutorial > HTML specifies the language attribute lang of the element content

HTML specifies the language attribute lang of the element content

黄舟
Release: 2017-11-03 13:07:48
Original
2295 people have browsed it

Example

Some French in the paragraph:

<p lang="fr">Ceci est un paragraphe.</p>
Copy after login

Browser support

All browsers support the lang attribute.

Definition and Usage

The lang attribute specifies the language of the element content.

Tips and Notes

Note: The lang attribute is not valid in the following tags: ,
, , set>,


,