<html lang="hi"> doubt

in video sir told that there may be multiple html tag
if you browser language is english then
above one will be executed
if it is hindi then below one
but it is not hapenning
why???

<!DOCTYPE html>
<!-- tell brower it  is html file -->
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Introducon</title>
</head>
<body>
    <h1>this is heading h1 </h1>
    <h2>this is heading h2 </h2>
    <h3>this is heading h3 </h3>
    <h4>this is heading h4 </h4>
        Normal Text
    <h5>this is heading h5 </h5>
    <h6>this is heading h6</h6>
</body>
</html>



<html lang="hi">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Introduction Hindi</title>
    </head>
    <body>
        <p>
            there may be multiple html tag in your index.html
            if language is hindi it is shown otherewise above one>
        </p>>
    </body>
    
</html>

if it is wrong then what is correct way to do this

You can read about how it is done here: https://www.tutorialspoint.com/How-to-add-multi-language-content-in-HTML

Also, you cant use multiple html tags in a single file. You need to do as told above.
Reference: https://stackoverflow.com/a/2035627/8183406

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

You are using multiple tags. Check this I worked on it . might help you LINK