The Most usual basic stuff ------------ <HTML> <HEAD> <CENTER> <TITLE> Your Title (in top of browser) </TITLE> </CENTER> <CENTER> <H1> This is the header, H1 is the largest, than H2, H3 .. to H6 (smallest) </H1> CENTER> </HEAD> <BODY> All the pictures, Links, text and special stuff goes here. (NOTE Frames is a special case replacing BODY) </BODY> </HTML>
BASICS OF HTML
The tags HTML, HEAD, TITLE, BODY are most of it
GENERAL (all HTML documents should have these)
- Document Type... <HTML></HTML> (beginning and end of file Tells the browser it is a HTML document)
- Title........... <TITLE></TITLE> (must be in header. Shows in the top bar of the browser. Not actually requires, but a good idea.)
- Header.......... <HEAD></HEAD> (descriptive info, such as title)
- Body............ <BODY></BODY> (bulk of the page)
First a sample of a complete (but small) HTML document
<HTML>
<HEAD>
<TITLE>My First Web Page </TITLE>
<H1>My First Web Page </H1>
</HEAD>
<BODY>
<BR><BR>Damm, My first real home page
<BR>
<BR>Wonder how it works?
<BR>
<BR>This must be saved in a file as a file with the extention or
<BR> .HTM or HTML
<BR>Such as MyPage.htm or MyPage.html.
<BR>
<BR>
</BODY>
</HTML>
Well, How does it look?
My First Web Page
My First Web Page
Damm, My first real home page
Wonder how it works?
This must be saved in a file as a file with the extention or
.HTM or HTML
Such as MyPage.htm or MyPage.html.
- You will notice also that everything starts on the left side.
- You notice is all those things surrounded with angle brackets such as < and > (Called TAGS) do not show.
- You will also notice that only one of the spaces shows.
- Not shown, but long areas of text will not show in seperate lines as they are typed, but WRAP, so it will not show line breaks and new lines.
- Than you notice that lines only BREAK with the BREAK Tag <BR>. HINT That is to prevent Wraping.
- You notices the <H1> tags. This is used in the HEAD for sizes of letters. See below.
- Needless to say, there are ways to get anything you want, any way you want it.
<H1>These are called "HEADINGS" and are designed to use ONLY between </H1> <HEAD> and </HEAD><H1>This is a H1 HEADING </H1>
<H2>This is a H2 HEADING </H2>
<H3>This is a H3 HEADING </H3>
<H4>This is a H4 HEADING </H4>
<H5>This is a H5 HEADING </H5>
<H6>This is a H6 HEADING </H6>
There are only six
Many browsers allow them between <BODY> </BODY> but they do not work in some cases.
<FONT ... > </FONT> are prefered since it allows more options (But that is an other story.)Basic FONTS Rendering (Click Here) . <===This image is tiled to cover the whole background.
In this other example the colors are defines in HexiDecmal (or just pick one from the chart)
<BODY BGCOLOR="#FF6666" TEXT="#884444" LINK="#44FF44" VLINK="#7777FF" ALINK="#000000">
BACKGROUNDS AND COLORS (order is red/green/blue) Check Out Colors (Click Here)
BGCOLOR #FF6666 TEXT #884444 LINK #44FF44" LINK #7777FF ALINK #000000
- ---------------------------------------------------
- Tiled Bkground.. <BODY BACKGROUND="URL"> Generaly a .GIF or .JPG. Works the same way as tiled WINDOWS wall paper.
- Bkground Color.. <BODY BGCOLOR="#rrggbb"> The whole background is this color. Not used at the same time as the BACKGROUND, above.
- Text Color...... <BODY TEXT="#rrggbb"> Default TEXT color
- Link Color...... <BODY LINK="#rrggbb"> Hyperlink color
- Visited Link.... <BODY VLINK="#rrggbb"> If a link is visited it turns this color.
- Active Link..... <BODY ALINK="#rrggbb"> Default color for something.
PREFORMATED TEXT TAGS There are several but they all work the same as PRE with noted exceptions.
<BLOCKQUOTE> Characters </BLOCKQUOTE> Everything within the tags wraps and needs paragraph breaks but it puts quotatin marks in front and back. Generally a left over from early SGML.
<XMP> characters... </XMP> Has been replaced by the <PRE>
<CODE> This looks like PRE but it has fixed lenght fonts. Good for computer code. </CODE><ADDRESS> This looks like PRE but it has italized fonts. Good for your return address </ADDRESS>
<PLAINTEXT> defines a separated multi-line set of text to be rendered as it exists in the source document with the same line breaks. Designed to ignore all subsequent HTML tags. Therefore, it was always last in a document, allowing the remainder of the document to be presented as text.Character Rendering tags (above) can be put outside the PRE tags to get anything you want. Puting tags within PRE is not always predictable.
This is how the <PRE> code looks
<PRE > NORMAL TEXT
1 STUFF This line contains spaces and browsers normally eat
2 STUFF up extra spaces. This makes it hard to have collumns
3 STUFF Keep Their Shape
4 STUFF 1 2 3 4 5 6 7
</PRE >This is how it actually shows
NORMAL TEXT 1 STUFF This line contains spaces and browsers normally eat 2 STUFF up extra spaces. This makes it hard to have collumns 3 STUFF Keep Their Shape 4 STUFF 1 2 3 4 5 6 7
DIVIDERS and BREAKS
This is a summery of the main ones. Certain other ones will break a line after they do their thing.
Paragraph <P></P> (closing tag often unnecessary) Align Text <P ALIGN=LEFT|CENTER|RIGHT></P> Line Break <BR> (a single carriage return) Clear Textwrap <BR CLEAR=LEFT|RIGHT|ALL> Horizontal Rule <HR> Alignment <HR ALIGN=LEFT|RIGHT|CENTER> Thickness <HR SIZE=?> (in pixels) Width <HR WIDTH=?> (in pixels) Width Percent <HR WIDTH="%"> (as a percentage of page width) Solid Line <HR NOSHADE> (without the 3D cutout look) N1.0 No Break <NOBR></NOBR> (prevents line breaks) N1.0 Word Break <WBR> (where to break a line if needed)
SELDOM USED TAGS WITHIN PRE TYPE TAGS
< NOSHADE> NOSHADE It is not in 3D, no border. Of course ends with </NOSHADE>
NOWRAP - <NOWRAP> Turns word wrap off. Till it sees </NOWRAP></NOWRAP>
<WRAP=on|off> (Automatic word wrap.)
LINE AND PARAGRAPH BREAKS
<BR> breaks for a new line. Possible Attributes <BR CLEAR=left|right|all|"...">
The CLEAR is Netscape force the line break to clear possible floating graphic images.
Don't know what that means either.
<P> Breaks the paragraph and adds a blank line. It is like <BR> <BR>
<P>characters... </P> The last P "</P>" is assumed when we go to something else.
All Attributes: <P ALIGN=center|left|right|justify|indent >
*****************
* ALIGN=center|left|right|justify Netscape 2.0 implements
*
* ALIGN=center|left|right and MS Internet Explorer 2.0 implements
*
* indent as an option for ALIGN.
******************
CLEAR=left|right|all|"..." CLEAR is to deal with text able to float around an image defined with the IMG element.
Not all browsers use it.
The HR is called HORIZONTAL RULE (A line) <HR> Produces a divider between sections of text.
Horizontal Rules
The <HR>: tag produces a horizontal line the width of the browser window. A horizontal rule is useful to separate major sections of your document.
You can vary a rule's size (thickness) and width (the percentage of the window covered by the rule). Experiment with the settings until you are satisfied with the presentation. For example:
<HR ALIGN="..." CLEAR="..." SIZE="..." WIDTH="..." >
ALIGN=center|left|right ( All browsers support this)
ALIGN=left|right|center|justify (Some browsers support this)
CLEAR=left|right|all|"..."
******************************
*CLEAR=left|right|all|"..." CLEAR is to deal with text able to float
*around an image defined with the IMG element. Not all browsers use it.
*(Some browsers support this)
******************************
SIZE=number
Thickness = number in pixils
WIDTH=number|percent
<HR WIDTH="50%", the lines goes half way across the page (See ALIGN)
<HR WIDTH="250" This is in pixcels across.
******************************
* CGA generly 460
* VGA SMALL= 640 MEDIUM=740 LARGE=1024 HUGE= 1240 and up
******************************
EXAMPLES
<HR SIZE=4 WIDTH="50%">
<HR SIZE=4 WIDTH="50%" ALIGN="CENTER">
displays as: 4 pixils thick and 50% across the screen.
ANCHORS - See Inside Scroll Box.
BASICS OF FONT RENDING Basics of FONTS Rendering .
BODY Atributes and Discription . Examples
<BODY BACKGROUND="pinkmarb.gif" "TEXT="#884444" LINK="#44FF44" VLINK="#7777FF" ALINK="#000000">
In this one the image file (pinkmarb.gif in this case) is "Tiled" as background .
![]()
**Geek stuff ** If you use in the <HEAD>: section <BASEFONT SIZE=X> For That, the # 3 is normal size text.
Any plus or minus are up and down from that.FONT : SIZE, COLOR and FACE
** SIZE **
The basis SIZE atribute is: <FONT SIZE=[+|-]1|2|3|4|5|6|7>
Only the minus 1 and 2 seem to be shown AND Only the plus 1 , 2, 3 and 4 seem to be shown
This has been tested by wlm.
Font minus 1
Font minus 2
Font minus 3
Font minus 4
Font minus 5
Font minus 6
Font minus 7
Font plus 1
Font plus 2
Font plus 3
Font plus 4
Font plus 5
Font plus 6
Font plus 7
** COLOR **
Well for COLOR The 16 colors usaually shown (The Windows 3.1 Pallet) are in alphabetic order:Netscape 4.0 seems to have it also. Don't know about other browsers. Also there are additional colors now. I tried "gold" and it works. Some browsers requires an "#rrggbb" number and you can always use them for any thing calling for color.
- <FONT COLOR="Aqua"< Sample of Color look like this. </FONT> AQUA
- <FONT COLOR="Black"< Sample of Color look like this. </FONT> BLACK
- <FONT COLOR="Blue"< Sample of Color look like this. </FONT> BLUE
- <FONT COLOR="Fuchsia"< Sample of Color look like this. </FONT> FUCHSIA
- <FONT COLOR="Gray"< Sample of Color look like this. </FONT> GRAY
- <FONT COLOR="Green"< Sample of Color look like this. </FONT> GREEN
- <FONT COLOR="Lime"< Sample of Color look like this. </FONT> LIME
- <FONT COLOR="Maroon"< Sample of Color look like this. </FONT> MAROON
- <FONT COLOR="Navy"< Sample of Color look like this. </FONT> NAVY
- <FONT COLOR="Olive"< Sample of Color look like this. </FONT> OLIVE
- <FONT COLOR="Purple"< Sample of Color look like this. </FONT> PURPLE
- <FONT COLOR="Red"< Sample of Color look like this. </FONT> RED
- <FONT COLOR="Silver"< Sample of Color look like this. </FONT> SILVER
- <FONT COLOR="Teal"< Sample of Color look like this. </FONT> TEAL
- <FONT COLOR="White"< Sample of Color look like this. </FONT> WHITE
- <FONT COLOR="Yellow"< Sample of Color look like this. </FONT> YELLOW
** FACE **
Font face is... the font face! I mean, the font itself. Normally, a font is restrained to Times New Roman, or whatever font the user has
chosen as a default font.
The general form is this :<font face="font1">Characters</font>
or for multilal shots on hitting a resident font.
The general form is this :<font face="font1,font2,font3">Characters</font>The FACE attribute is Internet Explorer 2.0 Netscape 4.0 seems to have it also. Don't know about other browsers.
Here is some effects as compared with:
NORMAL TEXT
<CODE> NORMAL TEXT </CODE> Computer code short phrases. PRE is recommended for multiple-line listings.
FORMS (generally require a script on your server)
---------------------------------------------------------------------------
Define Form <FORM ACTION="URL" METHOD=GET|POST></FORM>
N2.0 File Upload <FORM ENCTYPE="multipart/form-data></FORM>
Input Field <INPUT TYPE="TEXT|PASSWORD|CHECKBOX|RADIO|
IMAGE|HIDDEN|SUBMIT|RESET">
Field Name <INPUT NAME="***">
Field Value <INPUT VALUE="***">
Checked? <INPUT CHECKED> (checkboxes and radio boxes)
Field Size <INPUT SIZE=?> (in characters)
Max Length <INPUT MAXLENGTH=?> (in characters)
Selection List <SELECT></SELECT>
Name of List <SELECT NAME="***"></SELECT>
# of Options <SELECT SIZE=?></SELECT>
Multiple Choice <SELECT MULTIPLE> (can select more than one)
Option <OPTION> (items that can be selected)
Default Option <OPTION SELECTED>
Input Box Size <TEXTAREA ROWS=? COLS=?></TEXTAREA>
Name of Box <TEXTAREA NAME="***"></TEXTAREA>
N2.0 Wrap Text <TEXTAREA WRAP=OFF|VIRTUAL|PHYSICAL></TEXTAREA>
|
<CENTER><FORM> <textarea wrap="soft" rows="4" cols="47"> WRAP="off|soft|hard COLS= is for card collums (width). ROWS= is for lines showing (debth). WRAP="off" is the default no wrapping WRAP="soft" it wraps but the text is sent as typed. WRAP="hard" it wraps and text is sent with line breaks at all wrap points. virtual was soft; physical was hard; not with recent browsers. </textarea> </form> </center> |
<FORM METHOD="POST" ACTION="mailto:wmccabe@home.com"> <B>Please enter your name: </B> <INPUT NAME="username" size="30"> <BR> <B>and your email address: </B> <INPUT Name="usermail" size="30"> <P> <CENTER> <B>what do you think of my guestbook?</B> <P> <INPUT TYPE="radio" NAME=I_think_that VALUE="It's_Great">It's Great! <INPUT TYPE="radio" NAME=I_think_that VALUE="It_stinks">It Stinks! <INPUT TYPE="radio" NAME=I_think_that VALUE="You_stink">You Stink! <BR> <INPUT TYPE="radio" NAME=I_think_that VALUE="I_stink">I Stink! <INPUT TYPE="radio" NAME=I_think_that VALUE="We_all_stink">We All Stink! <P> </CENTER> <H3>Make any comments you'd like below:</H3> <CENTER> <TEXTAREA NAME="comment" ROWS=6 COLS=60></TEXTAREA> <P> <B>Thanks for your input</B> <BR> <INPUT TYPE=submit VALUE="Send it!"> <INPUT TYPE=reset VALUE="Start over"> </CENTER> </FORM> |
For example, the code for this page's color scheme used to be: < body bgcolor="387272" text="FFFF80" link="F1F1E0" vlink="99cc32" alink="FF0000" >
bgcolor is the background color
text is the text color
link is the unlinked hyperlinks' that you reference
vlink is the visited hyperlinks' color
alink is the active hyperlinks' color
If you want to put in an image as your background, just substitute the bgcolor="color code" with background="image.gif" You can easily interchange .gif with .jpg (.jpeg) other such as .bmp, .tif .wmf may or may not work on a particular browser
Decmal would be: 0 1 2 3 4 5 6 7 8 9
Hex would be: 0 1 2 3 4 5 6 7 8 9 A B C D E F
|
| ****GOLD************* | ***VIOLET************** | ***YELLOW************** |
| ****PURPLE************* | ******PINK*********** | ******CYAN*********** |
| ******TURQUOSE*********** | ****ORANGE************* | ****MAGENTA************ |
| ****GRAY*************** | ****BROWN************** | ****JADE************** |
| ****FFFF00*************** | ****FF00FF*************** | ****00FFFF*************** |
| ****880000*************** | ****008800*************** | ****000088*************** |
| ****FF0000*************** | ****00FF00*************** | ****0000FF*************** |
| ****FFAAAA*************** | ****FFBBBB*************** | ****FFCCCC*************** |
Deeply saturated primary colors (red, green, blue), do not translate well between video display systems (e.g. computer monitors). These colors have the characteristic of containing a majority of one color and very little of the other two. As these colors are moved through signal distribution systems they are prone to smearing or bleeding, making the image difficult to see.
De-saturate colors by adding equal amounts of the other two colors, e.g., if one desires a bright, deep blue; set blue to 255 and red and green to about 70, not 0.
Combinations of 2 primaries, such as blue and green making cyan, work well. One could have 255 of blue, 255 of green and 70 of red.
Avoid very low luminance colors. That is, colors where the RGB values are all below about 70. The more your color palette tends towards the pastels, the better, as long as data remains effectively differentiated.
Make the background color to compliment not covers or overwhelms, the information and images.
When creating a file to be used as a transparent .GIF file make the background a solid color to facilitate it's elimination.