Lang tag in the HTML Lang tag in the HTML
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Lang tag in the HTML

Started by jmatute, April 27, 2011, 01:07:06 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jmatute

Hi,

I'm using the Curve standard theme, and noticed that in the template for most themes the first lineas follow this template:


<!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" xml:lang=[b]"en"[/b] lang=[b]"en"[/b] dir="{LANG_DIR}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={CHARSET}" />
...


and, since the language is harcoded that means less accesibility and SEO.

I think that Coppermins could use the $lang_translation_info['lang_country_code'] tag in the language file to set it, in order to create better HTML code. I believe that it's a bad idea to change it in the theme templates by user, since new versions would revert those modifications.

Thanks in advance,

Jose Luis.