Show List
lang attribute
The lang
attribute in HTML is used to specify the language of the contents of an HTML document. This attribute is useful for accessibility purposes, as it provides information to screen readers and other assistive technologies so that they can correctly pronounce the content. The lang
attribute is applied to the <html>
tag at the beginning of an HTML document.
Here is an example of the lang
attribute being used in an HTML document:
<!DOCTYPE html><html lang="en">
Leave a Comment