News: Phentermine Online With Insurance No Prescription Cheapest Buy Phentermine Buy Phentermine Sat Delivery Cod Phentermine Without A Prescription Saturday Delivery Cheap Phentermine 37 5mg Phentermine Rxdrug Phentermine Order Cod Phentermine 37.5 Mg Tab Phentermine Prices Pharmacy Online Real Phentermine 37.5 Without Prescription Phentermine Overnight Phentermine Didrex Vs Phentermine Buy Phentermine Online No Scrip Cheap Phentermine Extra Cheap Phentermine Danger Phentermine Online Pharmacy Best Price Phentermine Vs Adipex Phentermine Ingestion By Pets

We all know about forms. We see them all over the place. Forms are the method used to collect information. If you want people to, for example, subscribe to your newsletter then a form is what you need. This article does not cover CGI scripts. If you want information just Google ‘mail scripts’ and you’ll find lots of free ones with instructions.

We’re going to look at the [FORM] and [INPUT] tags with some of their attributes.

Further we’ll look at the [SELECT], [OPTION] and [TEXTAREA] tag with its ROWS attribute.

Here’s a simple form.

Please click the “Examples” link below to see the illustrations.

Here’s the HTML. You’ll notice that the form has been placed in a table to proportion and organize it neatly. But we’re going to pay attention to the form itself.

[TABLE]

[FORM ACTION=”http://www.your-domain.com/cgi-bin/formmail.cgi” METHOD=”post”]

[TABLE WIDTH=”300″ BORDER=”3″ CELLSPACING=”5″ BG BORDER]

[TR]

[TD WIDTH=”50%”]Your Name:[/TD]

[TD WIDTH=”50%”][INPUT TYPE=”text” NAME=”fullname” MAXLENGTH=”25″][/TD]

[/TR]

[TR]

[TD WIDTH=”50%”]Your E-Mail:[/td]

[TD WIDTH=”50%”][INPUT TYPE=”text” NAME=”email” MAXLENGTH=”25″][/TD]

[/TR]

[TR]
[TH WIDTH=”50%”]

[INPUT TYPE=”submit” VALUE=”Subscribe Now!”][/TD]

[TH WIDTH=”50%”]

[INPUT TYPE=”reset” VALUE=”Clear form”][/TD]

[/TR]

[INPUT TYPE=”hidden” NAME=”recipient” VALUE=”you@your-domain.com”]

[INPUT TYPE=”hidden” NAME=”subject” VALUE=”Newsletter”]

[INPUT TYPE=”hidden” NAME=”required” VALUE=”fullname,email”]

[INPUT TYPE=”hidden” NAME=”confirmation” VALUE=”thanks.html”]

[INPUT TYPE=”hidden” NAME=”ref” VALUE=”code”]

[/FORM ]

[/TABLE]

We start with the [FORM] tag which encloses our form. I’ll be handling the ACTION and METHOD attributes at the end.

Next the [INPUT] tag and its NAME and MAXLENGTH attributes.
[INPUT] is easy; here we input data in one form or other. The TYPE indicates what sort of input we’re dealing with, in this case plain text. The data of the NAME attribute is the title or description we give that data element; in the first line “fullname” and the second “email”. Both fields have been given a MAXLENGTH of “25″but different values for SIZE. MAXLENGTH is the maximum number of characters which may be entered; SIZE is the physical size of the field that you see. For the rest of the forms in this section I have just used the former attribute.
The TYPE sorts “submit” and “reset” generate our buttons at the bottom of the form allowing people to submit or clear the form if they change their minds. The VALUE attribute, which we see for the first time, lets us define the text we want on the buttons.

The TYPE “hidden” is an interesting one. It lets us define certain parameters for our form that won’t be visible to the reader but give parameters through to the web-side script.

Let’s look at the different VALUE’s we’ve used here as “hidden” elements.

NAME=”recipient” VALUE=”you@your-domain.com”
This informs your server-side script where the form information must be sent to. Don’t worry about scripts now, I’ll be touching on them later with the ACTION and METHOD attributes.

NAME=”subject” VALUE=”Newsletter”
When you receive the form information the email subject will be, in this case, “Newsletter”

NAME=”required” VALUE=”fullname,email”
This informs your system that the named fields are compulsory, if either isn’t filled in then the person is rerouted to “whoops.htm” (see below)

NAME=”confirmation” VALUE=”thanks.html”
This is where your visitor is taken after successfully submitting the form

NAME=”ref” VALUE=”code”
Lets you have the form send an extra piece of information for, for example, marketing purposes.

Last but not least, I included a CSS instruction in this form to color the two buttons. That’s the STYLE attribute. Let’s you freshen up your form.

Right, such a lot of information just for a simple form with only two fields but they’re the majority of things to be considered with a form. Let’s look at a couple of other sorts of [INPUT] possibilities now.

Please look at example 2.

Here’s the HTML. I’ve just shown the “checkbox” coding.

[TR]

[TH COLSPAN=”2″]Please check the newsletters you’d like.[/TD]

[/TR]

[TR]

[TH]Hayes’ Homilies[/TH]

[TH][INPUT TYPE=”checkbox” NAME=”choice” VALUE=”Hayes Homilies” CHECKED][/TH]

[/TR]

[TR]

[TH]Web Search[/TH]

[TH][INPUT TYPE=”checkbox” NAME=”choice” VALUE=”Web Search “][/TH]

[/TR]

[TR]

[TH]HTML Tips [/TH]

[TH][INPUT TYPE=”checkbox” NAME=”choice” VALUE=”HTML Tips “][/TH]

[/TR]

The form lets our subscribers choose more than one newsletter. Let’s take a closer look at this new element.

TYPE=”checkbox” NAME=”choice” VALUE=”Hayes Homilies” CHECKED

The TYPE is clear; it’s a “checkbox”, a box which one can check or not. The NAME is the same for all input elements as it is one choice element with multiple answers possible. What you would see in your email with the form information would be some thing like:

“choice=Hayes Homilies”

“choice=Websearch”

“choice=Elvis Monthly ”

Of course when the person had checked these three. A word about the attribute CHECKED. This allows you to pre-check one of the choices in the hope that the subscriber won’t uncheck it. A bit of hard selling.

What when you want to give them only one choice.

Please look at Example 3.

Here’s the HTML. Again I just show the “radio” coding.

[TR]

[TH COLSPAN=”2″]Please check the newsletter you’d like.[/TD]

[/TR]

[TR]

[TH]Hayes’ Homilies[/TH]

[TH][INPUT TYPE=”radio” NAME=”choice” VALUE=”Hayes Homilies” CHECKED][/TH]

[/TR]

[TR]

[TH]Web Search[/TH]

[TH][INPUT TYPE=”radio” NAME=”choice” VALUE=”Web Search “][/TH]

[/TR]

[TR]

[TH]HTML Tips [/TH]

[TH][INPUT TYPE=”radio” NAME=”choice” VALUE=”HTML Tips “][/TH]

[/TR]

This form lets our subscribers choose only one newsletter. The only difference between this coding and the “checkbox” form is that the TYPE data is now “radio” which only allows one choice.

The [SELECT] and [OPTION] tags.
These allow you to put your selection list in a mini-window, if needed, with a scroll bar.

Please look at Example 4.

Here’s the HTML.

[TR]

[TH COLSPAN=”2″]Please check the newsletter you’d like.[/TD]

[/TR]

[TR]

[TH COLSPAN=”2″][SELECT NAME=”choice”]

[OPTION SELECTED /]Hayes’ Homilies

[OPTION /]Web Search

[OPTION /]HTML Tips

[OPTION /]Hayes’ Hints

[OPTION /]Web Business

[OPTION /]HTML Advanced

[/SELECT][/TH]

[/TR]

It should be obvious that your selection list must be enclosed by the [SELECT] and [/SELECT] tags and that each selection possibility preceded by the [OPTION] tag. With this method your subscriber can only select one newsletter. And by using the SELECTED attribute, yet again, we’re trying to help them make up their mind.

You see that the SIZE attribute is set to “4″. This is to demonstrate the scroll bar. Had I defined “6″ then the scroll bar would not be present and you would see all choices in the window.

Last but not least.

Sometimes you’d like your subscribers to tell you what they thought of your website and that’s where the [TEXTAREA] tag comes in.

Please look at Example 5.

Here’s the HTML.

[TR]

[TH COLSPAN=”2″]Please comment on my website.[/TD]

[/TR]

[TR]

[TH COLSPAN=”2″] [TEXTAREA ROWS=”5″ NAME=”choice”]

[/TEXTAREA ][/TH]

[/TR]

It couldn’t be simpler. And the [ROWS] attribute indicates how many rows are visible, not the type-in limit. If your subscriber types in more that the scroll bar appears, try it.

Now we’re going to look at the [FORM] tag with its, ACTION and METHOD attributes. I’m going to start with the METHOD attribute. We usually use the “post” option, this results in the contents of the form being emailed to, in this case, me. The other option, “get” results in the form’s contents being added to a URL in order to, for example, do a search via a search engine. So for us it’s the “post” option.

We can fill METHOD in, in two ways; the first way sends the form’s contents to a script somewhere in order to be unravelled, the second just emails the raw data to our given email address.

Let’s look at that first one.

FORM ACTION=”http://www.your-domain.com/cgi-bin/formmail.cgi” METHOD=”post”

Via this definition the contents of our form will first be sent to the CGI script formmail.cgi in the [B]cgi-bin[/B] in our website www.your-domain.com where it will be ‘unravelled’ and sent to us in a readable form. See example 6.

FORM ACTION=”mailto:you@your-domain.com” METHOD=”post”

And this is what the email we receive looks like. See example 7.

The difference is quite clear. With this one it’s up to you to do the unravelling, as you can see, the fields are separated by the “&” character and characters, like “/” and “;”, are translated into hexadecimal codes.

Here we’re looking at the [IMG] tag and it’s attributes SRC, ALIGN, ALT, BORDER, HEIGHT, WIDTH and USEMAP, and then the [MAP] and [AREA] tags with the NAME, SHAPE and COORDS attributes. And we’ll be coming back to the [BODY] tag briefly.

If you intend to have a webpage you’ll find that images will be unavoidable. Whether they’re photos of your product or graphical images like banners and buttons, you will need them.

To make and manipulate graphics and to manipulate photos, you’ll need a system like Paint Shop Pro which I find quite excellent. There are more out there so you can shop around but for explanation purposes in this article my reference will be PSP. A word of advice; most systems can be bought on the web and downloaded, If possible don’t!. Go to your local PC shop and buy it, that way you get the user’s manual; that is vital.

I’m going to start with photos. You can digitize them in different ways. Scan them in, download them or use a digital camera. Make sure you’ve set up a separate directory for your images so you know where to find them.
Right, let’s look at photos.

First let’s have a look at some random photos. Please select “Random pictures” on your links page.

Lots of photos but presented in a rather messy, unstructured way. Simply programmed like this:
(<>’s have been replaced with [ ]’s in order to invalidate the HTML.)

[IMG xsrc=”photo04.jpg” HEIGHT=”312″ WIDTH=”200″][BR /]

[IMG xsrc=”photo05.jpg” HEIGHT=”200″ WIDTH=”300″][BR /]

[IMG xsrc=”photo06.jpg” HEIGHT=”225″ WIDTH=”300″][BR /]

[IMG xsrc=”photo07.jpg” HEIGHT=”300″ WIDTH=”202″][BR /]

[IMG xsrc=”photo08.jpg” HEIGHT=”200″ WIDTH=”300″][BR /]

[IMG xsrc=”photo09.jpg” HEIGHT=”230″ WIDTH=”300″][BR /]

No attempt at an ordered presentation. We could have done it like this. I’ve added three more snaps.

Please select “Gallery” on your links page.

Here the use of a TABLE has given some order.

[DIV ALIGN=”center”]

[TABLE BORDER=”5″ BORDERCOLORLIGHT=”beige” BORDERCOLORDARK=”brown” WIDTH=”50%”]

[TR][TH COLSPAN=”3″]The Mike Hayes Photo Gallery

[TR]

[TD][IMG xsrc=”photo01.jpg” WIDTH=”100″ HEIGHT=”100″][/TD]

[TD][IMG xsrc=”photo02.jpg” WIDTH=”100″ HEIGHT=”100″][/TD]

[TD][IMG xsrc=”photo03.jpg” WIDTH=”100″ HEIGHT=”100″][/TD]

[/TR]

[TR]

[TD][IMG xsrc=”photo04.jpg” WIDTH=”100″ HEIGHT=”100″][/TD]

[TD][IMG xsrc=”photo05.jpg” WIDTH=”100″ HEIGHT=”100″][/TD]

[TD][IMG xsrc=”photo06.jpg” WIDTH=”100″ HEIGHT=”100″][/TD]

[/TR]

[TR]

[TD][IMG xsrc=”photo07.jpg” WIDTH=”100″ HEIGHT=”100″][/TD]

[TD][IMG xsrc=”photo08.jpg” WIDTH=”100″ HEIGHT=”100″][/TD]

[TD][IMG xsrc=”photo09.jpg” WIDTH=”100″ HEIGHT=”100″][/TD]

[/TR]

[/TABLE]

[/DIV]

As you saw in the first show of photo’s they are not actually the same size so if we stuff them into this table and make them all the same size, a size which is not proportional for each particular photo, then some distortion does occur.

Let’s continue now with the positioning of one image on a page. This series of examples are of the vertical alignment of images in respect to the line of text it’s positioned in. The first example shows the ALIGN attribute with the “bottom” option, also the default option.

Please select “ALIGN=”bottom on your links page.

Let’s look at the coding

[IMG xsrc=”http://www.my-web-site.com/test/photo02.jpg” WIDTH=”64″ HEIGHT=”96″]

This is a photo of my Jack Russell terrier, her name is Daisy and she travels all over Europe with me.[BR /]
With this option, the bottom of the image is aligned with the bottom of the current line of text.[BR /]
If an [FONT][B]IMG[/B][/FONT] statement [I]follows[/I] the text then the alignment is with the bottom of the last line of text.

[IMG xsrc=”http://www.my-web-site.com/test/photo02.jpg” WIDTH=”64″ HEIGHT=”96″]

You can manipulate so that the alignment is different. With the “middle” option for example.

Please select ALIGN=”middle” on your links page.

Let’s look at the coding.

[IMG xsrc=”http://www.my-web-site.com/est/photo02.jpg” WIDTH=”64″ HEIGHT=”96″ ALIGN=”middle”]

This is a photo of my Jack Russell terrier, her name is Daisy and she travels all over Europe with me.[BR /]
(With this option, the middle of the image is aligned with the middle of the current line of text.)

[IMG xsrc=”http://www.my-web-site.com/test/photo02.jpg” WIDTH=”64″ HEIGHT=”96″ ALIGN=”middle”]

And last the “top” option.

Please select ALIGN=”top” on your links page.

Let’s look at the coding.

[IMG xsrc=”http://www.my-web-site.com/test/photo02.jpg” WIDTH=”64″ HEIGHT=”96″ ALIGN=”top”]

This is a photo of my Jack Russell terrier, her name is Daisy and she travels all over Europe with me. [BR /]
(With this option, the top of the image is aligned with the top of the current line of text.)

[IMG xsrc=”http://www.my-web-site.com/test/photo02.jpg” WIDTH=”64″ HEIGHT=”96″ ALIGN=”top”]

So we see that these methods place the image with regard to the text line that it’s embedded in. And that could be anywhere on the page, left, right, middle.

Do you want a BORDER around your image? Well, for images that are also links, the browser will usually put a 2 pixel border round it. You can, of course, manipulate the data for this attribute. But first, let’s experiment.

If you want a border round your picture you need the BORDER attribute

Please select ALIGN=”Border” on your links page.

Coded like this.

[IMG xsrc=”images/photo09.jpg” BORDER=”10″]

As you see from the example the default color for borders is black.

Flexible images.

Imagine you’re an art teacher who gives lessons on the internet and you want to talk about some different colors. A figure/painting like this could help me.

Please select “Abstract” on your links page.

The purpose could be that when someone clicks on one of the colors they would be sent to a page or site with information of that color.

For this we need the tag MAP with it’s NAME attribute and the AREA tag with it’s SHAPE and COORDS attributes. The coding of this example is beyond the scope of this article but can be found in book mentioned below. To be clear, the MAP doesn’t have to be a graphic, a drawing; it could be e.g. a photograph of a face with links from the eyes, nose, ears, etc.

There are different sorts of image files available but we’ll most probably only use two. For photo’s, where we want a reasonable level of quality, we’re going to use the “jpeg” format and for graphics, images like banners and buttons, we use “gif”. An aspect of images which you have to pay attention to is the size as this influences the download time and as we all know, we hate waiting for the images to appear. We can improve this in two ways.

We can make our images very small to speed up the download, but then they’ll either be too small to make any impression, or, if we adjust the size with the HEIGHT and WIDTH attributes, their quality will be abominable. Look at these examples.

Please select “First two” on your links page.

As you see the top image, (size 50 by 37), is unrecognizable when small but when enlarged its dreadful!
So let’s see the real image. The first one is the original image, it’s 1280 by 960 and is 77kb. I’ve reduced it’s display size with the HEIGHT and WIDTH attributes to 500 by 375. The one that follows has been physically reduced by my graphics program to 500 by 375 and takes up 11kb of disc space!

Please select “Second two” on your links page.

Notice the difference. The first of the two is of a slightly better quality but the second is good enough and it speeds up download time considerably.

With graphics, banners, the non-photgraphic pictures, etc., I use the “gif” option.

Another way to reduce the download time is as follows. At save time choose ‘options’ and then “progressive encoding” for “jpg” files and “89a/interlaced” for “gif”. The method of saving may be different for the different graphics programs so study your documentation.

Frames allow a web page to be viewed as a window divided into a specific number of subwindows. In a web page, each frame will represent an HTML document. This allows for a web page to be divided into a specified amount of rectangular regions, with each region representing a different HTML document. Frames are commonly used when particular web content, such as a web page logo and navigational menu, needs to be displayed in multiple web pages. This allows for one frame region (such as the frame with the web page logo and navigational menu) to be static while other frame regions are being loaded with different web documents.

In a normal HTML document, the “body” section immediately follows the “head” section. When using frames, the “body” section will be moved to a “noframes” section where only browsers that do not support frames seek for information about the page. This calls for the normal “body” section of a frames web page to be replaced with a “frameset” section which defines the frame layout of the web document.

To define a web page using frames, web authors must use the opening and closing tags, which can also contain nested “framesets” and “frames” referencing the actual URLs of the web documents to be rendered in the frame cells. The tag has the following attributes:

* row=”#” –> specifies horizontal frame divisions represented by #; can be pixel values, percentage values, or * asterisk entry denoting whatever space is left.
* col=”#” –> specifies vertical frame divisions represented by #; can be pixel values, percentage values, or * asterisk entry denoting whatever space is left.
* frameborder=”#” –> specifies whether frame cells will have borders; 1 (default) representing show borders; 0 is often used with border=”0″ and framespacing=”0″
* border=”#” –> specifies the thickness of the border between cells; default value is 5.
* framespacing=”#” –> specifies the thickness of the border between cells; default value is 5.

To specify the web documents to be rendered in each frame division, use the element, which must be placed inside the tags. The element has the following attributes:

* xsrc=”URL” –> specifies the URL of the web document to be placed inside the current frame cell.
* name=”" –> declares a name for the current frame cell so , , and

can use their target=”" attribute to render documents in the cell.
* frameborder=”#” –> specifies whether frame cells will have borders; 1 (default) representing show borders; 0 no borders; also overrides info.
* marginwidth=”#” –> specifies left and right margins of the cell represented by #
* marginheight=”#” –> specifies top and bottom margins of the cell represented by #
* scrolling=”" –> specifies whether scroll bars will be displayed if needed; yes represents use scroll bars, no represents no scroll bars.
* noresize –> disables visitor ability to resize frame regions

The element is used to provide information to browsers which do not support frames. A browser that supports frames will ignore the text inside <noframes>, but a browser that does not support frames will ignore the <noframes> tags and display the internal text. Text inside the <noframes> tags should be used to supply the visitor with an alert that the web page is constructed with frames and also a link to a web page that is not constructed using frames.

Frame cells can also be given a name for hypertext referencing techniques. This allows for hyperlinks to place certain web documents into certain frame cells. This is a common technique when using frame documents. This is accomplished by giving names to frame cells through the use of the name=”" attribute of the tag. Then, the hyperlink can issue an operation using the target=”" attribute of the tag, specifying the name of the frame cell to use as the target value. If no target value is specified, the web document will be displayed in the current frame cell. Elements that are capable of using the target=”" attribute are , , and
.

Frames also come equipped will four pre-defined frame names used when specifying target attributes for hyperlinks. The predefined frame names are as follows:

* _blank –> causes the linked web document to be displayed in a new unnamed browser window
* _top –> causes the linked web document to be displayed in a full window space of the current browser window
* _parent –> causes the linked web document to be displayed in the frame cell occupied by the parent of the current web document
* _self –> causes the linked web document to be displayed in the current frame cell

Study the following frame web document examples to see how all frame elements combine to complete the structure layout of a frames web document.

The following is an example of how frames can be used to design a simple links navigation as a left pane region of the web page, with the leftover space of the document designated as the current web page’s information.

—————————————————————–




<br /> <body><br /> This web page is constructed using frames.<br /> Your web browser does not support frames.<br /> Seek, nonframes version.<br /> </body><br />


—————————————————————–



Page Contents

Link 1

Link 2

Link 3

Link 4



—————————————————————–



Information Page

Welcome. Here you can find….



—————————————————————–

Click on the following link to see the above code in rendered form: Frames Example 1.

The following is an example of how frames can be used to display a website logo and title in the top region of the layout, with a left pane region containing navigational links, and a right pane lower region used as the current web document information.

—————————————————————–






<br /> <body><br /> This web page is constructed using frames.<br /> Your web browser does not support frames.<br /> Seek, nonframes version.<br /> </body><br />


—————————————————————–



Web Page Logo / Title



—————————————————————–



Information Page

Welcome. Here you can find….



—————————————————————–



Page Contents

Link 1

Link 2

Link 3

Link 4



—————————————————————–

Click on the following link to see the above code in rendered form: Frames Example 2.

Frames are useful because they can make particular regions in a web document remain “static” while other regions render new web documents. This allows web designers to save time by not writing repetitive HTML code for multiple documents; they can simply “include” the code HTML as a “static” frame. On the other hand, there are serious drawbacks that have led many designers to avoid using frames. Firstly, without diligent updating, a website constructed using frames can lead visitors to “mystery” destinations, such as clicking on a link and being sent to a wrong web page. Book marking can become tricky because the address of the website will only show the top-level web document, normally the frames specification page. This causes many visitors to bookmark web pages that they did not intend to bookmark. Also, older browser versions may not be able to support frame documents. Whatever the case may be, any website created using frames can also be created without frames, and the non-frames version will generally be more stable and efficient.

You have reached the end of the HTML Made Simple tutorial. If you have any questions about anything in the tutorial, or have a question about particular HTML code used in the tutorial, please contact me about it and I will get back with you as soon as possible. Happy coding and be sure to check back for updates!

Image Maps / Tricks

One of the most important aspects of web page and web site creation is devising a unique layout design that catches visitors’ attention. A web site or web page should have an appropriate title, a logo based on the title, a few matching colors (for links, background colors, border colors, image colors, etc.), additional logos and images depicting document content, and finally an overall layout of some type that organizes and displays the document’s content in a unique way, to set it apart from other web sites already in existence.

To be a successful image creator, a web designer must become familiar with a high-level paint program such as Paint Shop Pro 5. A web site layout is definitely the most important aspect of being unique, and a paint program plays a huge role in creating unique images. The layout of a web page should also make it very easy for visitors to understand how to navigate through the site, and it should provide easy navigational methods. Many web designers prefer a column on the left side of the web page to be designated as a navigational menu, and others prefer navigational menus extended horizontally across the top of the page. Whatever scenario designers choose, they should ensure, visitors will fully understand where the navigational menu is located and how to use it. It may take many attempts to design and create the perfect layout for a web page, but in the end, it is well worth the effort.

When creating and designing images for a web page, keep in mind the HTML aspect of image mapping. Image maps create linkable sections or “hotspots”, in an image defined in HTML, by coordinates of the image. A web page could contain only one image, but the image could have ten “hot” spots on the image, used for linking to other web documents. Web document URLs are associated with the “hot spots”. Image mapping is very useful for navigational menus, table of contents and toolbars.

From the HTML code point of view, image maps consist of three parts:

Firstly, some place in the HTML source of the body of the document, an image map must be declared using the element. This element has one attribute, name="", which is used to associate a name for the image map. Secondly, the element, is placed inside the element and it can take the following attributes: shape="", coords="", href="", nohref="" and alt="". The shape="" and coords="" attributes define a region on the image. If no shape is specified, the default shape used is rectangle. Finally, the image search element goes in the document wherever the “mapped” image will appear. The usemap="#" attribute must be included to specify the name of the image map to use.

Possible Shape Attributes:

  • shape="rect" coords="left-x, top-y, right-x, bottom-y"
  • shape="circle" coords="center-x, center-y, radius"
  • shape="poly" coords="x1,y1, x2,y2, x3,y3, ..."

Note: x and y are measured in pixels from the left/top of the image.

Image Map Example:









Sample image

The above HTML code would produce the following results in a web browser:

Sample image

In conclusion, image maps can provide very efficient methods for providing navigational menus and toolbars as well as simply provide useful ways for users to find destinations to their interests. We will explore frames in the next section. Frames allow web designers to divide a web document into a specified number of “sections” or “frames”, with each frame representing a web document. Read on for more…

An HTML web document form allows the visitor to input information and possibly send that information to a server on the Internet for form processing. Form elements such as text boxes, radio buttons, checkboxes and text fields provide a graphical interface, so visitors can specify data very easily. Creating the HTML code to devise a web page is not difficult, but creating the scripting code that receives and processes the form data can be unintuitive. Constructing a HTML form for a web page is a two-part process. The first part being the actual creation of a form in an HTML document, which is covered in this article. The second part is the creation of a CGI (common gateway interface) program that will receive the form data and implement the action specified within the program located on a web server. The creation of a CGI program requires knowledge of a high-level programming language such as Perl, C, C++, ASP, PHP, etc.

A form is generated in HTML using the
element. All other form
elements such as ,

On a final note, when the “submit” button is clicked, the form data is sent to a CGI program (specified in the action attribute of the

taq) which should be running on a web server. The CGI program receives the form data and processes the data. If the CGI program is not created, the HTML form basically serves only a visual appeal with no interaction or processing capabilities.. It will only look like an online form on a web page until a CGI program is implemented to process the active form data.

With HTML forms covered in a brief fashion, we can now cover how image maps provide efficient navigational methods in an HTML document. Read on for more about image mapping and editing…

Including Images

If a web page needs a visual appeal, an important step in the design should be the creation of many custom images and visuals. Most visitors prefer looking at informative pictures and images rather than reading text, and visitors are also almost always drawn to looking at images before text. Web designers should add relevant images to their web pages to create visual life and substance towards the overall layout of the web site.

Most web browsers can display images in GIF and JPEG format, but with new browser capabilities constantly arising, more file formats are capable of being displayed. To include an image in a web page document, use the image search tag, which specifies the name and type of image to be displayed and perhaps the full path of the image.

Note: If you do not specify the full path, the image must be in the current web directory.

The image search tag has the following form:

where the name and type of image is placed between the quotes, or perhaps the full path of the image. For example, if an image named logo of type GIF is in the current web directory, the following image search specification would be sufficient:

The image search tag comes equipped with width="" and height="" attributes to specify the width and height of the image in pixels. Specifying width and height attributes for an image allows for faster loading times. It simply lets the browser allocate space on the web page for the image. For an example, if the previous logo image had dimensions of 200 by 100, the following image search specification would be sufficient:

Because some browsers cannot display certain image formats and some visitors choose to turn off image loading, web designers should also use the alt="" attribute to inform the visitor of which type of graphic would have been displayed. The text is displayed instead of the image only if the browser refuses to load the image. The alt="" attribute will also provide a balloon tip containing the information you specify between the quotes, when a mouse is hovering over the displayed image. For example, consider the following image search specification with a newly added alt attribute to our previous logo image:

Web Page Logo

Once you master adding one single image to a web page, the same routine is applied for each new image to be added. When displaying multiple images, it is recommended to place the images in a table structure using the

tag so the images will appear exactly where they are specified to appear.

I know you have encountered a form at one time or another while searching the Internet. You have probably filled out many online forms, submitted them and never thought twice about how they actually worked. Well, the next section provides some basic but important facts concerning HTML forms. Read on for more about forms…

In the everyday world, a table is commonly used to present tabular information such as schedules, statistics, etc. In the world of HTML, a table is also used for these purposes but it is more commonly used for organizing the content of complex web pages. Many web designers prefer to create on overall web site layout through the use of a single table. A table lets web designers make use of rows and columns so they can specify precisely where text, images and objects are to be placed on their documents. This is what makes the

face="arial" color=#FFFFFF>Heading face="arial" color=#FFFFFF>Heading
Text A Text B
Text C Text D
Text E Text F
Text G


The above HTML code would produce the following results in a web browser:

Heading Heading
Text A Text B
Text C Text D
Text E Text F
Text G

Table Example 2: (complex web page for entire web page layout)

This text corresponds to the left content panel of the overall layout of the web page document. This text corresponds to the center content panel of the overall layout of the web page document. This text corresponds to the right content panel of the overall layout of the web page document.

The above HTML code segment would produce the following results in a web browser:

This text corresponds to the left content panel of the overall layout of the web page document. This text corresponds to the center content panel of the overall layout of the web page document. This text corresponds to the right content panel of the overall layout of the web page document.

Table Example 3: (border tricks)

The above HTML code segment would produce the following results in a web browser:

Table Example 4: (complex web page using a navigational left pane vertical bar)

–> Nav Link 1
–> Nav Link 2
–> Nav Link 3
–> Nav Link 4
–> Nav Link 5

Welcome, to my web page!

The above HTML code segment would produce the following results in a web browser:

–> Nav Link 1
–> Nav Link 2
–> Nav Link 3
–> Nav Link 4
–> Nav Link 5

Welcome, to my web page!

In summary, tables are associated with developing structural table formats within a web document. Because tables can be created using pixel dimensions or percentage values, they can play a crucial role in organizing web document content and creating complex web page layouts. The table tag is one of the most convenient and used HTML elements because of its powerful and flexible capabilities.

The next section will show you how to add images to your site. Text is informative and almost always necessary, but images add life and personality to websites. Read on for more about displaying images

There may be times when web designers need to organize document information or images in a neat, list format. HTML supports the following three block-level list types: unnumbered (ul), numbered (ol), and definition lists (dl).

Unnumbered or unordered lists are usually displayed with bullets, which depict each new line of information to be displayed in the list structure. Unordered lists should be used when needing to display related group of data not necessarily in a particular order. The following are the steps required to create an unnumbered list:

1. Start with the opening unnumbered list tag

    .
    2. Enter the list item tag

  • followed by the item to be listed.
    3. Continue to list items using the list item tag.
    4. End the unnumbered list by using the closing tag

.

Note: The type=”" attribute can be used in the opening

    tag to specify a square, circle or disc shaped bullet. If no bullet is specified, the default solid disk shape is used. Also note that the closing

    tag is optional when entering list

  • items.

    The following code illustrates an example of an unnumbered list:

    Example 1: Unnumbered/Unordered list



    • List Item 1
    • List Item 2
    • List Item 3
    • List Item 4


    The above HTML code would produce the results in the following box, in a web browser:

    * List Item 1
    * List Item 2
    * List Item 3
    * List Item 4

    Numbered lists are coded identical to an unnumbered list except for the opening and closing tag, which are:

      . Numbered lists should be used when needing to display data in steps or numerical sequential order.

      Note: The type=”" attribute can be used in the opening

        tag to specify different types of numbering styles. If no value is specified, the default Arabic numbering style is used. Also note that the closing

        tag is optional when entering list

      1. items. The following is a listing of the possible numbering styles to specify while using the type=”" attribute:

        VALUE           MEANING
        1               Arabic (1, 2, 3, …) [default]
        A               Alphabetic uppercase
        a               Alphabetic lowercase
        I               Roman numeral uppercase
        i               Roman numeral lowercase

        The following code illustrates an example of a numbered list:

        Example 2: Numbered/Ordered list



        1. List Item 1
        2. List Item 2
        3. List Item 3
        4. List Item 4


        The above code would produce the results shown in the following box:

        1. List Item 1
        2. List Item 2
        3. List Item 3
        4. List Item 4

        Definition lists can be used for two purposes. If needing to list terms and definitions, designers can use alternating definition tags

        and definition data tags
        . Note that using closing tags when using the
        and
        tags is optional. Designers can also use a definition list when using a custom bullet, to represent each new list content line. If using a custom bullet, only
        opening and closing tags should be used to list the bullet images and items of choice. To begin and end a definition list, use the

        start and closing tags.

        The following examples illustrate the two types of definition lists:

        Example 3: Definition list - terms and definitions



        Word 1
        This corresponds to
        the meaning of word 1.
        Word 2
        This corresponds to
        the meaning of word 2.
        Word 3
        This corresponds to
        the meaning of word 3.
        Word 4
        This corresponds to
        the meaning of word 4.


        The above HTML code would produce the results in the following box, in a web browser:

        Word 1
        This corresponds to the meaning of word 1.

        Word 2
        This corresponds to the meaning of word 2.

        Word 3
        This corresponds to the meaning of word 3.

        Word 4
        This corresponds to the meaning of word 4.

        Example 4: Definition list - custom bullet list



        List item 1
        List item 2
        List item 3
        List item 4


        The above HTML code would produce the results in the following box, in a web browser:

        Sample image List item 1
        Sample image List item 2
        Sample image List item 3
        Sample image List item 4

        In conclusion, lists allow for document content to be displayed in a neat, easy to read manner, and also add overall document structure.
        Hyperlinks - Getting Out and Around

        A hyperlink is text, an image or any other object in an HTML document that can be clicked, in order to gain access to an external web site, an internal web page, an external web page or an internal section within an HTML document. An external link provides access to another web site that is not part of the current web site, such as going to Google from PHeaven. An internal link provides access to another web page which is part of the original web site, such as going to the next article in this guide from this web page. An external web page link provides access to a web page that is part of another web site. An internal section link points to a region within a web page document.

        Hyperlinks are easily noticed in a web page document because, by default, they are underlined and painted blue (unless otherwise specified), and a mouse pointer will change to a hand with the index finger pointing to the link, indicating that the web user may click on the text, image or object. Also, by default, image hyperlinks are given a distinct border color (unless otherwise specified). HTML provides ways to manipulate the color of links, visited links and active links by using the following attributes of the document structure tag:

        * link=”#hexColor” –> link color
        * vlink=”#hexColor” –> visited link color
        * alink=”#hexColor” –> active link color (upon click)

        #hexColor must be a valid hexadecimal value representing the color to be used for each attribute, as usual. The border surrounding an image hyperlink can be manipulated by using the border=”0″ attribute of the image tag such as:

        this image

        The link anchor tag has the following form: .

        The URL, which is the full file path of the destination, is to be placed between the quotes. The target=”_blank” attribute will allow the link to open the document in a new browser window so the visitor will not leave the current web page. For example, consider:

        The following illustrates how to link to a web site:

        target="_blank">Programmer’s Heaven

        The following illustrates how to link to a web page that is part of a web site:


        [warebiz] :: C++ Ripped Apart

        The following illustrates how to produce internal web document links:

        * –> use for the target link within the web document
        * –> use for the anchor within the web document (the destination from clicking the #linkName)

        The following illustrates how to create a linkable image with no border color:

        In summary, the anchor tag allows for user friendly web page navigation and provides quick access to web user interests.

        With hyperlinks covered, we can now move on to the wonderful world of tables. In my opinion, tables are the most important aspect of the HTML language. You can design an entire web page with the whole blueprint grid of the page being one large table. Tables allow you to place images, objects and text in the exact position that you specify. Read on for more about tables…

    You can draw a Horizontal line by making use of


    tag. Its attributes include bgcolor and size. Listing 27 shows its usage:

    Listing 27



    Using Address tag

    Suppose, if you want to give your contact information on a web page, you can make use of

    tag. It displays the texts in its own font. Hence, there is no need for you to format the texts separately.

    Listing 28

    Microsoft Inc, Washington, USA

    Using tag

    This tag stands for subscript. The basic functionality of this tag is that it lowers the texts between the tag.

    Listing 29

    H2O

    Using tag

    This tag stands for superscript and it raises the texts between the tag as shown in Listing 30.

    Listing 30

    23 = 8

    Applying Fonts

    You can change the appearance of your text using tag. Its attributes are face, size and color. Face attribute accepts font names like Arial, Courier, Verdana and etc. Size accepts values from 1 to 7 while color specifies the font color.

    Listing 31


    This text will display in blue color

    Next Page »