5.04.2010

Save Wetlands and Wildlife

For those that don't know, I live in New Orleans.  I just bought a Katrina-blighted property that I'm renovating.  I am a huge advocate for New Orleans in general, and the city has endured more than her fair share of hardships lately.

Now we are facing a man-made disaster just as we are beginning to move beyond defining our city in terms of Katrina.

I wanted to pass along information on resources to those interested in helping with the wildlife and environmental recovery efforts.  We are based in New Orleans, so this is very personal for us.

As you can imagine, things down here in New Orleans are tense as we wait for the oil in the Gulf of Mexico to begin coming ashore.  The other night I could actually smell the oil burning from my home.  It was an eery feeling.

A lot of people have asked me how they can help the wildlife and wetlands, so I am maintaining a list of organizations along the Gulf Coast that are in need of help.  The list is on Landscapedia at http://www.landscapedia.info/gulfRecovery.php and will be updated frequently as I get more information.

Please pass this list along to your list of contacts.  I am also passing along donations made directly from that page organizations working to save wildlife. Finally, there is a link to a great shirt made by a local company to raise funds.  100% of funds go to the Audubon recovery effort.

Thanks for sending this along.

Michael

4.29.2010

Optimizing Text, Links & Images - HTML for Garden Geeks


Poncirus trifoliata 'Flying Dragon'
Image courtesy of Landscapedia.info
When last we left our floating island of text, it was starting to come together. We had an image. It had a border. There was some text. All in all, it was coming along quite nicely.

In our final lesson, we are going to work with optimizing our text, links and images.

Now there are 2 ways to work with formatting text. You can hand code it, or you can use the format bar with your blog software. I believe in working smater, not harder. So let's just dress it up using our software, shall we?

First, let's italicize the scientific name of our plant. Highlight and select the appropriate button on your toolbar. Let's highlight and add our link back to our source. Now, let's shrink the source text down to smallest. You can add a return in there for some space if you like. You have probably done this a million times, so I won't spend any more time on it.

If you remember way back to another blog post (SEO for Garden Bloggers), you'll stop me (which you better) to gently remind me that we need to make our page a little friendlier to the search engines. You are absolutely correct to do so.

Let's flip over to our Edit HTML view of our draft blog post. Your island should look something like this (though some minor differences may apply depending on how your software translates your call-out):

<div style="background-color: #EFEFEF; border: 1px #6699CC; float: right; margin-left: 10px; padding: 5px;">
<img src="http://www.landscapedia.info/images/plant_images/Poncirus_trifoliata__Flying_Dragon_Flying_Dragon_Hardy_Orange.jpg" />
<p><i>Poncirus trifoliata 'Flying Dragon'</i></p>
<p style="font-size: xx-small;">Image courtesy of <a href="http://landscapedia.info/">Landscapedia.info</a></p>
</div>
 The first thing we are going to do is to add our alt property to our image. Search engines can't read images, so we have to tell them what our image is. Add alt="Poncirus trifoliata 'Flying Dragon'" to our img tag behind source. If you notice, there is a single quote AND a double quote. Double quotes define an element so you cannot have 2 sets of double quotes. However, we can use single quotes. We are also going to add a title property so that when someone hovers over our image, they get a nifty little floating tag letting them know what the image is. Let's add title="Poncirus trifoliata 'Flying Dragon'" behind our alt property. Now your img tag should look like:
<img src="http://www.landscapedia.info/images/plant_images/Poncirus_trifoliata__Flying_Dragon_Flying_Dragon_Hardy_Orange.jpg" alt="Poncirus trifoliata 'Flying Dragon'" title="Poncirus trifoliata 'Flying Dragon'" />
Quite long, huh? If you take a look at it though, it makes sense. We are telling the computer to display an img from this src on the web. We are providing search engines with an alt content of the image is so they can understand what we are showing our readers. Finally, we are telling it that you display a title when a reader hovers the mouse over the image.

Now you should be able to add the title tag to the link text yourself. Give it a try. Add a title property in the a tag behind href. Make up your own descriptive text.

Now our final call-out code should look like this:
<div style="background-color: #EFEFEF; border: 1px #6699CC; float: right; margin-left: 10px; padding: 5px;">
<img src="http://www.landscapedia.info/images/plant_images/Poncirus_trifoliata__Flying_Dragon_Flying_Dragon_Hardy_Orange.jpg" alt="Poncirus trifoliata 'Flying Dragon'" title="Poncirus trifoliata 'Flying Dragon'" />
<p><i>Poncirus trifoliata 'Flying Dragon'</i></p>
<p style="font-size: xx-small;">Image courtesy of <a href="http://landscapedia.info/" title="Landscapedia :: Inspiring Garden Design">Landscapedia.info</a></p>
</div>
Poncirus trifoliata 'Flying Dragon'
Poncirus trifoliata 'Flying Dragon'
Image courtesy of Landscapedia.info
That's it really. I know it took a long time to get here, but if you break everything down into small chunks, you can see what each piece means. Let me know if you have any questions, and I'll answer them in a follow-up post.

4.28.2010

Formatting Our Island - HTML for Garden Geeks

Previously :: Part 1 | Part 2 | Part 3

When last we left our draft blog post, we had managed to display a picture and some text. However, we hadn't quite gotten it to look like we wanted. We also didn't have text flowing around it. In fact, it was little more than an island of content that sat there more like a desert island instead of the tropical paradise we envisioned. (I need a vacation if you can't tell.)
<div>
<img src="http://www.landscapedia.info/images/plant_images/Poncirus_trifoliata__Flying_Dragon_Flying_Dragon_Hardy_Orange.jpg" />
<p>Poncirus trifoliata 'Flying Dragon'</p>
<p>Image courtesy of Landscapedia.info</p>
</div>
 Which gives us this as a display:


Poncirus trifoliata 'Flying Dragon'
Image courtesy of Landscapedia.info

It's a bit spartan. Let's dress it up. Go back into your Edit HTML on your draft blog post.

Let's start with the very first div tag, and add a bit of style. In fact, that's exactly the text we are going to insert.
<div style="">
This tells the computer that the part of the island from this first div tag to the last closing div tag will have this style. Inside the quotation marks, we'll tell the computer what we want our entire island to look like. Then in each of the individual tags, we tell the computer what we want each of the individual items to look like.


Poncirus trifoliata 'Flying Dragon'
Image courtesy of Landscapedia.info
Our island will have a background color, a border and some buffer space to keep text from running up against it. We'll also tell our island to float. All of this in between those pesky quotation marks, and it will end up like the example to the right.

To make our island float, we add float: right; to the style. Notice that we put the style element name (float) then follow it with a colon (:). We tell it where we want it to float (right) then finish it with a semi-colon (;). So now it looks like:
<div style="float: right;">
Now we simply add in each of the other formatting styles in the quotes behind the float. Let's work on our background color next. The style name is background-color and we can get the number for our color from a ton of websites (http://html-color-codes.info/). Now remember that you can play with all of the numbers as long as you stay between 0-9 and A-F. Our color code, light gray, is #EFEFEF. It's the lightest gray you can get before white. Now our tag should look like:
<div style="float: right; background-color: #EFEFEF;">
OK, let's really dress it up with a border. I picked a thin blue border with a dashed line. The element name is, yep, you guessed it, border. You already know where to get the colors. To make it thin, we set the width to 1px. We can also set it to solid, dashed or dotted. Put it together and our tag now looks like:
<div style="float: right; background-color: #EFEFEF; border: 1px dashed #6699CC;">
Don't worry if your blog software changes your color codes to something that says RGB. Just change it back to this format to play with colors.

Finally, we want to buffer our island so that we don't have text running up against our carefully designed border. Remember that we need to add a buffer outside the island and inside the island. Margins add buffers outside the island. Padding adds buffers inside the island. You can also buffer top, bottom, right and left instead of everything. Let's start with a buffer inside the island all the way around. We'll use padding: 5px; to put a small buffer in.

Now to add a buffer to the left of the island outside, we'll use margin but change it slightly. Let's add margin-left: 10px; to put in an outside left buffer. Now our code should look like:
<div style="float: right; background-color: #EFEFEF; border: 1px dashed #6699CC; padding: 5px; margin-left: 10px;">
There are many more style elements you can add to your island. Play with the ones I gave you by changing the colors, line types and numbers. Tomorrow, we are going to format our the content inside our island to make it look snappier.

4.27.2010

Displaying Text & Images - HTML for Garden Geeks


Poncirus trifoliata ‘Flying Dragon’
Image courtesy of Landscapedia.info
Previously :: Part 1 |Part 2

Now in our previous 2 lessons, you learned about the basics of HTML structure. Today, we are going to create a basic version of our example to the right.

If you recall, we first have to set up our island of text that all other text is going to flow around. To set up a new island, we start with:
<div></div>
 This tells the computer that everything inside here is it's own thing independent of the rest of the page. Now let's add our picture by using the img tag.
<div><img src="http://www.landscapedia.info/images/plant_images/Poncirus_trifoliata__Flying_Dragon_Flying_Dragon_Hardy_Orange.jpg" /></div>
If you look inside the img tag, you will see something new, src which simply means source. If you look at the text we put in the quotations, it's a web address to the picture we want to use. We've told the computer to set us up an island of content and put inside of it a picture from a certain web address.

Now, behind the img tag, we can add a paragraph of text with
<p>Poncirus trifoliata 'Flying Dragon'</p>
Also, another paragraph citing the image source.
<p>Image courtesy of Landscapedia.info</p>

So now our entire code is
<div>
<img src="http://www.landscapedia.info/images/plant_images/Poncirus_trifoliata__Flying_Dragon_Flying_Dragon_Hardy_Orange.jpg" />
<p>Poncirus trifoliata 'Flying Dragon'</p>
<p>Image courtesy of Landscapedia.info</p>
</div>
 If you click on Edit HTML (or similar function) on your draft blog post, type that in.  You should see

Poncirus trifoliata 'Flying Dragon'
Image courtesy of Landscapedia.info

Looking at this, it looks very different from our finished example. Tomorrow, we are going to start formatting it so that it looks more like our example.

4.26.2010

Tags - HTML for Garden Geeks


Poncirus trifoliata ‘Flying Dragon’
Image courtesy of Landscapedia.info
Before I start, I want to acknowledge all of those IT pros who are going to roast me for oversimplifying things. However, I promised you that I'd show you just enough without making your head hurt. If you digest this and want more, then at the end, I'll suggest a few excellent resources to take my simplistic explanations to the next level. Let's get started.

Previously :: Part 1

The code on this web page does 2 things. First, it tells your computer what to display.  That's the words and pictures you see. Second, and as important, it tells your computer how to display it. It's the how that makes the magic.

To build our call-out image to the right, you have to know a little (and I do mean very little) about how a web page is structured. Surrounding each piece of content is a TAG. Tags tell the computer the how.

It's also the tags that intimidate the hell out of people. So we are going to start slowly by explaining the 4 different tags used in our example. Remember that if you open it, you have to close it, just like the front door to your house.

<div></div> tags define a stand alone element in a page. For example, the entire call-out is content independent of the text you are reading now. It behaves in its own way allowing the rest of the page to flow around it. Think of these tags as establishing islands in the sea of content on a page. If you open a <div> at the beginning of an element, you close with a </div> at the end of the element to tell the computer the start and end of the element.

<p></p> tags establish paragraphs of text such as Poncirus trifoliata 'Flying Dragon' in our example. Or this paragraph of text. If you open a <p>, you close with </p> at the end of the paragraph to tell the computer you are done with this paragraph.

<img /> tags tell the page to display an image. You close the tag within itself with the / before the closing bracket.

<a></a> tags tell the computer that the enclosed text/picture is hyperlinked to another web page either on this site or another one. You close this tag after the link text.

This will make a lot more sense as we work through our example. Tomorrow in Part 3, we'll start with the basics to display an image and text.

4.23.2010

HTML for Garden Geeks


Poncirus trifoliata ‘Flying Dragon’
Image courtesy of Landscapedia.info
The web has been made so "consumer-friendly" that my friend Alyson, who is a web producer for a major media company, told me that the new web producers don't even know how to edit basic web pages to create the image to the right.  Holy crap!

So if web professionals don't know Hypertext Markup Language (HTML), then what are the chances a blogger will know the language this web page is written in?  Why would you even want to know?

The reason you need to know is that on occassion, you will need to either fix a problem or make some custom formatting that isn't point and click.

There are very long books on teaching yourself HTML that are dry as toast. I'm going to teach you just enough HTML so that your friends will think you are genius, but not enough that you'll get bored. Besides, your blog software will probably take care of 99% of your formatting needs.

If you want to see how your blog is formatted in HTML, go to the top of your browser, select View -> Page Source (or similar function depending on browser). This will open up the page to give you the raw text - content, formatting, etc. Go ahead. Don't be scared.

If you took one look and said, "Yeah, ok, it's an header tag followed by meta information, then onto the body tag", you don't really need to read this, so go watch some TV. Otherwise, it probably looked like a mash of words that resembled English but not anything that made sense.

We are going to break things out so you can add, link and format a simple image. Then we are going to add a formatted caption to it. By the end of the lessons, you'll have the image above.

Here is what you will need to get started:
    - 1 new draft blog post

Yep, that's it. In part 2, I'll explain how web pages know what to display along with the basics for our sample above.

4.22.2010

Facebook and Google Own the Web

I've spent some timeplaying with the latest announcement from Facebook, Open Graph (http://developers.facebook.com/docs/opengraph), which lets websites integrate the "Like" feature into their web pages. Let me say it clearly for those of you who do not yet know.

Facebook and Google own the web and allow the rest of us to play in it.

I've heard a lot lately that structured content is the next big wave on the web, but now I believe it with Open Graph.  Structured content lets the web know what the content is, not just what to display. I'll use the exact example given to me.

A teacher enters grades on a spreadsheet with column titles. You know the GPA by looking at the top of the column and seeing "GPA". When you copy that number to a new spreadsheet, it no longer has a context so no one knows what it is. With structured content, when you copy the number, the spreadsheet knows that it's a GPA.

That's how structured content works on the web. Search engines will soon be able to index a page and understand the content through the context if it is formatted correctly.  That's a huge leap forward in the evolution of the internet. So instead of just searching for some random keywords, the search engine will know that a search for Cornus florida is a search for a horticultural plant.

There is a mad scramble among the web world to try to figure out how to make the most of these changes. I have no idea how this will play out, but I do know it will have a major impact on how we all publish and find content.

You can see the experiments I've been running with it on Landscapedia.  I've added the Facebook "Like" to different pages. Check out the "Like" button on the right hand side of this page http://www.landscapedia.info/plant.php?plantID=1106.

I'll keep you updated as I learn things, but in the meantime, you can see more about Facebook's latest announcement (http://www.mediabistro.com/agencyspy/social_media/facebook_open_graph_everything_we_know_so_far_159278.asp) along with the underlying technology (
http://opengraphprotocol.org/).