How do I create a hindi web page?

by Geethalakshmi 2010-02-12 23:43:25

How do I create a hindi web page?


The same way as you would create any other page, just add the following code between the <head> and </head> tags:

<meta http-equiv="Content-Language" content="hi">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

Additionally, add the lang attribute to your <html> tag:

<html lang="hi">

This helps search engines and other software realise that the page it is reading is in Hindi. More information about this attribute is available at w3.org. "hi" can be replaced with ks, kok, ne, mr, sa for Kashmiri, Konkani, Nepali, Marathi and Sanskrit respectively. If you have content in multiple languages on the same page, you can add this attribute to the <p> tag

<p lang="hi">
ये अनुच्छेद हिन्दी में है।
<p>

for the paragraph containing Hindi text.
2042
like
0
dislike
0
mail
flag

You must LOGIN to add comments