Skein HTML Guide |
||
|
||
A disclaimer to you who know html: I'm oversimplifying many things here. This is a guide to using html to format text within the skein engine. It's not a guide to HTML proper or full. I'm going to explain just a little bit about HTML and then list some tags that you might use everyday. After that, I'll explain a few tags that are slightly more complicated, and then some tags that we don't allow at all. Finally, there are some links to sites where you can learn more. |
||
|
||
The basics of HTML
|
||
HTML is at heart a system of glorified highlighters. A web page is basically just a regular file full of text, that then has "tags" put in that set sections of the text apart to be treated differently. Tags are set apart with characters that tell the browser not to display the tag, but to interpret it instead. So to make multiple lines set apart a paragraph, which in the middle has a section of bold text, here's what the browser sees: |
||
|
||
And that gets displayed as: |
||
This is a new paragraph that has some bold text in the middle of it. When it hits the edge of the screen, it wraps around without my having to tell it to. |
||
Spaces are a special case. Web browsers will ignore extra spaces, because they assume that you've formatted your code in special ways to be readable. To get more than one space character in a row, you need to use special "non breaking spaces", which are explained in the next section. This is also why we need to have skein treat poetry differently than prose... besides the different ways that you can comment, skein also needs to know that it should be careful about spaces and single-line carriage returns. |
||
A final note before describing some tags (see, there really isn't much to it!) is that most tags need to be closed and nested. Closing a tag means that when you're done with the bold section, you need a tag </b> that says "this is the end of the bolding". Nesting means that if you want two tags to apply to the same section of text, you need to set one entirely within the other, both opening and closing. To apply two styles, you essentially need to say "do thing 1 to this" "and thing 2" Here's the text "end of 2" "end of 1". See the next section for some examples of both of these. |
||
|
||
|
||
Some Immediately Useful Things
|
||
There are a few things that you may want to use immediately, and which may be all you need know. |
||
|
||
<b>bold</b> |
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
> means "greater than", and < means "less than". |
||
|
||
|
||
Some Slightly More Complex Things
|
||
There are many more things which skein allows, but which are a bit more complicated. The most useful of these are: lists and <font> tags. |
||
To make lists, you have to do three things: tell the browser what kind of list it is, where the list is, and where to divide each of the items in the list. There are two main kinds of lists: unordered lists (bullets) and ordered lists (numbers, letters). |
||
<ul> |
||
<ol>
|
||
If you'd like an ordered list to have letters rather than numbers, you can add a type: <ol type="a"> for instance. |
||
Showing different fonts is a tricky business, because the computer that is viewing the work may not have the right font, and if it doesn't, it will simply guess at what it should display, or it will use the regular fonts. Because of this, you should take care using fonts, and be very careful to close the font-ed area, or else you might affect the rest of the page (including comments, for instance). So: |
||
<font face="Times"> This should appear in times.</font> |
||
|
||
|
||
Some Things You Shouldn't Do
|
||
Finally, there are a bunch of HTML tags that skein will do its best to eradicate. These tags are disallowed because they can be used to do Bad Things, either to the server itself or to the page that displays the work. There are good things that can be done with them-- they're just bad for Skein's digestion. I'm not going to explain them because you don't need them, right? |
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
Learn More
|
||
This is just the tip of a very large iceberg. If you'd like to learn more, and learn about stuff that we won't yet let you do on skein, here are some sites to explore. |
||
|
||
|
||
|
||
|
||
|
[ Back to top ] [ Author's Works ] [ Skein home ]
Content © copyright 2002 by Scott Price. All rights reserved.