Hi Luis, also a bit more info on custom tags - custom tags are actually supported by most regular browsers as another way to control styling.
Basically when a browser sees a tag that it does not recognize, it still treats it as an element and gives it a default style of display:inline making it behave like a <span> by default.
But you can apply styles to custom tags same as any other kind of tag.
For a quick example see the attached example file, and load it into a WebKit browser or Firefox.
Custom tags also work in IE but they have to go into a namespace and you need to add an xmlns declaration to the <html> tag for them to actually work. That's basically why I got used to using the moi: namespace for custom tags, but I decided to keep doing that since it makes it easier to tell that something is a custom tag or not.
Without custom tags you would end up writing a ton of stuff that looks more like <div class="MoiPushButton"> which is more annoying to write than just <moi:PushButton>
You may not want to use the custom tag technique for writing a regular web site, but it's convenient for MoI's particular use of HTML for its own UI.
- Michael
|