How to use HTML in articles
Saturday April 29 2006 01:43
Most HTML tags are available when writing a article but you have to write them inside [ ] tags instead of < >. We've also limited the number of attributes that you can use with your tags, for example you can not use any style tags.
You don't have to think about linebreaks or paragraphs when you write, if you make a line-break we will automatically insert a <br> tag and if you make two line-breaks we will start a new paragraph for you.
Note: In the code examples there are spaces between the square-brackets and the tagname, those should be removed in order to get the code working.
Here are the tags that are currently available:
- Text-Formatting:
Bold text:
Code: [ b ]bold text[ /b ]
Result: bold textItalic text:
Code: [ i ]italic text[ /i ]
Result: italic textUnderlined text:
Code: [ u ]underlined text[ /u ]
Result: underlined textRed text:
Code: [ red ]red text[ /red ]
Result: red textSuperscript text:
Code: [ sup ]superscript text[ /sup ]
Result: superscript textSubscript text:
Code: [ sub ]subscript text[ /sub ]
Result: subscript text - Linking:
Code: [ a href="http://www.dublish.com" ]dublish[ /a ]
Result: dublish
Note: Currently all links are opened in a new window
Attributes: href,name - Images:
Code: [ img src="http://www.dublish.com/pics/button.png" ]
Result:
Attributes: src,width,height,align
Note: Attributes must be supplied in the given order! - Special Tags:
YouTUBE videos
Currently you can not upload videos to dublish.com but there are several other sites providing that service, YouTUBE is one of them. On YouTUBE you can upload your video and embedd it on dublish.com if you want to. When embedding a video from YouTUBE, the only thing you need is the code from the video permalink found under the video. If the permalink for your video is for example http://www.youtube.com/watch?v=rdwz7QiG0lk then the code you need is rdwz7QiG0lk.
Code: [ youtube v="rdwz7QiG0lk" ]
Result:Code
Sometimes you might want to write source code in an article. Then you can use the code-tag and just paste your code, all indents will be maintained.
Code:
[ code ]
class HelloWorld {
public static void main(String[] args){
System.out.println("Hello World!");
}
}
[ /code ]
Result:
class HelloWorld {
public static void main(String[] args){
System.out.println("Hello World!");
}
}
Last Update: Monday May 1 2006 22:07
This article is hosted by dublish.com which is a free online publishing tool for those who have something to say but don't have their own blog. If you find this article abusive, report it to us.