about meta tag with value content-language for http-equiv attribute

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sedigh mohseni
    New Member
    • Feb 2011
    • 64

    about meta tag with value content-language for http-equiv attribute

    hi
    I want to make a html page and inside of that i want to wright a few line in persian(persian is one of the rtl language)
    and for that i write

    <meta http-equiv="content-type" content="text/html; charset=utf8" />


    but i read another form of meta and i think both of this meta tag are the same for me (i use only persian and english language in my page)

    <meta http-equiv="content-language" content="en, fa" />


    but later dont work for me and all line are written to persian is shown clumsy
    (i konw that these two mentiond tags are diffrent but please consider i only use persian (with lang_code fa) and english , now would you please describe me what is diffrence between those only for my purpose)
    in advance thanks
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    Content-Type: defines document type (text, website, download, etc.) and character encoding. these data are essential for the browser to display the content correctly.

    Content-Language: the (human) language used. interesting if someone searches documents written in e.g. Farsi. also useful for spell checking.

    Comment

    Working...