HTML Code

The only reason I published this site is because of my interest in HTML. If I was not interested, this site would not exist.

Floating Frames | Normal Frames | META Tags | Links Without Underlines | Text Styles | Buttons | Background Color Changer | Back and Forward buttons | A Link to Nowhere

Floating Frames

This code lets you place a frame anywhere on the page. It is quite neat, but, not many browsers support it. If you see the message "Your browser does not support floating frames" then your browser doesn't.
Example:

The code: <IFRAME NAME="framename" width="400" height="244" SRC="fltfrm.htm">Your browser does not support floating frames.</IFRAME>

Normal Frames

Well, this is going to be kind of big. You can go to my frames page or the Advanced HTML frames page (the Advanced HTML page covers more).

META Tags

These are vital to any web site. I tells a search engine the summary of the page, and some keywords to display the page for.
The summary tag is:
<META NAME="description" CONTENT="Summary here">
Key words tag (tells the search engine to display this page if "code" for example is searched). IMPORTANT: Use commas to separate words or phrases.
<META NAME="keywords" CONTENT="META tags, TEB, C++, JavaScript, HTML code">

Links Without Underlines

Tiered of of thos underlines? Don't like 'em any more? Get rid of them!
Example:
No underlines!
The code:
<A HREF="about_me.htm" STYLE="text-decoration: none">No underlines!</A>

Text Styles

This is how you can create bold, underlined, or italic text.
Italic:
<I>Italic text</I>
Example: Italic text
Bold:
<B>Bold text</B>
Example: Bold text
Underlined:
<U>Underlined text</U>
Example: Underlined text

Buttons

Browsers that do not support them will replace them with text input boxes, but most browsers support them.
Example:

Code:
<FORM><INPUT TYPE="BUTTON" VALUE="About Me" ONCLICK="window.location.href='about_me.htm'"></FORM>

Background Color Changer

This changes the background color of an HTML file. The browser will need to support buttons to use this.
Example:

Code:
<FORM>
<INPUT TYPE="button" VALUE="Yellow" ONCLICK="document.bgColor='yellow'">
<INPUT TYPE="button" VALUE="Green" ONCLICK="document.bgColor='green'">
<INPUT TYPE="button" VALUE="White" ONCLICK="document.bgColor='white'">
</FORM>

Back and Forward Buttons

Don't want to add a tacky "Click your browser's back button" note on your site? Well now you can fix that problem!
Example:
 

Code:
Back button:
<FORM>
<INPUT TYPE="button" VALUE="< Back" onClick="history.go(-1)">
</FORM>
Forward button (just take the "-" out of "-1"):
<FORM>
<INPUT TYPE="button" VALUE="Forward >" onClick="history.go(1)">
<FORM>

A Link to Nowhere!

Want a link to nowhere? Now you can link to an HTML page... but not an HTML file!
Example:
Text Here Italic Text Bold Text Underlined Hello, people of #C++ Message Board



')">Click Here!

Here is how you do it:
<A HREF="javascript:('<HTML><TITLE>Title</TITLE><BODY>Text Here <I>Italic Text</I> <B>Bold Text</B> <U>Underlined</U> Hello, people of #C++ Message Board!</BODY></HTML>')">Click Here!</A>