February 17, 2015

Comment HTML Stylesheet

Comment HTML is a black art. Here are a few pointers:

-- You can include hyperlinks like this.
Just enter <a href="your_url_here">your display text here</a>
The above example: <a href="http://www.jkboxed.com">this</a>

The target attribute is disregarded. Usually you can say target="_blank" to open in a new window or tab. That will be ignored and it always opens in the current window.

More than two links in a comment will kick it into "junk purgatory." A blog author can publish it (it ain't lost) but it will not show until then.

-- You can set italics <em></em>

-- You can indent as blockquote <blockquote></blockquote>

To limit users' potential mischief, both of these tags are closed at the end of a paragraph. So if you want multiple paragraphs indented or italicized, you can tag each individually. But the pro trick is to insert line breaks <blockquote>Paragraph one.<br /><br />Paragraph two.</blockquote>

Paragraph one.

Paragraph two.

Lastly, to give the examples or to insert a bogus, snarky tag like <bozo voice>whohoo!</bozo voice>, you can use HTML special characters. The open character is &lt; (less than) and the close, you guessed it is &gt; So, the above example is &lt;bozo voice&gt;whohoo!&lt;/bozo voice&gt;

Posts have all the same capabilities (and then some) but not the limitations.

UPDATE: A link to this has been added onto the left nav bar right under the outdated bios that nobody reads...

UPDATE II: Here's a table of special HTML characters, in case you need a £ (&pound;) or € (&euro;) or wish to be an überkøder™ (&uuml;berk&oslash;der&trade;). And, at the risk going too-meta, you get the ampersand with &amp; (which I had to write &amp;amp;).

Posted by John Kranz at February 17, 2015 3:04 PM

Outdated Bios is right! The baby girl jg was expecting when that bio was written is going to be 10 years old this month. Time flies!

Posted by: dagny at February 17, 2015 4:22 PM

Excellent post! I've tried hacking your comments and posts to figure out that <bozo voice> thing but never figured it out. Thanks boss!

As for the bio, I've thought about updating mine but since nobody reads them...

Posted by: johngalt at February 18, 2015 2:19 PM | What do you think? [2]