Choose a link to get started:ALL NEW!!!Scrolling MarqueesThe BasicsThe BasicsManipulating Text Images Backgrounds Links More Advanced TopicsThe <HEAD> TagTables Forms Frames Lists Advanced TopicsImage MapsCSS - Part 1 CSS - Part 2 CSS - Part 3 CSS - Part 4 Additional TopicsXML Tag FormattingXHTML - Part 1 XHTML - Part 2 |
XML Font Manipulation and Tag FormattingSorry Netscape users, but this deals only with Internet Exporer 5.0 and higher at the moment. Please do go through the tutorial, though. You will probably learn something, and if you decide to get Internet Exporer, then you can use this code.Anyway, now on to the tutorial. XML stands for eXtensible Markup Language. It can be used to configure your own HTML tags! Instead of having to write out all of that HTML code for one word, or having to use CLASS's and ID's, you can make your effects happen anywhere! This is a little more complicated to setup, but the effect is well worth it. Below is a sample XML manipulated string of text. This only works in Internet Explorer 5.0 or higher. I bet you are wondering how I did that, right? Did I use a lot of fancy HTML script? No. Did I use CLASS's and ID's? No. Did I use stylesheets? Partly. How about XML? You bet. XML invloves understanding how to use CSS to make itself work. That is why I brought you through all of that CSS stuff before I could bring you here. You have to know CSS! Anyway, here is how I did that.
Now, this may seem a little confusing right now, but let me take you through step by step on how to do this.
I will only take you to the modification of the text at the moment. The rest comes later in the tutorial. The thing that might confuse you is why we use the designator after the name. For example, in ONE\:gr, gr would be the designator. You can create many different tags under one name, so this is required. More on more tag later. The directions were pretty easy to follow, I think. If not, just use the example script as a model, and work from there. Now, for an explanation on how this works.
Did that help a little? Now we get to how to use the tag in HTML script. Where you want the tag's effect to appear place the name given, then a colon, and then the designator inside of a tag. Type the text in between of it and its ending counterpart. To end the effect, use the start tag, except with a BACK SLASH before the name, as in most things. Here is the script again : <ONE:gr>GREEN MANIPULATED TEXT</ONE:gr> Understand? Now we get to how to make two or more different tags with the same base name. This is accomplished by using this script :
Now, all you do is switch the secondary name in the tag. For example, here is the bl tag we just made. Here is the script for that last set of text modified by the new tag we just made. <ONE:bl>The ONE:bl text</ONE:bl> See how easy that was? Follow the same pattern to make even more. You cannot have more than one base name (ONE) in one document. Sorry. Now you can really impress your HTML friends! Good Luck!! Please note that this is only one of several things XML is used for. I do not have the other uses ready for the site yet. |