Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 02-01-2006, 01:13 PM   #1
Registered: Nov 2005
Location: India
Distribution: Slackware
Posts: 51

Rep: Reputation: 15
What is the use of lang in <head lang=''>

Hi there

It is documented that lang attribute of <head> or <body> is used to specify different languages. But how does it work. Not clear. Actually I want to incorporate Portuguese(which uses many symbols) in my web site. Can lang attribute be of some help to me.

Please help.
Old 02-01-2006, 06:02 PM   #2
Senior Member
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Moved to programming...
Old 02-01-2006, 06:55 PM   #3
Senior Member
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
This is the primary language of the web page (or element - it can be attributed to a p tag) This is essentially used by web spider, search engines to collect data and my be used by the browser to improve the rendering of the text. However this is not the same as the encoding that will tell the browser amongst other things the character set being used.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
switch lang rohr Debian 7 07-04-2005 09:51 AM
What a good lang. Dark_Sniper* Programming 19 05-21-2005 06:38 AM
LANG settings r_213 Linux - Software 4 01-13-2005 04:26 AM
most useful prog lang huffboy Programming 8 10-05-2003 01:40 AM
What lang for What titanium_geek Programming 6 03-28-2003 05:53 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:42 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration