random1 Posted January 18, 2010 Share Posted January 18, 2010 Hey, Among my HTML code I have <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-au" lang="en-au" dir="ltr"> AND <body lang="en-au" dir="ltr"> Do I need to specify lang and dir for for both elements to affect the language and text-dir for the document? Link to comment https://forums.phpfreaks.com/topic/188838-html-lang-and-dir-properties/ Share on other sites More sharing options...
haku Posted January 18, 2010 Share Posted January 18, 2010 You only need to re-declare the language if it is changing between elements. So you don't need to re-declare it in your body tag. Link to comment https://forums.phpfreaks.com/topic/188838-html-lang-and-dir-properties/#findComment-996972 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.