If you are seeing this message, it is possible the page did not load properly. Please hit reload/refresh on your browser.
If you still see this message, you probably do not have a browser that supports web standards, although its content is accessible to any browser or Internet device.

Cool Tips & Tricks Cool Tips & Tricks

Help Communities:
Help Forums Bug Base
<< Prev Topic | Next Topic >>
Cool Tips & Tricks ::: HTML FAQ ::: (HTML) Basics
New Topic    Add Reply
Topic: (HTML) Basics  (?)  Click to receive email notification of replies Click to stop receiving email notification of replies email this topic to a friend
Nutrocker

ezboard Moderator
ezSupporter
Posts: 9
Posted: 10/10/01 8:05 am    
(HTML) Basics
How to make links and use HTML to show images

I am posting a few answers to the most commonly asked HTML questions here.

You can use HTML in a post ONLY if it is allowed in that forum, and you can always use HTML in a signature, your advanced area, forum introduction, forum display name, announcement, and custom titles.

To make a word or phrase into a link :

<a href="your url here">words you want to show</a>

To make a word or phrase into a link that opens in a new window (more polite not to take users away from the board you posted at):

<a href="your url here" target="_blank">words you want to show</a>

How to make an image into a link (with no borders, looks nicer IMO):

<a href="http://send to this URL"><img src="http://url_of_image" border="0"></a>

To make a linked image that opens in a new window (more polite not to take users away from the board you posted at):

<a href="url you want to link to" target="_blank"><img src="url of picture" border=0></a>

To post a simple image with no link:

<img src="full_url_of_image" height="??" width="??" border="0">

Replace the ?? for the height and width of the image in pixels.
The border="0" is informing the browser not to surround the image with a border, if you want a 1 pixel border around the image use border="1" instead.

Note: The IMG tag does NOT require a closing tag! Most HTML tags do require a closing tag.

If you want any of this centered, add <center></center> before and after the whole code.

What if you want to create an e-mail link?
Replace the red section for your e-mail address.
<A href="mailto:yourname@youremailaddy.com">e-mail me</A>

What if you wanted to create an e-mail link using an image?
<A href="mailto:yourname@youremailaddy.com"><img src="full_url_of_image" height="??" width="??" border="0">
</A>


By strangelets edits by Nutrocker

Edited by: Nutrocker at: 11/8/03 2:13 pm

  reply to this message

Nutrocker

ezboard Moderator
ezSupporter
Posts: 44
Posted: 10/11/01 6:38 am    
Colored text-Simple stuff!
You can use font coloring (I pick the EASIEST STUFF!)

<font color="color or color code">This is the color!</font>

(note: the quotation marks are correct HTML but quotation marks can cause problems in the 'announcement' field. It will still work without them.)

marquee tips-
You can make a regular marquee by:

<marquee>This scrolls!</marquee>

Different direction? I can do that...

<marquee direction="Up, Down, Right, Left, and alternate">This marquee scrolls a different direction!</marquee>

(note: marquee only works in IE not in Netscape)
For more info on Marquees, please read this Marquee FAQ.

By The DekuKid

Edited by: Nutrocker at: 9/22/02 1:55:58 pm

  reply to this message

Nutrocker

ezboard Moderator
ezSupporter
Posts: 45
Posted: 10/11/01 6:39 am    
Re: Colored text-Simple stuff!
By Ankhesenset

(Not really a tip of the day, just a bump with some content. Feel free to delete/edit)

Text color, size and font

The basic HTML tag to control text is the FONT tag. It goes like:

<font face=' font' color=' color' size=' size'>text</font>

Example:

<font face='verdana, arial, sans-serif' color='red' size='2'>Verdana red text medium size here</font>

The "color" attribute can be a color name (such as "red" above) but HTML only recognize 140 of them. Or a color HTML hex code ('red' would be #FF0000) which gives you 16,777,215 possibilities.

A better way to format text is the <span> tag:

<span style='font-family: verdana, arial, sans-serif; color: red; font-size: 100%'>Verdana red text medium size here</span>

It's better because the FONT tags has been declared deprecated by the powers that be and - above all - because it allows much more fun. Especially about the size part.

Pictures with link

If you want to have a pic which links to somewhere when you click on it:

<a href='http://www.this-is-where-my-link-goes.com'><img src='http://www.my-fabulous-host.com/myreallycoolpic.gif'></a>

Browser compatibility

This is where I sound unfriendly (sorry).

Glowing text won't show in Netscape.
Scrolling (<marquee>) won't either.
Fixed background (via style sheets) will cause bleeding graphics in Netscape 4.x (hard to describe.)

There are many other things that won't work. When you design your board think about the users who don't use your browser. Test it with as many browsers as you can.

Clean HTML

(or how do I avoid my board from not loading at all)

Close your tags

<table> needs a </table>
<font> needs a </font>

and, above all

<*script> needs a </script>

There are few tags out there which don't need to be closed. Your browser needs to know when to end the table, the font variation, the script...


  reply to this message

Nutrocker

ezboard Moderator
ezSupporter
Posts: 61
Posted: 10/11/01 2:05 pm    
what the basic elements of a html page are
By atlass

Sometimes people get confused about what the basic elements of a html page are.

These are the parts of the html that are in your Custom HTML area:

<head> If code needs to be put within the head of your html document, then this will go in the FIRST box on the advanced page.

<body> If code requires putting within the body tag, then you need to use theSECOND box in the Custom HTML area.

BUT

If the code needs to be put in the body of your html, then this requires the THIRD or FOURTH box in the Custom HTML area.

WHAT IS THE DIFFERENCE?
The second box in Custom HTML area puts code into the body tag itself - so it will look like this:

<body extra code>

Whereas putting code into the body of the html will look like this:

<body>
extra code
</body>


There is a huge difference between these two areas, and they can cause massive differences in how your code works. If it works at all.

So when you take code from Dynamic Drive, check very carefully whether it is asking you to put code in the body tag or in the body of the html.

@

Edited by: Nutrocker at: 12/22/02 2:09:21 pm

  reply to this message

ezatlas

ezboard Moderator
ezSupporter
Posts: 257
Posted: 2/6/02 5:26 am    
making a table
Making tables is simple when you know how!

A table is comprised of three parts-

<table> - holds the whole thing
<tr> - table ROW
<td> - table CELL

When you open a tag, you must always close it again, and in reverse order of opening it. A <tr> always comes after a <table> tag, and a <td> always comes after a <tr> tag. Your text goes inbetween the <td> and </td> tags.

Example: a table with two rows, and two columns:

<table>
<tr>
<td>cell 1</td>
<td>cell 2</td>
</tr>
<tr>
<td>cell 3</td>
<td>cell 4</td>
</tr>
</table>

cell 1 cell 2
cell 3 cell 4


To make a table with different numbers of cells in each row, you need to add a command called colspan. For example, the next table has one column across the top, but two beneath:

<table>
<tr>
<td colspan=2>cell 1</td>
</tr>
<tr>
<td>cell 2</td>
<td>cell 3</td>
</tr>
</table>

cell 1
cell 2 cell 3


To add a border to your tables:

<table style="border: 1px solid #1100ff">
<tr>
<td style="border: 1px solid #cc0033">cell 1</td>
<td style="border: 1px solid #cc0033">cell 2</td>
</tr>
<tr>
<td style="border: 1px solid #cc0033">cell 1</td>
<td style="border: 1px solid #cc0033">cell 2</td>
</tr>
</table>

cell 1 cell 2
cell 1 cell 2


To give padding around the elements inside your tables, you add cellpadding, and to add space between each table cell you add cellspacing. These go into the <table> tag.

<table cellpadding="4" cellspacing="8" style="border: 1px solid #110033">
<tr>
<td style="border: 1px solid #cc0033">cell 1</td>
<td style="border: 1px solid #cc0033">cell 2</td>
</tr>
<tr>
<td style="border: 1px solid #cc0033">cell 1</td>
<td style="border: 1px solid #cc0033">cell 2</td>
</tr>
</table>

cell 1 cell 2
cell 1 cell 2


If you want to align the text inside your table to the center, and make your table a certain width, then you do it like this:

<table cellpadding="4" cellspacing="8" style="border: 1px solid #cc0000; width: 300px">
<tr>
<td colspan="2" style="border: 1px solid #cc0033; text-align:center">cell 1</td>
</tr>
<tr>
<td style="border: 1px solid #cc0033; text-align:center">cell 2</td>
<td style="border: 1px solid #cc0033; text-align:center">cell 3</td>
</tr>
</table>

cell 1
cell 2 cell 3


To add colour to your table cells, or borders, you add these commands into the <td> and <table> tags themselves. For example:

<table cellpadding="4" cellspacing="8" style="border: #cc00ff solid 3px">
<tr>
<td style="background-color: #44cc99">cell 1</td>
<td style="background-color: #44cc22">cell 2</td>
</tr>
<tr>
<td style="background-color: #ffcc99; border: 1px solid black">cell 3</td>
<td style="background-color: #446600">cell 4</td>
</tr>
</table>

cell 1 cell 2
cell 3 cell 4





  reply to this message

Nutrocker

ezboard Moderator
ezSupporter
Posts: 3209
Posted: 5/3/02 3:32 pm    
Protect Your Email Address From Spam Robots
If you would like to display your email address within your web pages or board, but are afraid it will be harvested by Spam robots, you can protect yourself. Instead of displaying the usual mailto:you@yourdomain.com, use the following code within your HTML:

<A HREF="mailto:you&#64;yourdomain.com">Contact Us</A>


  reply to this message

Nutrocker

ezboard Moderator
ezSupporter
Posts: 3210
Posted: 5/3/02 3:38 pm    
HTML Entities
www.mountaindragon.com/html/iso.htm


  reply to this message

Nutrocker

ezboard Moderator
ezSupporter
Posts: 5841
Posted: 12/1/02 3:24 pm    
Getting more from mailto
There may be instances where just a simple maito href tag just will not do. Here is a link to a site that covers most of what you may need to know.

www.outfront.net/tutorial...mailto.htm


  reply to this message

Nutrocker

ezboard Moderator
ezSupporter
Posts: 9394
Posted: 10/7/03 3:17 pm    
Nested Tables
A nested table is a table within a table.
The only rule you have to follow is that you must ensure that you 'nest' the table within a data cell of a table.
In other words in between the start TD and closing TD tags of a table.

Here is an example of a Nested table, the table 'nested' within the main table is in green code, the 'outer' or main table is in blue code.

  
<table cellpadding="0" cellspacing="8" height="200" style="border: #000000 solid 2px">
<tr>
<td align="center" width="200" style="background-color: #FFFFFF">
<table cellpadding="0" cellspacing="0" height="100" style="border: #cc00ff solid 2px">
<tr>
<td align="center" width="100" style="background-color: #44cc99">Nested table</td>
</tr>
</table>
</td>
</tr>
</table>

Edited by: Nutrocker at: 10/7/03 3:18 pm

  reply to this message

Click to receive email notification of replies Click to stop receiving email notification of replies email this topic to a friend

New Topic    Add Reply

jump to:
Topic Control Image::: Topic Commands
<< Prev Topic | Next Topic >>

Icon Legend

reply button:::Reply to Post Button   edit button:::Edit Post Button  delete button:::Delete Post Button (Moderator Only)

subscribe/unsubscribe to thread button:::Subscribe to Thread Button   email to friend button:::Email to Friend Button  



- Cool Tips & Tricks - HTML FAQ -

Communitiesezboard Help Communities:

Help Forums Help Forums Bug Base Bug Base





Powered By ezboard® Ver. 7.32
Copyright ©1999-2007 ezboard, Inc.