- dotTech - http://dottech.org -
HOW TO: Format your text (hyperlink, bold, etc.) when writing comments on websites.
Posted By Ashraf On May 10, 2011 @ 9:20 PM In Tips 'n Tricks | 12 Comments
Many people have asked me “Ashraf, how do you make the link say what you want when you post those comments?”. It is a question that has been asked of me over and over. Therefore, I have decided to write up this simple guide which contain information on how you can use very basic HTML code to enable you to do all the formatting I do when posting a comment on a website. All the HTML code mentioned here will work anywhere HTML is accepted, so it does not have to be just when writing comments on websites.
This is not an all inclusive list and I will continue to update/add more code as I think of it or if someone suggests it. Keep in mind that some websites may have certain HTML code disabled so not all HTML code will work on all websites. But generally the following code will work in comment sections for most websites, including this website and giveawayoftheday.com.
Before we get to the list, know that I have color coded all the HTML code in the following list to appear in red so that it will stand out. You do not have to type in actual red text when you want to use any of the codes.
—————————————-
Make your link appear as words instead of the actual URL (i.e. hyperlink)
How:
For example:
Typing in the HTML code <a href=”http://www.politicallymotivated.net”>Ashraf is cool.</a> will result in Ashraf is cool. [1]
—————————————-
Make your text bold
How:
For example:
Typing in the HTML code <b>PoliticallyMotivated.net.</b> will result in PoliticallyMotivated.net.
—————————————-
Make your text italic
How:
For example:
Typing in the HTML code <i>Welcome back.</i> will result in Welcome back.
—————————————-
Underline your text
How:
For example:
Typing in the HTML code <u>Hello there.</u> will result in Hello there.
—————————————-
Cross out your text
How:
For example:
Typing in the HTML code <s>Ashraf sucks.</s> will result in Ashraf sucks.
—————————————-
Make a list of bullet statements
How:
<ul>
<li>[INSERT TEXT HERE1]</li>
<li>[INSERT TEXT HERE2]</li>
<li>[INSERT TEXT HERE3]</li>
</ul>
Replace [INSERT TEXT HERE1] with the text you want to appear in the first bullet, [INSERT TEXT HERE2] with the text you want to appear in the second bullet and so on. You can have as many bullets as you want.
For example:
Typing in the HTML code:
<ul>
<li>Test1</li>
<li>Test2</li>
<li>Test3</li>
</ul>
Will result in:
- Test1
- Test2
- Test3
Take note that the bullet list is indented a little bit (relative to the “Will” in “Will result in:”).
—————————————-
Make a list of numbered statements
How:
<ol>
<li>[INSERT TEXT HERE1]</li>
<li>[INSERT TEXT HERE2]</li>
<li>[INSERT TEXT HERE3]</li>
</ol>
Replace [INSERT TEXT HERE1] with the text you want to appear in the first numbered statement, [INSERT TEXT HERE2] with the text you want to appear in the second numbered statement and so on. You can have as many numbered statements as you want.
For example:
Typing in the HTML code:
<ol>
<li>Test1</li>
<li>Test2</li>
<li>Test3</li>
</ol>
Will result in:
- Test1
- Test2
- Test3
Take note that the numbered list is indented a little bit (relative to the “Will” in “Will result in:”).
—————————————-
Lastly, know that you don’t have to pick and chose one HTML tag per text. You can mix and match all the HTML tags and use more then one HTML tag for one text. For example, the HTML code:
<b><i><u><ul>
<li><a href=”http://www.politicallymotivated.net”>Ashraf’s awesome website</a></li>
</ul></u></i></b>
Will result in:
Article printed from dotTech: http://dottech.org
URL to article: http://dottech.org/4322/how-to-format-your-text-hyperlink-bold-etc-when-writing-comments/
URLs in this post:
[1] Ashraf is cool.: http://www.politicallymotivated.net
Click here to print.
© 2008-2012 dotTech.org | All content is the property of its rightful owner.