473,765 Members | 1,977 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

what is diffrence between lang and xml:lang attribue inside xhtml document ?

64 New Member
hi

i quoted the below text from http://www.w3schools.c om site "lang is stand for language_code and Specifies a language code for the content in an element
xml:lang is stand for language_code and Specifies a language code for the content in an element, in XHTML documents"

in action, are lang and xml:lang in xhtml document the same? and are both of them supported by well-known browsers well?

thanks alot
May 21 '11 #1
2 1699
drhowarddrfine
7,435 Recognized Expert Expert
Since XHTML is HTML reformulated using XML, it uses a different 'namespace' to define elements. xml:lang tells the browser where to find the definition of lang in the XML namespace.

'lang' is defined in HTML with no namespace but it's the same thing. You're actually supposed to use both when serving XHTML as XHTML.
May 21 '11 #2
Dormilich
8,658 Recognized Expert Moderator Expert
You're actually supposed to use both when serving XHTML as XHTML.
XHTML 1.0, that is.
May 23 '11 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

2
1896
by: Joshua Beall | last post by:
Hi All, I have been using the SAX library in PHP to parse XHTML documents, and one thing I have noted is that the <!DOCTYPE> line is ignored. I am wondering is there any way to get the <!DOCTYPE> using the SAX functions in PHP? I am looking over the manual, but nothing is jumping out at me... reference: http://us4.php.net/manual/en/ref.xml.php
6
2761
by: mike | last post by:
regards: Is it possible to use java XML api to translate a HTML document into a XHTML document(mobile profile) thank you best wishes
1
1548
by: mike | last post by:
regards: A HTML document can be converted to XHTML document. one step is:'Un-minimize' minimized attributes What does the step mean in easy english?...@@. I mean what operations I should do on the attributes? Any suggestion is welcome.
0
933
by: Thanos Tsouanas | last post by:
Hello list! I've got a unicode string which holds an xhtml website, begining with <!DOCTYPE ... and a functions which alters strings in a certain way. I want to replace all actual data in this xhtml unicode string with the function's output. (By 'actual data' I mean anything that I thought I should use the XMLGenerator package, but first, I don't like it's output, and second, it complaints about the <!DOCTYPE ...>
5
9777
by: anupamjain | last post by:
Tired, Exhausted, searched the web, usenets,forums thorughly but still clueless. I guess it's time to post on the group : This is the issue I have been trying to resolve since today morning : I have an XHTML document in string form which I parse using Xerces DOMParser (using an InputSource to read it). Now I am trying to get to a node for which I have the Xpath, using the XPathAPI.
1
1668
by: James Black | last post by:
You can see the program at: http://dante.acomp.usf.edu/CommunicationSimulator/index.php I am trying to dynamically add script tags to my webpage, but I get an error that the first javascript literal object is not defined. function initialize() { insertScriptTags("http://dante.acomp.usf.edu/CommunicationSimulator/prototype.js"); insertScriptTags("http://dante.acomp.usf.edu/CommunicationSimulator/scriptaculous.js");...
3
6358
by: SMH | last post by:
Normally an SVG document is loaded/parsed/interpreted inside an HTML document using an 'object' (or 'embed') element, although there are supposedly other ways too. The problem is, the SVG document must be static this way. I want to use the DOM interface to build SVG dynamically inside an HTML document. I am guessing I can build it inside HTML within an 'object' (or maybe 'iframe'?) element. My intentions/goals:
2
1550
by: parag_paul | last post by:
Isnt is so that whenever the compiler reads an #def it will replace it with letter by letter on the place is see the macro, so what is the purpose of keeping #defs inside a structure, struct A{ #define A_list(e) (e)->list() }
6
3856
by: Sunfire | last post by:
Is there a way you can test what page is loaded from inside a master page? What I need to do is test to see what page is loaded inside the master page and then gray out the root item linked to that page in the Menu control. I.e. I have a root item called home. When a person is on the home page I want it to be disabled. Any way to do this?
2
1150
by: peasthope | last post by:
Folk, At http://carnot.yi.org/Category2.xhtml is a document containing a diagram in SVG. I've tried to make it conform to http://www.w3.org/TR/XHTMLplusMathMLplusSVG/ . Absence of MathML code should do no harm. Debian Iceweasel displays the xhtml text and table but not the diagram. http://validator.w3.org/ complains about <svg:defs>. See
0
9568
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10163
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10007
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9835
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8832
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5423
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3924
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3532
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.