HTML 101

Khomar's picture

I decided to start this little thread to explain some basics of HTML to improve the presentation of posts for those who are interested.



Image Tags

For the first lesson, I will show you how to change the size of your posted images to make them smaller and fit better on the page. You can see some of the changes I made on the Garden Thread.

First we start with the standard img tag.

<img src="http://hiddenplaces.org/main/img/logo.png" >

Most of you are familiar with this tag. Now to change the width or height, you simply add the width and height elements. Generally, you want to keep the same proportions between the height and the width as in the original image or otherwise the image will become distorted. This image was originally 80 x 88. I am going to double its size, so it will now be 160 x 176.

<img width="160" height="176" src="http://hiddenplaces.org/main/img/logo.png" >

Generally, you will have a larger image than what you will actually want to display on the page since most digital cameras generate very large image files.


Hyperlinks

Adding a hyperlink to change the text of a message is quite simple. Here is the basic structure

<a href="[insert URL here]">[Enter text here]</a>

So, for example:

<a href="http://hiddenplaces.org">Great Site!</a>

renders

Great Site!


Please let me know if you have any questions or additional topics you would like me to explain.

SCButterfly's picture

:)

brightdrrkness's picture

...

pocahontas's picture

LOL!

That is a fishing Tale!

-

A real friend is one who walks in when the rest of the world walks out. ~ Walter Winchell

Khomar's picture

Lesson #2 - Hyperlinks

Adding a hyperlink to change the text of a message is quite simple.

Here is the basic structure

<a href="[insert URL here]">[Enter text here]</a>

So, for example:

<a href="http://hiddenplaces.org">Great Site!</a>

renders

Great Site!

see-thru's picture

can ya like ...

put this on 'secondary links' or on the front page??

Khomar's picture

Let me know if this was helpful. If people are interested, I can continue posting helpful tips on HTML or go into more detailed training.

see-thru's picture

TOTALLY helpful.

LOL!!!! i just learned how to 'bold'!!!

krmaya's picture

Thanks Khomar,
I'm still learning about the tags, I don't know those by memory (or at all actually)but this is definitely helpful

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.