This element "lang" is written before starting of the <head> tag and just after declaring "doctype," like the following:
<!doctype html>
<html lang="en">
Here "en" stands for English, and "lang" for Language.
If you write just <html> it will also work
<doctype html>
<html>
But it is good to write your language preference you are using in your webpage, for example, US and UK.
For US version of English, you may write as <html lang="en-US">
For UK version of English, you may write as <html lang="en-UK">
Comments
Post a Comment