Webforumz Newsletter - November 2007
Tips & Tricks
- FRACTIONS, SUBS and SUPS??? Math, Food and Dinner? What??? No.. read on!
- Tip for Creating an Effective Homepage
- Tip to protect your email address from being harvested by spammers is to convert your email address to special characters
FRACTIONS, SUBS and SUPS??? Math, Food and Dinner? What??? No.. read on!
You can use ISO Latin 1 for fractions such as ¼ , ½, and finally ¾. If you looked at the source code, you'd see
¼ = ¼
½ = ½
¾ = ¾
But when it comes to fractions such as 2/3 or 7/8 you have to take a little different strategy.
Let me introduce you to two very useful HTML Tags called SUPSCRIPT <sup></sup> and SUBSCRIPT <sub></sub>
Superscripts are very handy whenever you need to place text above the normal line height such as this:
The Pink PoodleTM This html tag is also extremely handy for mathematical equations such as a2 + b2 = c2.
Subscripts place text below the normal line height such as H2O. These are used less frequently and are most popular for Mathematics and Chemistry text.
So how do you write fractions such as 2/3 or 7/8? Easily!
2/3 = <sup>2</sup>/<sub>3</sub>
7/8 = <sup>7</sup>/<sub>8</sub>
Tip for Creating an Effective Homepage
The purpose of a homepage is different from interior pages and often different from the goal you intend your site to produce. Even though your site purpose is to sell merchandise, your homepage will have a different goal.
What's the goal?
The homepage is set up to convince visitors they want to visit other pages of your site. You can do this with effective color and design, avoidance of distracting and irrelevant text and graphics and restraint from dumping all your sites content onto the homepage.
The purpose of the homepage is to entice with a clean concise presentation, text that summarizes what can be found on interior pages. Bait them with concise text then hook them with effective design!
Tip to protect your email address from being harvested by spammers is to convert your email address to special characters
For instance if my email address is info@ihatespam.com, my html code would look like this:
<a href="mailto:info@ihatespam.com">info@ihatespam.com</a>
That's really easy for spam bots to pick up! Not good!
What is good is to use special characters or character entities to replace each letter of that email.
For the letter "m" the character value is m
The letter "a" is represented by a
and so on.
So now my cloaked email address would look like this:
<a href="mailto:info@
ihatespam.
com">info@ihatespam.com</a>
For a list of ASCII characters see: http://www.w3schools.com/tags/ref_ascii.asp.
