BASIC WEBSITE HTML CODES

O N     T H I S     P A G E :
• HTML Codes & Text Formats
• LINKS
• PHOTO CODES
• MUSIC CODES
• "XMP" Page Looks Like "File Manager"
• MARQUEE - Scrolling Text
• FAVICON: "Tab Icon"
• BODY CODES - Set Font/Link/Color, in one spot
• Disable Right-Click & Copy/Paste of Test
• "CSS/style" & Rollover Codes
• REDIRECT automatically to New URL
• TABLE CODES
Highlighting Text
• BUTTON: "Add To Favorites"
• AMPERSANDS & Special Codes


When you're writing your web page, you use a template called a "File Manager". It will look something like this:
<html> <head> <title>untitled</title> </head> <body> [Put your text here]

</body> </html>

Here's what to do with it:

<html> [At beginning of webpage. Signals computer to read the HTML codes. You don't need to change anything here.]

<title> My Web Page </title> [Type in your Title here. It will display in the Title Bar at the top of the window]

</head> [Closes the "Head" portion of your File Manager page]

<body> [This is the section that will show up on your webpage. Text, photos, links, and everything else]

<center><h1>WELCOME TO MY WEB PAGE </h1></center> [Your Headline. "H1" is a large type set. Ranges from "H1" to "H6", which is the smallest of the Headline typesets]

[YOUR TEXT GOES HERE]

</body> [Closes the "Body" section of your File Manager page]

</html> [Closes the webpage File Manager]

HTML CODES


<b> </b> ["Bold" - changes type to "bold". NOTE THE FORWARD SLASH "/" OF THE SECOND CODE: This goes at the end of the word or sentence you want to be "bold". This applies to other HTML codes, as shown below.]

<i> </i> [Italics]

<u> </u> [Underline]

<big> </big> [Makes text display at next larger size. Can be further increased as follows: <big><big><big> TEXT </big></big></big> will produce text 3 font sizes larger (This sometimes depends on the receiving computer: some won't respond in exactly the same way. It's usually better to specify a "Font Size" like this: <font size=3> </font size> However, the "big" code is a quick way to enlarge the text.]

<small> </small> [Makes text display at the next smaller font size]

<center> </center> [Makes text display in the center of that line]

<font face="times new roman"> </font face> [Selects the font style you wish the text to display in]

<font size="3"> </font size> [Selects the type size you wish to use. Sizes range from "1" to "7".]

<font color=red> </font color> [Selects the color of the type you wish to use. NOTE THAT YOU DO NOT NEED TO SPECIFY A FONT COLOR FOR "BLACK", as this is the default color]

NOTE: FONT FACE, FONT SIZE, AND FONT COLOR ARE NOT NEEDED IF YOU ONLY WANT THE DEFAULT FONT STYLE.



Paragraph Breaks

<br> ["Break". Makes the following text begin on the next line. Multiple "br" codes will produce additional spaces between lines of text]

<p> [Paragraph. Produces a one line space between paragraphs. Unlike "br", more than one "p" will not produce additional spaces]

<hr color=000000> [Hard Rule. Places a line between paragraphs]

<body bgcolor=yellow> [Chooses the color of the background on your webpage. Colors include: RED, MAROON, YELLOW, ORANGE, GREEN, OLIVE, BLUE, NAVY, GRAY, PURPLE, TEAL, WHITE, BLACK, LIME, MAGENTA, CYAN. Also, there are numerous alpha-numeric codes for finely differentiated hues.]


INDENTATION & DROP-DOWN LISTS

<dd> [Indents a line]
Creating a "Drop-Down" list or paragraph:

Using this format, the indented line or lines will "wrap-around", maintaining the indent in subsequent lines, as displayed here. The tags for this code are as follows:
<dl> [At beginning of Section with Drop-Down paragraphs.] <dt> </dt> [Un-indented Header line within the "dl"] <dd> </dd> [Indented line; WRAPS-AROUND when put in this "dl" format] </dl> [Ends Drop-Down Section]

SUPERSCRIPT

<sup> </sup> Displays text in Superscript. Example:

1 Cor. 14:1 Follow after love, and desire spiritual gifts so that you may prophesy. [The verse number is shown in SUPERSCRIPT [font size is also reduced in this example].

JUSTIFY TEXT BODY


<P align="justify"> Allows text to be "justified:" aligned evenly on the right margin. This has to be repeated after any font change, i.e., "p", "h1", "font color", etc.

PUT A LINE THROUGH YOUR TEXT


<strike> at beginning, and close with </strike>.



ADDITIONAL CODES


LISTS:

1: BULLETED LIST

<ul> [Unordered List. List items are displayed with a bullet (dot) in front of them. You must use the following code for each line following this code:]

<li> [List Item. This goes at the beginning of each bulleted line. Place a "<p>" after each line to create a space.

</ul> [CLOSE Unordered List. Remember to end the Unordered List with this code]

EXTRAS
<ul type="circle"> - Uses clear-center circles for bullets
<ul type="square"> - Uses squares for bullets.


2: NUMBERED LIST - "ORDERED LIST"

<ol> [Ordered List - Places consecutive numbers in front of each line item. You must use the following code for each line following this code:]

<li> [Line Item. Again this goes at the front of each line to be numbered. The proper consecutive number will automatically display on the page.]

</ol> [Closes the Ordered List. ]

3: NON-BULLETED LIST

<dl> - [NON-BULLETED LIST - items will be indented, without numbers or bullets in front of the items.]

<dd> - [Use "dd" List Item codes instead of "li".]

</dl> - [Closes the Non-Bulleted List]


<blockquote> [INDENTS TEXT. Creates an indentation on the left and right of the affected paragraph.]

</blockquote> [ends the blockquote indentation]

 BOTTOM  
 T   O   P  



"XMP"

PAGE DISPLAYS THE WAY IT LOOKS ON "FILE MANAGER"

If you have symbols and "tab" spacing that would be difficult to encode, you can display the text as it appears in your File Manager template by using the "XMP" tag:

<xmp>

This plain text is displaying as it appears on the File Manager. It allows the display of TAGS ( <font> <body> <table>, etc.) in the document. The font will appear as basic text. Keep your lines of text short (hit enter/return every few words), or it will go beyond the frame. Place a closing tag at the end of your "XMP" display section: </xmp>


 BOTTOM  
 T   O   P  



.

LINKS:


<a href="http://www.yahoo.com"> YAHOO </a> Creates a HYPERLINK to the website you choose. Here you can see "http://www.yahoo.com" within the quotes of the code. The word "YAHOO" will show up in blue underline on the web page. The viewer can click on this to go to that site. NOTE THE FORWARD SLASH "/A" AT THE END:

"</a>"

TITLE DISPLAYS UPON ROLLOVER OF YOUR LINK::

<a href="http://www.yahoo.com" title="Yahoo Log In Page">Yahoo.com</a>

In the above example, "Yahoo Log In Page" displays upon mouse rollover of the link.

LINK TO ANOTHER SPOT ON THE SAME PAGE:

At Beginning Spot (Where Link Will Appear):

<a href="#answer"> Go Direct To Article On Middle Of Page </a> At "Destination" Spot:

<a name="answer">Midpage</a> Article NOTE: The "Go Direct To Article On Middle Of Page" in the first code, will be the hyperlink that the viewer will click on. It will take him to where the SECOND CODE is: "<a name="answer">". In this case, it has been positioned at an article in mid page. "Midpage" is the beginning word of the linked location, and the "close" code "</a>" can be embedded into the first word or phrase as shown here.


* * * * *

LINKS IN PHOTOS


Hotlinked photo with the default border around it.

Hotlinking a photo image places a highlighted border around it (to identify it as a link).

To link a photo WITHOUT a highlighted border, use border="0" as follows:

<a href="LINK.html" target="_blank"> <img src="../photos/MyPic.jpg" border="0">

Hotlinked photo with no highlighted border.

* * * * *


 BOTTOM  
 T   O   P  


"REDIRECT" LINKS


To have a webpage automatically switch to ANOTHER webpage (redirected) as soon as it's been logged-on to, use the following code:
<html> <head> <meta http-equiv="REFRESH" content="0; URL=http://www.myotherpage.com"> </head> </html> In the above code, you'd change 0 to the number of seconds you want to delay the redirect. If you changed it to 5, the redirect would be delayed for 5 seconds. You can redirect to ANY other URL, such as another page on the same site, or a different webserver/port on the same server, as the examples below show:
<meta http-equiv="REFRESH" content="5; URL=mynewhomepage.html"> <meta http-equiv="REFRESH" content="1; URL=https://webmail.mysite.com:8080/cgi-bin/webmail.cgi"> TO "REFRESH" THE SAME PAGE, just leave out the URL, as shown below:

<meta http-equiv="REFRESH" content="300">
* * * * *

E-MAIL LINKS:


<a href="mailto:yourname@yahoo.com"> EMAIL ME AT: yourname@yahoo.com </a> ["EMAIL ME AT: yourname@yahoo.com" will display on your webpage, providing a link by which they can send an email. It's a good idea to have the email address as part of the link text so they can copy & paste the url manually if necessary.]





 BOTTOM  
 T   O   P  


FAVICON: Tab Icon Code


This is to make an Icon appear as a symbol beside the tab identifying your web page.

Use the below code between the <head></head> :

<link rel="shortcut icon" href="http://www.mysite.com/favicon.ico">

•NOTE: The ".ico" image must be online, with the code directing to the ".ico" image on your File Manager (or external website). It won't show if directing to an image on your computer (as when opening a copy of the HTML page "offline" from your hard drive).

CREATE AN ICO IMAGE FOR A FAVICON:




 BOTTOM  
 T   O   P  


BODY BACKGROUND CODES


LINK COLOR CODES


<body bgcolor="#000066" body text="#ffffff" link="#ffff00" vlink="#ffcc00" alink="#ff0000"> "LINK" is your default link color. (This code will affect ALL links on the page - instead of having to use a "font color" code for each link).

"VLINK" is the color for a visited link.

"ALINK" is the color for an active link. (Active means the color the link turns when being clicked.)

"Body Text" is the default color for your fonts.

"BGCOLOR" is the background color for your page.



Background Image and Color Codes


Use a Background Color ALONG WITH the photo wallpaper - so text will show up if the gif doesn't come through:

Example:

<body background="photos/wlppr_Hrzn_BlkMutSTR.jpg" bgproperties="fixed" bgcolor="#000066" text="yellow" link="#ffffff" vlink="#ccffff" alink="#ff66ff"> It's a good idea to set the BGCOLOR attribute of the BODY tag to the same color as your background graphic - otherwise the text may be hard to read on the white background if the background graphic is still loading or the viewer isnít loading graphics while they surf. White text on a white background isn't the best web layout!


OTHER BODY CODES

DISABLE HIGHLIGHTING OF TEXT. PREVENTS COPYING:

Place this code within the BODY tag:

ondragstart="return false" onselectstart="return false" onContextMenu="return false" ondragstart="return false" disables LEFT clicking.
onselectstart="return false" disables highlighting text using Ctrl+A or Edit/Select All.
onContextMenu="return false" disables "Context Menu", a menu that shows with certain browsers when you right-click on a page.




 BOTTOM  
 T   O   P  


BLOCK COPY & PASTING OF TEXT ON YOUR WEBSITE


Include the following code at the end of the <body> </body> tags:

ondragstart="return false" onselectstart="return false" onContextMenu="return false">

EXAMPLE:

<BODY TEXT="ffffff" BGCOLOR="#550000" background="photos/wlppr_ripple_maroon3.jpg" bgproperties="fixed" ondragstart="return false" onselectstart="return false" onContextMenu="return false">



DISABLE RIGHT-CLICKING ON YOUR WEBSITE


Paste the following within the <head> </head> tags, after the meta codes.

<SCRIPT LANGUAGE="JavaScript"> <!-- //Disable right click script III- By Renigade (renigade@mediaone.net) //For full source code, visit http://www.dynamicdrive.com var message="Sorry, right-click has been disabled"; /////////////////////////////////// function clickIE() {if (document.all) {(message);return false;}} function clickNS(e) {if (document.layers||(document.getElementById&&!document.all)) { if (e.which==2||e.which==3) {(message);return false;}}} if (document.layers) {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;} else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;} document.oncontextmenu=new Function("return false") // --> </SCRIPT>


 BOTTOM  
 T   O   P  


CSS & "ROLLOVER" LINK CODES

• To Get CSS Codes From An External File

For "Rollover" LINK CODES, place the following block of code AFTER </head> and BEFORE <body>.

<style type="text/css"> A:link { color:#3300ff; text-decoration: underline; } A:visited { color:#990066; text-decoration: underline; } A:active { color:#ff0066; text-decoration: none; } A:hover { background: #ff0000; color: ffffff; font-style: italic; font-weight: bolder; font-size: larger; text-decoration: underline overline; } </style> "text-decoration" can display an underline (and/or overline) when the mouse "hovers" over it... or any of the other settings, as chosen.

[Note: "Hover" not supported by Netscape browsers prior to version 6.]

CSS CODES: For General Text

IMPORTANT: The target text is labeled as follows:
<span class="subtitle1"> TEXT </span>


SAMPLE CSS CODES:

These go within the "<head> </head>" tags:

Example 1:
For a yellow headline:

<style type="text/css"> <!-- .headline1 { font-weight: bold; color: #ffff00; font-size: 48px; } --> </style>   NOTE: FONT SIZES: 48px=7, 32px=6, 24px=5, 18px=4, 16px=3, 13px=2, 10px=1

OTHER OPTIONS:

•{ font-family: arial; }
•{ font-size: 16px; } 48px=7, 32px=6, 24px=5, 18px=4, 16px=3, 13px=2, 10px=1
•{ font-size: larger; } ["larger" is best - enlarges every font size]
•{ font-style: italic; }
•{ font-weight: bolder; }
•{ background: #ff0000; } Highlights link with chosen color.
•{ text-decoration: underline; }


Example 2:
For yellow font (that stays the same size as the text around it)

<style type="text/css"> <!-- .yellow { font-weight: bold; color: #ffff00; } --> </style> Example 3:
For highlighting text:

<style type="text/css"> <!-- .highlight { font-weight: bold; color: #000000; background: ffff00; } --> </style> Note that the first word following the "<--" (e.g., ".highlight") has a period before it, & is the word used for the text you use the "<span class="highlight">" code on.



CSS CODE FOR EVEN-LINE-SPACING WHEN USING SUPERSCRIPT

www.cs.tut.fi/~jkorpela/www/linespacing.html

When using SUPERSCRIPT, this can cause unevenness in the lines of text. The superscript pushes the space of the line it is in, and the non-superscript lines have a narrower space. In order to make them appear uniform, paste the following code below </head>:
<!-- CSS CODE FOR EVEN-LINE-SPACING WHEN USING SUPERSCRIPT --> <style type="text/css"> sup, sub { vertical-align: 0; position: relative; } sup { bottom: 1ex; } </style> <!-- END SUPERSCRIPT LINE-SPACING CSS CODE -->


 BOTTOM  
 T   O   P  


Access Your CSS Codes From ANOTHER FILE:


Put your CSS codes on ONE separate file - so you don't have to place them on each page!

  1. Create a TEXT DOCUMENT with the CSS codes that would normally appear within the <head> </head> tags.

  2. Change the file extention to ".css" - e.g., "My_CSS_Codes.css"

  3. Then place this code within the <head> </head> tags of each article:
    <link href="My_CSS_Codes.css" rel="stylesheet" type="text/css">

  4. Thats all. Use the SAME "<span class="ltcolor1">" codes for the sections of text you want affected that you would normally use if the codes were all in the <head> </head> tags.

More: www.echoecho.com/csslinks.htm
More on "style" type codes: www.tizag.com/cssT/font.php




 BOTTOM  
 T   O   P  


PHOTOS AND GRAPHICS


<img src="http://www.mysite.com/photo_sunrise.jpg"> [Displays a photo image from your files on the selected spot of your web page. Size and positioning are determined by additional codes as follows:]

<img src="http://www.mysite.com/photo_sunrise.jpg" height=300 width=600 align=left hspace="11" vspace="11" alt="Glen Island at Sunrise"> "Height" and "Width" determine the size of the displayed image.
It's usually best to use only one attribute ("height" OR "width") and the unspecified dimension will display in correct proportion.
"Align" places the photo at left (or right), and allows the text to wrap around the image neatly.
 "hspace"  creates a horizontal space between picture and any surrounding text.
"vspace"  creates a vertical space between picture and surrounding text.
"Alt" lets you choose a phrase that will display when the cursor passes over the image, (or will show up in the frame if the image should fail to download).

PHOTOS FROM OTHER FILES

<img src="photos/image_sunrise" width=350">

This lets you get a photo from your "photo" folder, without using the entire URL. This is useful if you keep a copy of your website on your hard drive, for the link will work in any file the site is installed on.

GETTING PHOTOS FROM A "HIGHER" FOLDER

PRECEDE your "img" code with "../". This directs the browser UP one level. In the following case, the photo, "image_sunrise.jpg", is in a folder ONE LEVEL UP from the folder that contains the article.

Lets say the article is in the folder "WEB_Articles". "WEB_Articles" and "photos" are in separate folders but in the same directory, so the code only has to go UP ONE LEVEL to find it:

<img src="../photos/image_sunrise.jpg" width=350">

If the photo folder were up two or more levels, you would add the additional "../" to prefix the code:

<img src="../../photos/image_sunrise.jpg" width=350> [up TWO levels]



 BOTTOM  
 T   O   P  


MUSIC


The following is a basic code for having a music file play automatically when your webpage is opened. It can be placed within either the <head> or the <body> tags:

<bgsound src="audio_folder/music.mp3">
(Plays one time [the default loop number] automatically when page is opened).

<bgsound src="audio_folder/music.mp3" loop="3">
(Plays three times when page is opened.).

<bgsound src="audio_folder/music.mp3" volume="-1500">
(Plays at about half the full volume. "0" is maximum, "‑10000" is minimum [although anything below "‑3000" is pretty much silent]).



CODES: Parameters that can be set within the "bgsound" tag:



 BOTTOM  
 T   O   P  


MARQUEE:

Scrolling Text Line


The "Marquee" tag let's text scroll from right to left.

A BASIC "MARQUEE" CODE:

<marquee border="0" bgcolor="#cc0000" width="100%"> <font face="comic sans ms"> <font color=white> <font size=4><B> Be Sure To Check The Main Index For Current Articles </marquee></font> </b> You can include images ("IMG SRC") tags into the MARQUEE code:

<MARQUEE> Hi There! <IMG SRC="photo1.gif" HEIGHT=33 WIDTH=82> </MARQUEE> By default MARQUEE has a WIDTH of 100%. However, if you set the width to less than 100%, the marquee might meld with the surrounding text.

LOOPING: INFINITE, or FIXED NUMBER; and MAKE TEXT SHOW AFTER LAST LOOP

LOOP sets how many times the marquee should loop. (The text loops INFINITELY if you don't use the "LOOP" code.)

This code creates a marquee that loops twice:

<MARQUEE LOOP=2> Hello </MARQUEE> The problem with LOOP is that THE TEXT DISAPPEARS after the last loop. To keep the text visible after the final loop, use "BEHAVIOR=SLIDE":
<MARQUEE LOOP=2 BEHAVIOR=SLIDE> Hello </MARQUEE> MARQUEE background color is set as follows:
<MARQUEE BGCOLOR=YELLOW> Howdy there! </MARQUEE> [More from http://www.htmlcodetutorial.com/_MARQUEE.html]



 BOTTOM  
 T   O   P  


.

TABLES


Tables allow columns to be created on the page.

Each table starts with a table tag.
Each table row starts with a tr tag.
Each table data starts with a td tag.

(NOTE: PHOTOS affect the size of a Table: If a table overlaps the screen, check that all IMAGES are smaller than the desired table width.)

ALSO: Watch for LENGTHY URLs - any "unbroken" word strings - will push the table border beyond the screen.

<table border="1" width="100%" cellpadding="7"> The "border" specifies the width of the line surrounding the table. ("0" will create an "invisible" table, for a "column" effect. The "width="100%"" determines the size across the screen.

CELLPADDING is the space between the cell contents and the border.

CELLSPACING is the width between the cells.

ALIGNING A TABLE

<table align=right border="3"> ALIGN: "right", "center", or "left" codes placed IMMEDIATELY AFTER the word "table" in the TABLE code will align it as indicated. Text will "flow" around the table in the case of "right" and "left" alignment.



ALIGNING WITHIN A TABLE CELL:

To position text in a TABLE Cell (TD), check the chart below. ALIGN is for horizontal placement, and VALIGN is for the vertical.

(Example: <TD VALIGN=MIDDLE ALIGN=CENTER>)

ALIGN VALIGN=MIDDLE VALIGN=TOP VALIGN=BOTTOM
ALIGN=LEFT
---
---
---
 •   •   • 
ALIGN=CENTER
---
---
---
 •   •   • 
ALIGN=RIGHT
---
---
---
 •   •   • 



Basic codes for a 2-column table are as follows: (NOTE: "center" & "bgcolor" are optional.)
<table align=center border="1"> <tr> <td bgcolor=ffcc99> THEN, At second column:

</td> <td bgcolor=ccffff> THEN, At end:

</td> </tr> </table>
Codes for 2-column table WITH SIZE CODES:
<center> <table border="1" width="100%" cellpadding="7"> <tr> <td width="25%" valign="top"> THEN, At second column:

</td> <td width="75%" valign="top"> THEN, At end:

</td> </tr> </table> </center>
TABLES - To Make A "BOX" Around Text, A Link, Etc.

TEXT WRAPPED INSIDE A TABLE "BOX"

AT BEGINNING:

<table> <table border=4> <td> AT END:

</td> </table> REDUCE or CONTROL BOX SIZE by using the following code:
(Prevents box from "bleeding" beyond the window)

AT BEGINNING:

<table border="1" width="85%" cellpadding="7"> <td>
(NOTE: "width=" above determines the box's size. 100% is full window. Use a smaller percentage if the window is "bleeding" beyond the screen area)

AT END:
(Same "Ending Codes" codes as in the previous "Table Box" example:)

</td> </table>
To Add COLOR or BACKGROUND "WALLPAPER" Inside A TABLE:

In the "td" code, place a "bgcolor" color code, as follows:
<td bgcolor=blue> OR <td bgcolor=blue background="photos/navyRipple.jpg"> You can color individual rows differently, by adding the "bgcolor" code for individual "td" codes as follows:
<td width="75%" valign="top" bgcolor=blue>

COLOR CODES for the TABLE BOX


TEXT: COLOR CODES for this TABLE BOX shown below:

<table align=center border="5" bordercolordark="#0000FF" bordercolorlight="#FF0000" cellpadding=2 cellspacing=2> <td>
TEXT: COLOR CODES for this TABLE BOX shown below:
</td> </table> <br>


TABLES For HEADERS With MULTIPLE PICTURES


A "Header" photograph at the top of a webpage can be broken up into several sections - as small images have "priority" during the download & thus the header will show up faster.

This table code is a sample of this:

<table width="736" cellpadding="0" cellspacing="0" align="center" border="0"> <tr> <td width="15"><img name="header1" src="photos/HEADER_Segment1_124-15.jpg" border="0" width="15" height="124" alt="Photo Name Here"></td> <td width="375"><img name="header2" src="photos/HEADER_Segment2_124-375.jpg" border="0" width="375" height="124" alt="Photo Name Here"></td> <td width="346"><img name="header3" src="photos/HEADER_Segment3_124-346.jpg" border="0" width="346" height="124" alt="Photo Name Here"></td> </tr> </table> Note that the "table width" in the top code equals the total of the 3 photo widths. And each individual "td" code "width" figure matches that of its photo. This insures that the segments wrap properly.


"VERTICAL" TABLES


Vertical Tables allow you to add text BELOW a picture (or any other content). It requires use of the "TR" (Table Row) code, as shown in the following code:

VERTICAL TABLE CODE: <table align=left border="0" width=255> <tr> <TD> <img src="" width=250 height=100> </td> </tr> <tr> <td bgcolor=ffffcc> <font color=000066 size=2 face="times new roman"> <center> PLACE TEXT HERE </center> </font> </td> </tr> </table> <BR>
Photo With TEXT BOX Below It -- Using TABLE CODES
The following code will "stack" Table Rows vertically -- Allowing you to place a Text Box cell BELOW a photo.

"TABLE" -- Begins the table code. "ALIGN" MUST immediately follow "table".

WIDTH -- Note "width" in the "table" code: make it a couple of points larger than the photo's width: this prevents text from exceeding the width of the photo.

"TR" -- This sets each row -- if there's more than one -- THIS CODE MUST PRECEDE THE "TD" CODE!

"TD" -- Table Data: Precedes the input being put into that cell of the table.


"HORIZONTAL" TABLES


Cell 1
Cell 2
Cell 3
Cell 4
Cell 5

The following codes are for the above table (simplified for copying):

<center> <table border="1" cellpadding="3"> <tr> <td valign="top"> TEXT or PHOTO Here <td valign="top"> TEXT or PHOTO Here <td valign="top"> TEXT or PHOTO Here </td> </tr> </table> </center>

"STACKED" HORIZONTAL TABLES


QUICK FIND - CATEGORIES WITHIN THIS PAGE:
SECTION 1 SECTION 2 SECTION 3 SECTION 4 SECTION 5 SECTION 6 SECTION 7

HERE, the TOP ROW must have a "COLSPAN" code, so it will spread across the number of columns in the row below it -- in this case, 7: colspan="7"

Here's the code for the above table:

<table align=center width="100%" border=2> <tr> <td colspan="7" bgcolor=ffcc99> <font size=2> <center> <font color=cc0000><B> QUICK FIND - </font color> <font color=006600> CATEGORIES WITHIN THIS PAGE:</FONT COLOR> </b> </center> </font size> </tr> <TR> <td bgcolor=ffcc99> <font size=1> SECTION 1 </td> <td bgcolor=ffffff> <font size=1> SECTION 2 </td> <td bgcolor=ffcc99> <font size=1> SECTION 3 </td> <td bgcolor=ffffff> <font size=1> SECTION 4 </td> <td bgcolor=ffcc99> <font size=1> SECTION 5 </td> <td bgcolor=ffffff> <font size=1> SECTION 6 </td> <td bgcolor=ffcc99> <font size=1> SECTION 7 </font size> </td> </tr> </table> <BR>
CSS Table Codes


"New" browsers work better with CSS codes than the above table codes, particularly for COLOR codes.

Sample CSS table code:
Info Header 1Info Header 2Info Header 3
Text 1AText 1BText 1C
Text 2AText 2BText 2C

Codes for above table:

<!-- CSS "style type" section goes in the document HEAD or added to your external stylesheet --> <style type="text/css"> table.gridtable { font-family: verdana,arial,sans-serif; font-size:11px; color:#333333; border-width: 1px; border-color: #666666; border-collapse: collapse; } table.gridtable th { border-width: 1px; padding: 8px; border-style: solid; border-color: #666666; background-color: #dedede; } table.gridtable td { border-width: 1px; padding: 8px; border-style: solid; border-color: #666666; background-color: #ffffff; } </style> <!-- End of "style type" section for HEAD. The following creates the table (based on above style codes) --> <!-- Table goes in the document BODY --> <table class="gridtable"> <tr> <th>Info Header 1</th><th>Info Header 2</th><th>Info Header 3</th> </tr> <tr> <td>Text 1A</td><td>Text 1B</td><td>Text 1C</td> </tr> <tr> <td>Text 2A</td><td>Text 2B</td><td>Text 2C</td> </tr> </table> www.textfixer.com/tutorials/css-tables.php
Google: css table codes




 BOTTOM  
 T   O   P  


HIGHLIGHTING TEXT


  HIGHLIGHT TEXT LIKE THIS     in the middle of a sentence -- or anywhere else.

This is a simpler code to create a table-like box where a table is not otherwise needed. This is a "bold" code that is given a "style" code. As follows:

<b style="color:#ffff00;background-color:#cc0000">   &nbsp;   LIGHT FONT, DARK BACKGROUND   &nbsp;   </b>

<b style="color:#000000;background-color:#ffff00">   &nbsp;   DARK FONT, LIGHT BACKGROUND   &nbsp;   </b>

<b style="color:#000000;background-color:#00ff99">   &nbsp;   DARK FONT, LIGHT BACKGROUND   &nbsp;   </b>

<b style="color:#000000;background-color:#66ffff">   &nbsp;   DARK FONT, LIGHT BACKGROUND   &nbsp;   </b>

The " &nbsp; " is optional, to create space for the box border if desired. Remember to close with a " </b> "



Highlighting Without a "Bold" Code


To highlight text which you do not want to display as "bold", use:

<span style="background-color:#00ffff"> Text </span>



 BOTTOM  
 T   O   P  


 

BUTTONS

"ADD TO FAVORITES"


This code adds a button to your web page that the viewer can click to add your page to their "Favorites" list:
<FORM> <INPUT TYPE = "button" VALUE = "Add This Site To Your Favorites" onclick = 'window.external.AddFavorite(location.href,document.title);'> </FORM> Your "Title" in the META TAG will show as the page's name.
More on this at www.see-search.com/webdesign/addsitetofavorites1.htm

Button Image:

<input type="image" src="../graphics/ABCbuttn.gif" width="88" height="31" alt="Yellow Button Graphic" border="0" /> With the image input type, you can use a "gif" image, as in the above example (src="../graphics/ABCbuttn.gif") instead of a button on your forms. This can help when you want a SMALLER button, for example.


Other Buttons


Code for above: <table align=center border=0 cellpadding=0 cellspacing=0> <td align="center" width="30%"><form> <input type="button" value="Back to previous page" onClick="history.back()"> </form></td> </table>

 BOTTOM  
 T   O   P  


.

AMPERSAND CODES


These characters are useful symbols that would be difficult or impossible to type without special codes (e.g. the less-than sign, which would always be mistaken for the beginning of an HTML tag). These codes are "case sensitive".

&amp;
&Ampersand ("and" sign)
&quot;
"Double quote
&lt;
<Less-than
&gt;
>Greater-than
&nbsp;
Non-Breakable SPace
&iexcl;
¡Upside-down exclamation point
&iquest;
¿Upside-down question mark
&cent;
¢Cent sign
&pound;
£Pound sign: the currency symbol
(not the tic-tac-toe telephone symbol, which is incorrectly called "pound".)
&curren;
¤circle with dashes at NE, SE, SW, and NW
&yen;
¥Yen symbol
&brvbar;
¦Vertical line, maybe with gap in middle
&sect;
§Section sign (like hurricane symbol on weather maps)
&uml;
¨ "umlaut" (two dots accenting a letter)
&copy;
©Copyright sign (C in a circle)
&shy;
­ "Soft" hyphen: a dash (doesn't show unless line "wraps")
&reg;
®Registered sign (R in a circle)
&deg;
°Degree sign
&frac14;
¼One quarter
&frac12;
½One half
&frac34;
¾Three quarters
&times;
×Times sign: narrow x without serifs
&divide;
÷Division sign
&bull;
Bullet
&darr;
Down Arrow
&#8212;
"LONG" Hyphen (soft)
&#x2011;
HARD Hyphen (non-breakable hyphen)
From: rabbit.eng.miami.edu/info/htmlchars.html




More Ampersand Codes


You must use a "#" before numeric codes.

&#033; = ! &#034; = " &#035; = # &#036; = $ &#037; = % &#038; = & &#039; = ' &#040; = (
&#041; = ) &#042; = * &#043; = + &#044; = , &#045; = - &#046; = . &#047; = / &#048; = 0 &#049; = 1 &#050; = 2
&#051; = 3 &#052; = 4 &#053; = 5 &#054; = 6 &#055; = 7 &#056; = 8 &#057; = 9 &#058; = : &#059; = ; &#060; = <
&#061; = = &#062; = > &#063; = ? &#064; = @ &#065; = A &#066; = B &#067; = C &#068; = D &#069; = E &#070; = F
&#071; = G &#072; = H &#073; = I &#074; = J &#075; = K &#076; = L &#077; = M &#078; = N &#079; = O &#080; = P
&#081; = Q &#082; = R &#083; = S &#084; = T &#085; = U &#086; = V &#087; = W &#088; = X &#089; = Y &#090; = Z
&#091; = [ &#092; = \ &#093; = ] &#094; = ^ &#095; = _ &#096; = ` &#097; = a &#098; = b &#099; = c &#100; = d
&#101; = e &#102; = f &#103; = g &#104; = h &#105; = i &#106; = j &#107; = k &#108; = l &#109; = m &#110; = n
&#111; = o &#112; = p &#113; = q &#114; = r &#115; = s &#116; = t &#118; = v &#119; = w &#120; = x &#121; = y
&#122; = z &#123; = { #124= | &#125; = } &#126; = ~ &#127; =  &#128; = € &#129; =  &#130; = ‚ &#131; = ƒ
&#132; = „ &#133; = … &#134; = † &#135; = ‡ &#136; = ˆ &#137; = ‰ &#138; = Š &#139; = ‹ &#140; = Œ &#141; = 
&#142; = Ž &#143; =  &#144; =  &#145; = ‘ &#146; = ’ &#147; = “ &#148; = ” &#149; = • &#150; = – &#151; = —
&#152; = ˜ &#153; = ™ &#154; = š &#155; = › &#157; =  &#158; = ž &#159; = Ÿ &#160; =   &#161; = ¡ &#162; = ¢
&#163; = £ &#164; = ¤ &#165; = ¥ &#166; = ¦ &#167; = § &#168; = ¨ &#169; = © &#170; = ª &#171; = « &#172; = ¬
&#173; = ­ &#174; = ® &#175; = ¯ &#176; = ° &#177; = ± &#178; = ² &#179; = ³ &#180; = ´ &#181; = µ &#182; = ¶
&#183; = · &#184; = ¸ &#185; = ¹ &#186; = º &#187; = » &#188; = ¼ &#189; = ½ &#190; = ¾ &#191; = ¿ &#225; = á
&#233; = é &#237; = í &#243; = ó &#250; = ú &#193; = Á &#201; = É &#205; = Í &#211; = Ó &#218; = Ú &#192; = À
&loz; = ◊ &spades; = ♠ &hearts; = ♥ &clubs; = ♣ &diams; = ♦ &#9670; = ◆ &#9672; = ◈ &#9733;  = ★ &#9734; = ☆ &#9668;  = ◄
&#9658;  = ► &#9660; = ▼ &#9650; = ▲ &#10017; = ✡ &#x394; = Δ &#= &#; &#= &#; &#= &#; &#= &#; &#= &#;

www.chaos.org.uk/~eddy/bits/chars.html
ikreator.com/special-characters



ACCENTS
Using ACCENTS with Ampersand Codes

• (ONLY works with Vowels)

Use: "&" the letter to be accented, then "acute", semicolon

Example: for a capital É with an acute accent, use &Eacute;




Numeric What it looks like Logical Name ISO Latin-1 Name
&#192; À &Agrave; Latin Capital A with grave
&#193; Á &Aacute; Latin Capital A with acute
&#200; È &Egrave; Capital E, grave accent
&#201; É &Eacute; Capital E, acute accent
&#204; Ì &Igrave; Capital I, grave accent
&#205; Í &Iacute; Capital I, acute accent
&#210; Ò &Ograve; Capital O, grave accent
&#211; Ó &Oacute; Capital O, acute accent
&#217; Ù &Ugrave; Capital U, grave accent
&#218; Ú &Uacute; Capital U, acute accent
&#221; Ý &Yacute; Latin Capital Y, acute accent
&#224; à &agrave; Small a, grave accent
&#225; á &aacute; Small a, acute accent
&#232; è &egrave; Small e, grave accent
&#233; é &eacute; Small e, acute accent
&#236; ì &igrave; Small i, grave accent
&#237; í &iacute; Small i, acute accent
&#242; ò &ograve; Small o, grave accent
&#243; ó &oacute; Small o, acute accent
&#249; ù &ugrave; Small u, grave accent
&#250; ú &uacute; Small u, acute accent
&#253; ý &yacute; Small y, acute accent



HOME




 BOTTOM  
 T   O   P