Is There an HTML Cheat Sheet? - Help with HTML
Return to Main Help Page
HTML code is not difficult to learn, so don't be afraid to jump in and start editing. We have created a sample page where you can practice some HTML before working with live content on the site. Visit the practice area. For links to more information on HTML external to this site, click here.
Below we have included a list of commonly used HTML codes to help you edit your text. Please note that the first command needs to appear before the text you wish to format and the second command follows at the end of the formated text in order to "close" the entry.
WiserEarth HTML Code
WiserEarth contains some customized html tags designed to make it easier to link pages and upload images. The raw code is not necessary to enter in most cases, as we have a helpful "Tools/Help" editor that automates much of this process. But for those who wish to understand the coding syntax to facilitate easier editing, we have provided a breakdown of the coding structure.
*Please note - Ignore the parentheses when writing the actual code. The parentheses are there only to prevent your browser from actually executing the line of code.*
|
Example code |
Result:
|
| Internal Link Breakdown: [ link:name:name of link] [ link:ecology:I am naming this link Ecology] |
I am naming this link Ecology |
|
Embed link within a picture
|
![]() Source This picture contains a link within - if you click on the picture, it will take you to designated URL. |
|
Youtube/Video media Link |
(example not shown) |
|
Area of Focus [p:(81):(Energy)] |
Energy |
|
Event [ e:48fa543cacfaf876501e16be827fe0c6: Chicago Green Festival] |
Chicago Green Festival |
|
Job [J:(76097bbe743f221c6a8e4f3ee86b9fa1): (Research Associate)] |
Research Associate |
|
Organization [ o:98ff0d6edae00bf00d9182b456ccf4a7: Reptile Research] |
Reptile Research |
|
Person [ u:adam:adam] |
adam |
|
Resource [ r:f553b27f83bde2288f37b1f867003646:The Grassroots Ensemble Theater Research Project] |
The Grassroots Ensemble Theater Research Project |
|
WiserEarth Wikipage [ a:8b823712068358305c4432efc314553a:Home Page Mockup] |
Home Page Mockup 1 |
|
Inserting Images: [ imgul:tn_dewdrop.jpg] |
|
|
Alignment: right [ imgur:med_dewdrop.jpg] |
|
Standard HTML Code
Text Tags
|
Example code:
|
Result:
|
| <h1>Largest Headline</h1> Creates the largest headline |
Largest Headline |
| <h6>smallest headline</h6> Creates the smallest headline |
smallest headline |
| <b>bold text</b> Creates bold text |
bold text |
| <i>italic text</i> Creates italic text |
italic text |
| <tt>typewriter text</tt> Creates teletype, or typewriter-style text |
typewriter text |
| <cite>citation</cite> Creates a citation, usually italic |
citation |
| <em>emphasis</em> Emphasizes a word (with italic or bold) |
emphasis |
| <strong>another emphasis</strong> Emphasizes a word (with italic or bold) |
another emphasis |
| <font size=5>This is size 5</font> Sets size of font, from 1 to 7 |
This is size 5 |
| <font color=red>this is red</font> <font color=#00640>this is dark green</font> <font color=#000099>this is blue</font> Sets font color, using name or hex value |
this is red this is dark green this is blue |
Links
|
Example code:
|
Result:
|
|
<a href="URL"></a> |
Click on the blue link to go to the home page |
|
<a href="mailto:EMAIL"></a> <a href="mailto:Email:>info@wiserearth.org</a> |
Click on this email address to automatically pop up your email program and compose an email to the recipient: info@wiserearth.org |
|
<a name="NAME" id="NAME" ></a> <a name="AnchorExample" id="AnchorExample"></a>Anchor (Note how AnchorExample does not show up - that's just the unique ID that stays invisible. You have to type in text like "Anchor" to mark where the anchor is set) |
Anchors help separate a long page by creating mini-links throughout the document. |
|
<a href="#NAME"></a> <a href="#AnchorExample">Link to Anchor</a> |
Creates the link that allows you to jump to an anchor that you defined using the above code. |
Formatting
|
Example code:
|
Result:
|
|
<p></p> <p>Lines of text within a paragraph</p> |
Lines of text that runs on forever and ever - note how the text doesn't have any line spacing in between
Lines of text within a paragraph seperated by paragraph markers at every line break |
| <p align="left">Aligns this to the left</p> <p align="center">Aligned centered</p> <p align="right"> Aligned to the right</p> Aligns a paragraph to the left, right, or center |
Aligns this to the left Aligned centered Aligned to the right |
|
<br> |
Spaces out sentences or images by making a line break |
|
<blockquote> </blockquote> <blockquote>Here is another paragraph indented by surrounding it with this html marker </blockquote) |
Here is a regular paragraph of words without using blockquote Here is another paragraph indented by surrounding it with this html marker |
|
<dl></dl> Format works like this: <dl> (starts it off)
|
Here's an sample definition list:
|
| <dt> Precedes each definition term |
<dt>HTML |
| <dd> Precedes each definition |
<dd>Hyper Text Markup Language |
|
<ol></ol> A list of things to do on WiserEarth |
A list of things to do on Wiser Earth
|
| <li></li> Precedes each list item, and adds a number |
See above example - the ending </li> does not have to be included if an ending </ol> will close things off |
|
<ul></ul> <ul> |
A list of things to do on WiserEarth
|
|
<div align="left"> <div align="left">This section of text will be aligned left</div> <div align="center">This section of text will be aligned center</div> <div align="right">This section of text will be aligned right</div> |
This section of text will be aligned left
This section of text will be aligned center
This section of text will be aligned right
|
Tables
Table Attributes
|
Example code:
|
Result:
|
||||||||||||||||||||
|
<table border="(number)"> <table width="100%" border="2"> |
|
||||||||||||||||||||
|
<table width="100%" border="2" cellspacing="10" cellpadding="0"> |
|
||||||||||||||||||||
|
<table cellpadding=#> <table width="100%" border="2" cellspacing="0" cellpadding="10"> |
|
||||||||||||||||||||
|
<table width=# or %> <table width="50%" border="2" cellspacing="0" cellpadding="0"> |
Sample table set to 50% width |
||||||||||||||||||||
|
<r align="left"> or <td align="right"> |
|
||||||||||||||||||||
|
<td colspan=#> <TABLE BORDER=2 CELLPADDING=4> |
|
||||||||||||||||||||
|
<td rowspan=#> <TABLE BORDER=2 CELLPADDING=4> <TR>
|
|
||||||||||||||||||||
This information taken from Webmonkey.com
Other HTML Help
WiserEarth does not endorse the thoughts and comments of these sites, but provides them as a service to the users.
w3schools.com
htmldog.com
htmlcodetutorial.com
Comments
|
Flag for Review bowo 4 months ago
The "Using Image Maps on WiserEarth" page should answer Nathan's question. It's located @ http://www.wiserearth.org/article/d26c25e5ce13ca86a8a0394868021f65
|
|
Hi Nathan - I'm not sure if the 2nd example under the WiserEarth code answers your question, but that's one way of making an image become a clickable link. The way it works is you replace the last portion of an org/resource/etc link with an image file. For example - for organization "Sierra Club", you would normally go Sierra Club. Note how the words "Sierra Club" after the 2nd colon is what actually appears on the page. If you replace "Sierra Club" with GreenTreeLogo.jpg, then the image shows up with the link embedded into it. I have not tried this with anchors yet, so I can't give you an answer there.
If however, you are asking whether you can slice and split up an image into different regions with different clickable links, I don't think we support that capability for WiserEarth's code. |
|
This is a great resource!
I'd like to have parts of an image on a wikipage link to other pages or anchors within the page. Is there a way to do this with wiser's customized image tags? Normally, I'd put <img src="blahblahblah" usemap="#map"> and then define the <map>... Is there a way to do this? Thanks, ~Nathan |
|
Adam and Honore, thanks so much for this page, it's got a lot of great info and help!
|
|
There might be some confusion stemming from WiserEarth's code. In the example code section, I added in parentheses so that you could see the code itself. If I remove the parentheses, as I did for the "Result" section, you'll see how the code will look. So, if you're writing raw HTML code using WiserEarth's format, please do not use any parentheses!
|
|
For youtube or any media, you simply type in the following:
[media:http://www.youtube.com/examplevideo.wmv] The reason I didn't include it in the examples was that the size of the Youtube video link overflows the table and mis-aligns the table |
|
How do we add a youtube video?
|


