DesigntheWorld
New Member
Question1:
If my website is written using about 50% English and 50% Japanese, what lang attribute do I specify in my html tag?
*I also read somewhere that I would have to specify the lang="jp" for every element that contains Japanese..I hope this is not true..if it is true does that mean that I will have to place the lang attribute inside each element that contains Japanese.
ex:
Question 2:
In the above example is it acceptable to use the lang attribute inside a paragraph tag? Or is that just plain wrong?lol.
Question 3:
Is it required to specify a lang attribute at all in the html of a website that is written in 100% English? Or can you leave it off since the browser will assume it is all English because of the charset or something like that?
-Thanks for reading!
If my website is written using about 50% English and 50% Japanese, what lang attribute do I specify in my html tag?
*I also read somewhere that I would have to specify the lang="jp" for every element that contains Japanese..I hope this is not true..if it is true does that mean that I will have to place the lang attribute inside each element that contains Japanese.
ex:
HTML:
<p lang="jp">猫が好き</p>
<p> English translation: I like cats</p>
Question 2:
In the above example is it acceptable to use the lang attribute inside a paragraph tag? Or is that just plain wrong?lol.
Question 3:
Is it required to specify a lang attribute at all in the html of a website that is written in 100% English? Or can you leave it off since the browser will assume it is all English because of the charset or something like that?
-Thanks for reading!