The META tag can be used for many things. It’s used for giving info on a website, or for autmatically refreshing pages. All the META tags go between the HEAD statements, before or after the TITLE tags. There are several common META tags used, as outlined below:
This tag tells search engines what keywords are present in your page, instead of just looking at the title of your page. Only a few engines support this tag, such as Altavista and Excite. Also, some of these engines have blockers that if you include too many of the same keywords it will disregard your page. content=”html meta center tutorials”
is an example of keywords that this page might use.
<META name=”description” content=”Enter a description here”>
This tag is used by search engines for their results pages. Without a proper meta description the search engine will generally pick up the first bit of content from the page. This might not be desirable because the first bit of content might be a menu or other navigation.
<META name=”generator” content=”The generator”>
This tag is outdated. Software applications use this to show the source code viewer what application was used to create the page.
<META name=”author” content=”author’s name”>
Display’s site authors name. Very rarely used today.
Image maps allow users to access different documents by clicking different areas in an image. You can implement image maps in two ways: by storing image map information on a server or by including image map information in your document. These areas are commonly referred to as hotspots.
If you store image map information on a server, you need a script or other service on the server to process click information. In your document, you mark the image as a “server-side” image map by using the ISMAP attribute in the IMG tag and enclosing the image in an A tag, as in the following example:
In this example, the image map information is in the file name JUMP.MAP. When the user clicks on the picture SAMPLE.GIF, the server receives the coordinates of the click, and can pick the appropriate destination for the click by checking the information in JUMP.MAP.
If you include image map information in your document, Internet Explorer processes the click information and picks the appropriate destination for the click. In your document, you mark the image as a “client-side” image map by using the USEMAP= attribute in the IMG tag, and you add image map information by using the MAP and AREA tags, as in the following example:
In this example, the image map defines four equal rectangular areas. One area has no corresponding destination, but the other three map to the SAMPLE1.HTM, SAMPLE2.HTM, and SAMPLE3.HTM files, respectively.
The AREA tag permits other shapes, such as circles and polygons. If two or more shapes overlap, Internet Explorer uses the first shape defined in the MAP tag to determine the destination. Any number of AREA can specify the same destination. This is useful if you want to map a complex shape to a single destination. If a portion of the image is not within a given shape, clicking in that portion has no effect.
To start out with your basic HTML page, you need this standard structure. You should use this for every HTML page you create.
Any HEAD Content Here
Any BODY Content Here
Now, lets examine each part of the HTML page.
This is the main content area of any HTML page. What you’re reading right now is the content we created between the BODY tags. Here’s the breakdown of all the major tags you’d need to make a simple, good looking page.
Skips a line between paragraphs. Also justifies paragraphs.
size=”Pixel or Percent”
width=”Pixel or Percent”
Physical line dividing text.
<IMG src=”image.gif” width=”5″ height=”5″ alt=”Image!” border=”0″ align=”center”> Explanation: src: Path to image width and height: Dimensions of image alt: Alternative Text that loads up before image is loaded. Also text browsers use it for the image description. border: Border around the image, in the color of the FONT color at the time. align: where text aligns in comparision to the image.
Example: <FONT face=”Verdana” color=”#ff0000″ size=”2″></FONT> Explanation: face: Specify which font for the browser to use for display. Popular choices are Arial and Verdana. The user must have the font on their machine so make sure you select a commonly used font. color: hex color that the text should be. size: Size of the font. Range is from 1 (smallest) through 7 (largest).
<B> Bold </B>
<I> Italic </I>
<U> Underline </U>
Example: <A href=”somewhere.html” target=”_top”>Click</A>, or<A name=”here”> Explanation: href: Where the link is pointed to. target: Used for frames mostly. name: A place in the same page to go to. Add this tag for where you want the link to go, and <A href=”#nameofanchor”> for the actual link.
In this example, only the 2 Source pages will be visible to the
user, and the Menu Frame will remain onscreen while the Main frame is updated by the links
in the Menu. Lets look at the HTML source of each document to see how they work to achieve
Older Browsers and Search Engines sometimes have trouble with
frames. Adding a link to your menu page will make sure these users can get to your
2. The Menu Frame – menu.html (Menu)
The source frames of any Frameset are normal html documents that you
can design in any way you like. The IMPORTANT thing to remember is that each of your links
will need a TARGET, which tells the link which frame it is to be opened in. If you do not
specify a target for your links, the link will open inside the current frame.
For our example, we will need to specify the target "Main"
in each link, so that the link gets displayed in the correct frame:
The Target of a Link must correspond to the name=""
of a frame created by the frameset document. Frame names/targets are case-sensitive, so be
sure you are consistent.
The frameset document is known as the parent of any
particular frame. There are some special target names you can use to "clear"
your frames – or break out of frames altogether. These names are _top and _parent.
In the above example, targeting either _top or _parent will remove the
frames completely and display the link in the full browser window.
One of the major things now in frame usage is borderless frames. To make borderless frames, just do these two simple things. Add framespacing=”0″ border=”0″ frameborder=”0″ into your <FRAMESET> tag. Then, add marginwidth=”0″ marginheight=”0″ into your <FRAME> tags. Thats it!
This tutorial looks at some the Tags available, and discusses the
behavior of each.
Each occurrence of the <frameset> tag must specify either columns (cols) or rows to
be displayed. A <frameset> tag cannot contain BOTH cols AND Rows –
this effect is achieved by nesting frameset tags.
Columns or Rows can be specified in either pixel or percentage value: <frameset
cols="300,*"> or <frameset rows="25%,50%,25%">, and can
contain as many columns or rows as you wish. Each comma separated value ("X,")
represents a <frame src=""> which must be displayed. Therefore
<frameset rows="25%,*,100"> would represent a window framed into 3 areas,
20% on top, 100 pixels high on the bottom. Since we cannot know the height of the browser,
we cannot determine the value of the middle frame – the command " *,"
tells the browser to expand this frame to use the rest of the window.
These 3 frameborder controls should be used only to turn borders OFF. If you want to leave
the borders ON, don’t use anything. Browser manufacturers have dabbled with such controls as
framespacing and bordercolor, but these should never be used unless your site is on a
closed intranet. They are not well supported and your results can vary widely
The <frame> tag is required for each "X," row or column specified in the
<frameset> tag. Each <frame> will require an initial page src="" to
display, and a unique name="FrameName" to target with hyperlinks from other
Add this to your <frame> tag to control the
scrollbars for that frame. The default scrolling behavior for any unspecified frame is
auto, which is to say: "Only display scrollbars IF the content runs outside the
You can control the margins for each frame with these
options. The default value in most browsers is roughly 15 pixels
IF you have frame borders visible, this option will "lock" them in place, and
remove the users ability to resize the framed areas.
Believe it or not, this tag causes plenty of problems for those who forget it. it is required
to close each instance of the <frameset> tag
content. You can insert custom content strictly for Older Browsers, but it is important
that you at LEAST include a link to your main menu page.
Now that we’ve learned the tags, lets create a more complex
Including this simple command in any document of your frameset, will cause the specified frame NAME to be updated with the specified URL. Simply put, you will change the First frame in your sequence with the normal href=”” target=”frameName” method, and that new document will cause the next frame in your sequence to load the appropriate page.