Wednesday, December 5, 2007

Common HTML for everyone

Every once in a while I'm asked how to do some simple changes in HTML. Not all administrative areas allow you to use that nice WYSIWYG editor. So, here are the most common requests:

Text Color - red, green, white, black, etc common colors
<font color="red">enter text here</font>

Line break
<br>

Hyperlink
<a href="http://www.bluecreekweb.com">www.bluecreekweb.com</a>

Paragraph
<p>

Bold
<strong>enter text here </strong>

What to do if you want to unbold something?

Well there are a couple of situations.
If the text looks like this: hello joe, how are you
Then the code would look like this <strong>hello </strong> joe, <strong> how are you </strong>

OR the code can look like this:
hello joe, how are you
hello <span style="font-weight:normal">joe </span> how are you