I notice that I have a few people on my friends list that are new not only to LiveJournal, but to the internet in general. I'm sure they are wondering about all these nifty codes, so I'm listing them out. Feel free to add this post to your memories (click on the heart) if you think you may need to find this again.
If anyone feels the need to correct or add anything, feel free.
Text:
bold: <b>text</b>
italic: <i>text</i>
underline: <u>text</u>
strikethrough: <s>text</s>
emphasis: <em>text</em>
big: <big>text</big>
small: <small>text</small>
superscripted: <sup>text</sup>
subscripted: <sub>text</sub>
Indented block of text: <blockquote>paragraph or two</blockquote>
<font size=X color=color face=font>text</font>
Size may be given as an absolute (in pixels, I believe) or as an amount larger or smaller than the viewer's default view (+2) (this is preferable).
Color may be specified as a hex number (FFCC00) or as a word (fuschia).
Fonts (face) may be named.
Displaying pictures (image tag):
<img src="address"> (image source) Address must be in quotes.
additional attributes:
height=###
width=###
title="text" (text that will be displayed if you hover your mouse on the image)
alt="text" (text that will be displayed if the image does not display.)
example: <img src="http://userpic.livejournal.com/20574/18150.jpg" width=100 height=50>
Linking to other web pages (anchor tag):
<a href="address">text to click</a>
Address must be in quotes.
additional attributes:
target=window (Use _blank to open link in a new window. I like to do this when I'm linking to someplace that viewers will want to click around the site.
example: <a target=_blank href="http://www.cnn.com/2004/US/02/02/superbowl.jackson/index.html">see the stupidity</a>
As you can see, if you show a web address, LJ will make it into a link.
LiveJournal specific tags:
LJ cut:
<lj-cut> removes the remainder of the post from view
<lj-cut> removes the part of the post that is between the opening and closing tags from view</lj-cut>
<lj-cut text="text"> without the text attribute, the text that is displayed on the cut link will say "Read more". The text attribute will put in whatever words you wish.
<lj user="username"> creates a link directly to the listed user, with the head icon next to the name that links to the userinfo page. This same tag may be used for journals, communities and RSS feeds, and will have the appropriate icon displayed.
low_delta,
onemoreword,
theonionfeed
Scrolling text:
<marquee>text</marquee>
atributes:
direction=left, right, up, down
behavior=alternate
Marquees are not supported by Netscape. Netscape users will not see scrolling text.
List:
<ul>
<li>first point</li>
<li>second point</li>
<li>third point</li>
</ul>
Lists may be unordered (ul: bullets) or ordered (ol: numbers).
List items (li) are recommended to be closed (/li) but this is not required.
Tables:
Tables can be complex, but I'll just give the basics:
<table>
<tr>
<td>a1</td>
<td>a2</td>
</tr>
<tr><td>b1</td>
<td>b2</td>
</tr>
</table>
If anyone feels the need to correct or add anything, feel free.
Text:
bold: <b>text</b>
italic: <i>text</i>
underline: <u>text</u>
emphasis: <em>text</em>
big: <big>text</big>
small: <small>text</small>
superscripted: <sup>text</sup>
subscripted: <sub>text</sub>
Indented block of text: <blockquote>paragraph or two</blockquote>
<font size=X color=color face=font>text</font>
Size may be given as an absolute (in pixels, I believe) or as an amount larger or smaller than the viewer's default view (+2) (this is preferable).
Color may be specified as a hex number (FFCC00) or as a word (fuschia).
Fonts (face) may be named.
Displaying pictures (image tag):
<img src="address"> (image source) Address must be in quotes.
additional attributes:
height=###
width=###
title="text" (text that will be displayed if you hover your mouse on the image)
alt="text" (text that will be displayed if the image does not display.)
example: <img src="http://userpic.livejournal.com/20574/18150.jpg" width=100 height=50>
Linking to other web pages (anchor tag):
<a href="address">text to click</a>
Address must be in quotes.
additional attributes:
target=window (Use _blank to open link in a new window. I like to do this when I'm linking to someplace that viewers will want to click around the site.
example: <a target=_blank href="http://www.cnn.com/2004/US/02/02/superbowl.jackson/index.html">see the stupidity</a>
As you can see, if you show a web address, LJ will make it into a link.
LiveJournal specific tags:
LJ cut:
<lj-cut> removes the remainder of the post from view
<lj-cut> removes the part of the post that is between the opening and closing tags from view</lj-cut>
<lj-cut text="text"> without the text attribute, the text that is displayed on the cut link will say "Read more". The text attribute will put in whatever words you wish.
<lj user="username"> creates a link directly to the listed user, with the head icon next to the name that links to the userinfo page. This same tag may be used for journals, communities and RSS feeds, and will have the appropriate icon displayed.
Scrolling text:
<marquee>text</marquee>
atributes:
direction=left, right, up, down
behavior=alternate
Marquees are not supported by Netscape. Netscape users will not see scrolling text.
List:
<ul>
<li>first point</li>
<li>second point</li>
<li>third point</li>
</ul>
Lists may be unordered (ul: bullets) or ordered (ol: numbers).
List items (li) are recommended to be closed (/li) but this is not required.
Tables:
Tables can be complex, but I'll just give the basics:
<table>
<tr>
<td>a1</td>
<td>a2</td>
</tr>
<tr><td>b1</td>
<td>b2</td>
</tr>
</table>
Re:
Date: 2004-02-03 02:16 pm (UTC)From:no subject
Date: 2004-02-03 11:22 am (UTC)From:no subject
Date: 2004-02-03 11:23 am (UTC)From:Can you show a picture of a table with the table directions so I know what the result would be?
no subject
Date: 2004-02-03 11:32 am (UTC)From:Re:
Date: 2004-02-03 11:59 am (UTC)From:no subject
Date: 2004-02-03 12:16 pm (UTC)From:for this result
no subject
Date: 2004-02-03 12:22 pm (UTC)From:no subject
Date: 2004-02-03 12:34 pm (UTC)From:no subject
Date: 2004-02-03 12:33 pm (UTC)From:and so, exchange (parentheses) for < angle brackets > and squeeze together & hearts; to get:
(font color="red")& hearts;(/font) gives one
and removing the spacing, squeeze 'em all together:
8 & THORN ; gives one 8Þ
good stuff
Date: 2004-02-03 02:03 pm (UTC)From:& l t ; all squished together will get you the "less than" bracket, so you can disply the code without your browser making it into code.
Re: good stuff
Date: 2004-02-04 02:09 pm (UTC)From:there's a short circuit in my brain where this
is supposed to be stored. bad memory block on the disk.
Re: good stuff
Date: 2004-02-04 03:17 pm (UTC)From:Re: good stuff
Date: 2004-02-04 03:21 pm (UTC)From:have you looked at the number of 'memories' I've marked?
Re: good stuff
Date: 2004-02-04 06:12 pm (UTC)From:Re: good stuff
Date: 2004-02-05 06:56 am (UTC)From:and because yours is clearly categorized, unlike mine, right?
that's on my things-to-do-today list, right after I clear out my mailbox
riiight
Re: good stuff
Date: 2004-02-05 10:54 am (UTC)From:no subject
Date: 2004-02-03 12:52 pm (UTC)From:Re:
Date: 2004-02-03 01:04 pm (UTC)From:no subject
Date: 2004-02-03 03:30 pm (UTC)From:no subject
Date: 2004-02-04 09:26 am (UTC)From:That's
<font size=X color=color face="font name">text</font>Re:
Date: 2004-02-04 10:38 am (UTC)From:thanks
no subject
Date: 2004-02-04 09:32 am (UTC)From:Actually alt is the text that should be displayed if the picture isn't loaded for any reason (the image doesn't exist, the user is blind, the user switched of image loading, it's a slow link and the image hasn't arrived yet, etc, etc). The
titleattribute is what you're supposed to use for those mouse-over pop-ups. The problem is that IE has wrongly used thealtfor pop-ups for years, and so taught most people todo it wrong./rant
Re:
Date: 2004-02-04 10:44 am (UTC)From:Okay, I am fixing it (my post, that is).