language issues

Discussion in 'HTML & Website Design' started by thatjeeves, Mar 28, 2011.

  1. #1
    Hello.

    Am I obligated to somehow define language in an html-document? Is it okay to leave out any "lang="? Will google autodetect which language is used?
     
    thatjeeves, Mar 28, 2011 IP
  2. CREATIQUA

    CREATIQUA Peon

    Messages:
    23
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    try to use:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="ro-RO">
    <head profile="http://gmpg.org/xfn/11">

    I mostly code Romanian websites
     
    CREATIQUA, Mar 28, 2011 IP