Pages

Tuesday, February 7, 2012

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 and 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 tag

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


for the paragraph containing Hindi text.

1 comment:

Anonymous said...

gr8 job