~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Overview
LINKS
--BBCode Version
--HTML Version
IMAGES
--Clickable Thumbnails
--Images from another web site
FONT SIZE
COLOR
CITATIONS (cites)
BOLD LETTERING
ITALICIZED LETTERING
UNDERLINED LETTERING
ANCHORS
--Adding Anchors
--Linking to Anchors
MIXING MARKUPS
STRIKES
SYMBOLS
REFERENCES
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Links
--BBCode version
You will want to type:
[url=Web Site Goes Here]Word Goes Here[/url]
Fill in the colored words with what they say. Example:
[url=http://bugguide.net/node/view/15740]Welcome to BugGuide.Net![/url]
would come out to look like:
Welcome to BugGuide.Net!
----Another way to do it is this:
[url]Web Site Goes Here[/url]
Example:
[url]http://bugguide.net/node/view/15740[/url]
would come out to look like:
http://bugguide.net/node/view/15740
--HTML Version
You will want to type:
<a href="Web Site Goes Here">Word Goes Here</a>
Let's try it.
<a href="http://bugguide.net/node/view/15740">Welcome To BugGuide.Net!</a>
which would look like:
Welcome To BugGuide.Net!
Now, if we wanted this link to take someone to a different tab, you would type:
<a href="Web Site Goes Here" target="_blank">Word Goes Here</a>
Let's try it out.
<a href="http://bugguide.net/node/view/15740" target="_blank">Welcome to BugGuide.Net!</a>
Which would look like:
Welcome to BugGuide.Net!
»
More about the target attribute
»
More about the links
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Images
--Clickable Thumbnails*
You will want to type:
[thumb:#]
where # is the number on the top left corner of any image on BugGuide.
Example:
[thumb:290030]
would come out to look like:
*These can only be used on BugGuide images.
--Images from another web site
NOTE: Be cautious when doing this. Always make sure to give the website/photographer credit for their photo.
You will want to type:
[img]Web Site (copy image location) Goes Here[/img]
Example:
[img]http://bugguide.net/themes/bugguide/images/bglogo.gif[/img]
comes out to look like:
--Images with HTML
<img src="http://bugguide.net/themes/bugguide/images/bglogo.gif" />
The result:
--Clickable Images
You can combine links and images to make a clickable image.
You will want to type:
[url=Site Here][img]Site Here[/img][/url]
Let's try it:
[url=http://bugguide.net][img]http://bugguide.net/themes/bugguide/images/bglogo.gif[/img][/url]
This would look like:
Now let's do the HTML version.
<a href="Site Here"><img src="Web Site (copy image location) Goes Here" /></a>
Let's try it:
<a href="http://bugguide.net"><img src="http://bugguide.net/themes/bugguide/images/bglogo.gif" /></a>
More about images...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Span
The <span> tag is a way to use a form of CSS, called an inline style sheet. Instead of stating how the elements are used in the first part of the page, you can state how the elements are used with the <span>tag (or any tag).
For an inline style sheet, you will want to type this:
<span style="Commands here">Text to which the commands will apply</span>
Now, how to type the style commands:
property:value;property:value;
Each property:value; is a declaration.
For example you might want to type:
<span style="font-size:25px;font-weight:bold;color:#0000ff;background-color:#ff0000;cursor:pointer;">This is a test</span>
This will generate:
This is a test
Here is another example that makes letters blink.
<span style="text-decoration:blink;font-size:20px;color:#ff0000;font-weight:bold;">Test</span>
Test
NOTE: Blink is not supported by Internet Explorer, Safari, or Chrome.
It may be helpful to you to read this and this
--Text decoration
Some examples:
<span style="text-decoration:underline;">Test</span>
<span style="text-decoration:overline;">Test</span>
<span style="text-decoration:line-through;">Test</span>
The results:
Test
Test
Test
--SIZE
You will want to type:
<span style="font-size:Size Goes Herepx">Word Goes Here</span>
Let's try it out:
<span style="font-size:17px">BugGuide.net</span>
This is what it will look like:
BugGuide.net
You can change the size. I just randomly chose 17 for an example.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Color
You will want to type:
[color=Color Here]Word Goes Here[/color]
Let's try it out:
[color=red]BugGuide.net[/color]
will look like:
BugGuide.net
Also, you could use Hex Colors.
A hex color is a hexidecimal number. The first 2 digits are the red, the next 2 digits are the green, and the last 2 digits are the blue.
Simply add a # to the code.
[color=#ff00ff]i am ugly[/color]
i am ugly
For a reference of hex colors, see the page on my website.
--Color with Inline Styling
<span style="color:#ff00ff">I am ugly</span>
The result is the same as the BBCode version.
I am ugly
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Citations
Cites are used to credit books, images, forum topics, and links*. They are clickable.
You will want to type:
[cite:#]
where # is the cite number of the page. If you go to a page on BugGuide, at the address bar, the last number is the number you will want..
Let's try it:
[cite:24520]
will look like:
(1)
*These can only be used on BugGuide.net.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Bold
--BBCode Version
You will want to type:
[b]Word Here[/b]
Let's try it.
[b]BugGuide.net[/b]
will look like:
BugGuide.net
--HTML Version
You will want to type:
<b>Word Here</b>
Let's try it:
<b>BugGuide.net</b>
which would look like:
BugGuide.net
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Italic
--BBCode version
You will want to type:
[i]Word Here[/i]
Let's try it.
[i]BugGuide.net[/i]
will look like:
BugGuide.net
--HTML Version
You will want to type:
<i>Word Here</i>
Let's try it.
<i>BugGuide.net</i>
which would look like:
BugGuide.net
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Underline
--BBCode Version
This is what you would type:
[u]Word Here[/u]
Let's try it:
[u]BugGuide.net[/u]
which would look like:
BugGuide.net
--HTML Version
Type:
<u>Word Here</u>
Ex.
<u>This is a good page!</u>
Result:
This is a good page!
Hmmm... BugGuide does not seem to allow the HTML version. Read the CSS way to do it instead.
--A CSS way to do it
Example:
<span style="text-decoration:underline;">Test</span>
The result:
Test
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Anchors
--Adding Anchors:
You can use an anchor to link to a specific section of a page. To do that, you have to add an anchor to link to later on.
This is what you will type to add an anchor
<a name="Anchor Title Here">Word Here
Note: You cannot use spaces in anchor naming. I use underscores (_)
Here's an example:
<a name="Anchor_Test"></a>Anchor Test
Now I'm actually going to create an anchor so we can link to it.
Anchor Test=this is the anchor. I made it bold so it is noticeable.
--Linking to anchors
Linking to anchors is pretty much the same as a normal link. The only difference is you add a # on the end and then type the anchor name you are linking to.
Here is what you type: (I just chose to use BBCode here. You can use HTML as well.)
[url=Web Site Goes Here#Anchor Name goes here]Word Goes Here[/url]
Let's try it out on the anchor we made:
[url=http://bugguide.net/node/view/354750#Anchor_Test]Anchor Test[/url]
Now let's see if it takes us to the anchor.
Anchor Test
»More about anchors...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Mixing Markup
You can use more than one markup at a time.
For instance, we could do this:
[b][i]BugGuide.net[/i][/b]
which would look like:
BugGuide.net
or this:
[color=blue][b]BugGuide.net[/b][/color]
which would look like:
BugGuide.net
or this:
[color=blue][b][i]BugGuide.net[/i][/b][/color]
which would look like:
BugGuide.net
or this:
<span style="font-size:17px;color:blue;"><b><i>BugGuide.net</i></b></span>
which would look like:
BugGuide.net
or this:
<a name="Anchor Name Here" href="Site Here">Word Here</a>
which would look like:
<a name="anchor_test_ii" href="http://bugguide.net/node/view/15740">BugGuide.net</a>
which would be:
BugGuide.net
Then we could link to it:
http://bugguide.net/node/view/354750#anchor_test_ii
There are unlimited tags you can combine. Try it out!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Strike
You will want to type:
<strike>Word Here</strike>
Let's try it:
<strike>BugGuide.net</strike>
which would look like:
BugGuide.net
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Captions
Copy this code:
Skipper
Datana
Arctiid
<span style="margin-right:2px;border:1px solid #c6be9e;-moz-border-radius:8px;-webkit-border-radius:8px;padding:5px;text-align:center;display:block;float:left;background-color:#e6dbae;">[thumb:489150]
Caption Text</span>
Note: This uses the thumb tag, see
the thumb tag in this article.
Note: You can not use the same number in a thumb tag more than once in a page.
Note: You cannot go into the next line of code with another caption. Otherwise they will not display correctly.
Important Note: After the last caption is closed in each row of captions, place this line of code so your text is not hidden underneath each caption.
<span style="display:block;clear:both;"></span>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Symbols
Symbol entities can be used to show a symbol without activating markup
Here are some codes that can be used: (code_____symbol it turns into)
& (or &)_____&
[_____[
]_____]
<(or <)_____<
>(or >)_____>
•_____•
"_____"
°_____°
«_____«
»_____»
→_____→
←_____←
↓_____↓
↑_____↑
↔_____↔
⇒_____⇒
⇐_____⇐
⇓_____⇓
⇑_____⇑
⇔_____⇔
§_____§
≤_____≤
&ge;_____≥
≈_____≈
∼_____∼
≠_____≠
≡_____≡
≅_____≅
∗_____∗
√_____√
∞_____∞
∨_____∨
∧_____∧
♀_____♀
♂_____♂
See my collection of over 600 symbol entities on my website here.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
References
This is a list of all the forum topics on BugGuide that have helped me with this article
http://bugguide.net/node/view/354520
http://bugguide.net/help/markup
http://bugguide.net/node/view/353017
http://bugguide.net/node/view/341266
http://bugguide.net/node/view/258535#403776
http://bugguide.net/node/view/258535#534552
http://bugguide.net/node/view/258535#404027
http://bugguide.net/node/view/258535#404256
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
More
This was originally its own page, but I merged it with this markup page.
First of all, CSS stands for Cascading Style Sheets, a language used to style HTML elements.
The only type of CSS allowed in Bugguide messages is inline styling, styling within the HTML style attribute.
To learn more about this please see w3schools.com.
I will only cover a few very neat ways to enhance your messages here at BugGuide.
Creating Stunning Headers
To create headers such as above copy this code:
<span style="display:block;padding:5px;-moz-box-shadow: 2px 2px 10px #000000;-webkit-box-shadow: 2px 2px 10px #000000;-moz-border-radius:10px;-webkit-border-radius:10px;background:#c0c0c0;background:-moz-linear-gradient(top, #efecde, #c9c5ae);background:-webkit-gradient(linear, left top, left bottom, from(#efecde), to(#c9c5ae));font-weight:bold;font-size:20px;border:1px outset #e5dcb2;text-shadow:0px 1px 0px white;font-family:trebuchet ms, verdana, sans-serif">PLACE YOUR TEXT HERE!</span>
To create a code container like above use this code:
<span style="display:block;padding:5px;-moz-box-shadow: 2px 2px 10px #000000;-webkit-box-shadow: 2px 2px 10px #000000;-moz-border-radius:10px;-webkit-border-radius:10px;background:#c0c0c0;background:-moz-linear-gradient(top, #efecde, #c9c5ae);background:-webkit-gradient(linear, left top, left bottom, from(#efecde), to(#c9c5ae));font-weight:bold;border:1px outset #e5dcb2;text-shadow:0px 1px 0px white;font-family:monospace">PLACE YOUR TEXT HERE!</span>
For all of these 3d boxes, they will only look correct if you are using Safari, Firefox (a new version), or Google Chrome. Here is an image of what you will see if you use either of those 3 browsers:
This code was originally from my Insects gallery and my Forum.