88 lines
4.8 KiB
HTML
88 lines
4.8 KiB
HTML
|
|
<h2>HTML on the Archive</h2>
|
||
|
|
|
||
|
|
<h3>Allowed HTML</h3>
|
||
|
|
<p>
|
||
|
|
<code>a, abbr, acronym, address, [align], [alt], [axis], b, big, blockquote, br, caption, center, cite, [class], code,
|
||
|
|
col, colgroup, dd, del, details, dfn, div, dl, dt, em, figcaption, figure, h1, h2, h3, h4, h5, h6, [height], hr, [href], i, img,
|
||
|
|
ins, kbd, li, [name], ol, p, pre, q, rp, rt, ruby, s, samp, small, span, [src], strike, strong, sub, summary, sup, table, tbody, td,
|
||
|
|
tfoot, th, thead, [title], tr, tt, u, ul, var, [width]
|
||
|
|
</code>
|
||
|
|
</p>
|
||
|
|
|
||
|
|
<h3>How Do We Format Your HTML?</h3>
|
||
|
|
|
||
|
|
<p>
|
||
|
|
When you enter HTML into the archive, we do some cleanup on it to make sure that it is safe
|
||
|
|
(so spammers and hackers cannot upload badness) and try and do some basic formatting both for
|
||
|
|
your convenience and for accessibility reasons. Here are the formatting steps we take:
|
||
|
|
</p>
|
||
|
|
|
||
|
|
<ul>
|
||
|
|
<li>If you leave a blank line between two paragraphs, we will put paragraph tags in for you around the two paragraphs.</li>
|
||
|
|
<li>If you have a single carriage return between two lines of text, we will put in a break tag for you.</li>
|
||
|
|
<li>If you have two break tags in a row (<br /><br />) with nothing between them, we will turn that into paragraph tags.</li>
|
||
|
|
<li>If you have two blank lines in a row between paragraphs, we will add extra whitespace in for you (with <p>&nbsp;</p>)</li>
|
||
|
|
<li>If you have mis-nested tags like this: <em><strong><em><strong>text!</em></strong></em></strong> we will fix the mis-nesting
|
||
|
|
(so it would become <em><strong><em><strong>text!</em></strong></strong></em>).</li>
|
||
|
|
<li>If you have forgotten to close a formatting tag, it will be closed at the end of the paragraph for you.</li>
|
||
|
|
<li>If you open a formatting tag in one paragraph and close it several paragraphs later, we will reopen/close it within each paragraph.</li>
|
||
|
|
<li>If you have put in some custom HTML (eg a list of items inside a <ul>) and you don't want break tags or paragraphs inserted,
|
||
|
|
just put it all on one line (sorry, this is the inconvenient tradeoff for automatically doing the paragraph/break tags).</li>
|
||
|
|
<li>If one bit of your text shows up larger than the rest, probably our formatter couldn't figure out to put paragraph tags around it.
|
||
|
|
You can fix this by manually putting in the paragraph tags around that one bit.</li>
|
||
|
|
</ul>
|
||
|
|
|
||
|
|
<p class="note">
|
||
|
|
When you edit your HTML after you first put it in, you will see the results of our formatting work, so you can
|
||
|
|
correct any mistakes our formatter might have made. Please note that the best way to get good results is to put
|
||
|
|
in good HTML -- that is how you can be sure your story will look right across various browsers,
|
||
|
|
screen readers, mobile devices, and downloads.
|
||
|
|
</p>
|
||
|
|
|
||
|
|
<p class="note">
|
||
|
|
Good HTML means HTML that labels what the text is supposed to be -- so if you have
|
||
|
|
paragraphs, they should be inside paragraph tags, not just separated with break tags. If you have emphasized
|
||
|
|
text, it should be inside em tags. If you have a list of items, each item should be inside list tags. If you
|
||
|
|
<em>don't</em> have a list of items, you shouldn't have list tags. :)
|
||
|
|
(We are putting together a set of more detailed helpful references about this, but this is the basic idea.)
|
||
|
|
</p>
|
||
|
|
|
||
|
|
<p class="note">
|
||
|
|
If you find yourself putting in HTML that doesn't mean the right thing, in order to get a particular visual effect,
|
||
|
|
please resist!
|
||
|
|
The work skin feature allows you to apply custom CSS to works, and that lets you make them look
|
||
|
|
just about any way you want them to (and is easier if you are starting from good HTML).
|
||
|
|
<p>
|
||
|
|
|
||
|
|
<p>Some specific recommendations:</p>
|
||
|
|
|
||
|
|
<dl id="help">
|
||
|
|
<dt>For headings, use heading tags: <code>h1, h2, h3, h4, h5, h6</code></dt>
|
||
|
|
<dd id="headings">
|
||
|
|
<ul>
|
||
|
|
<li><h1><h1>Title<h1></h1></li>
|
||
|
|
<li><h2><h2>Subtitle<h2></h2></li>
|
||
|
|
<li><h3><h3>Chapter title<h3></h3></li>
|
||
|
|
<li><h4><h4>Scene title<h4></h4></li>
|
||
|
|
<li><h5><h5>Subtitle<h5></h5></li>
|
||
|
|
<li><h6><h6>Footnote title<h6></h6></li>
|
||
|
|
</ul>
|
||
|
|
</dd>
|
||
|
|
<dt>For emphasis, use emphasis tags <code>em, strong</code> </dt>
|
||
|
|
<dd id="emphasis">
|
||
|
|
<ul>
|
||
|
|
<li><p><em><em>Rodney</em></em> McKay</p></li>
|
||
|
|
<li><p>I will <strong><strong>never</strong></strong> understand you!</p></li>
|
||
|
|
</ul>
|
||
|
|
</dd>
|
||
|
|
<dt>To quote poetry, phrases or titles use quote tags: <code>blockquote, q, cite</code> </dt>
|
||
|
|
<dd id="quotes">
|
||
|
|
<ul>
|
||
|
|
<li><blockquote><blockquote><p>To quote a block of text</p></blockquote></blockquote></li>
|
||
|
|
<li><p>Use q to <q><q>To quote a phrase</q></q></p></li>
|
||
|
|
<li><p>Try cite to cite <cite><cite>a phrase or title</cite></cite></p></li>
|
||
|
|
</ul>
|
||
|
|
</dd>
|
||
|
|
</dl>
|
||
|
|
</div>
|