I have a html file which has a tag <li class="MsoNormal" >.
what is class="MsoNormal" ?
after each line of text I can see a tag <o>
what is this tag ?
Please explain me this.
For what reason these tags are present.
If I remove them, will it effect the functionality?
Please read it as <o:p> as o colon p.it's
Visual appearance will be affected if you remove the "class" attribute. A class is a group-name for a CSS document. The </o:p> tag appears to be an XML tag, and is not part of the HTML 4.01 Specification that I am aware of. Its removal would most likely cease at least partial functionality.
I guess these tag are not xml tag.These are by deafault inserted from some microsoft editor probably. That is my guess. The class is also not a normal class.
The "class" attribute is simply a way to further define the structure of the document. If you're defining the document visually, which is 1) wrong and 2) the way all but one WYSIWYG generators do, then it will be closely associated with the styles. But it doesn't need to be. You can use the "class" attribute for any number of reasons.
Those funny looking O elements are something from XML, but since they're inserted by a Microsoft product you can expect that they're being mis-applied.
The vision for the future is one where we have a number of different mark up languages and we already have a MathML, RecipeML, CML. I've written CalendarML, but so far market penetration has been limited. Take my CalendarML. It's got an EVENT element that takes a required TILE element. Now, if we want to have a document that is part XHTML and part CalendarML we're going to run into trouble. So "they" came up with the idea of namespaces. In any XHTML document you will see:
This means that the TITLE element is actually a http://www.w3.org/1999/xhtml:TITLE element. That's a little too much to keep typing so we can either define a default namespace, as we usually do with XHTML but that can change within the document, or we can define a something like a namespace handle:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:cal="http://someplace/">
Then I would distinguish my TITLE element with "cal:title". With XSL stylesheets you end up with HTML and XSL freely intertwined so you have to make much use of these prefixes.
I should note, however, that no matter how much I tried I couldn't get my CalendarML to work with namespaces, so I defined it as an extension of XHTML, meaning that I just inserted a few things into the XHTML 1.0 DTD, but I removed the namespace.
“The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
—Tim Berners-Lee, W3C Director and inventor of the World Wide Web
Mso -> Microsoft Office
<o: -> XML namespace 'o'
It's the horrendous way MS transfers bad formatting techniques from their Office XML to HTML. Tidy has a mode to clean up that clutter.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)