Results 1 to 6 of 6

Thread: class MsoNormal

  1. #1
    Join Date
    Jun 2004

    class MsoNormal

    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?

  2. #2
    Join Date
    Jun 2004
    Please read it as <o:p> as o colon p.it's

  3. #3
    Join Date
    Jan 2003
    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.
    Visit Slightly Remarkable to see my portfolio, resumé, and consulting rates.

  4. #4
    Join Date
    Jun 2004
    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.

  5. #5
    Join Date
    Nov 2002
    Baltimore, Maryland
    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:

    <html xmlns="http://www.w3.org/1999/xhtml">

    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

  6. #6
    Join Date
    Nov 2003
    Jerryville, Tejas
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center