What is the purpose of using the 'lang' attribute in HTML in the context of internationalization?
- Defining the layout direction for right-to-left languages
- Determining the character encoding for proper text rendering
- Enabling automatic translation for non-native speakers
- Specifying the language of the content
The 'lang' attribute in HTML is used to specify the language of the content, aiding in internationalization. It helps screen readers pronounce text correctly, enables language-specific styling, and assists in translation for a more inclusive and globally accessible web.
Loading...
Related Quiz
- The ________ CSS selector is used to select the first paragraph inside a container.
- How can the !important rule in CSS be used in styling?
- Which CSS property is used to control the time between the end of one animation iteration and the start of the next?
- What is the difference between using em and rem units for font-sizing in CSS?
- What is the main advantage of using a CSS framework like Bootstrap in web development?