home Diary Dreams Homeopathy Astrology Inspirations Search Links Other

Darned HTML Things That I Always Keep Forgetting.


NOTE REPLACE [] WITH <>.

HTML


Useful symbol codes, like copyright etc.
PRE tag, for preformatted text
Internal links, for easy navigation
E-mail links, the mailto: command
Aligning text and images
Meta Tags<\A>
Images as links
Font tags, colour, size etc.
To change the colour of a single word or sentence
Specifying link colours
Changing the bullet type
Specifying image height and width (faster load)
To give images more space from text
Background colour and images
Aligning images and paragraphs
Horizontal rules
Redirecting browsers (century 21)
Tables
Marquee text
Sounds
Video
Frames
Dividing a document up to apply style to a specific part (DIV)
Indent and Alignment styles
Inserting a java script
Using the address tag

How to use Winzip

Useful symbols.

NOTE:REMOVE SPACES
&# 163; = Pound sign
&# 165; = Yen sign
&# 169; = Copyright sign
&# 174; = Registered trademark
&# 176; = Dot above letter
&# 215; = Accent above letter


(PRE) (/PRE) = Preformatted text.

Internal Links

(A Name="insert name of lkink here where want to link to")
(A HREF="#this is for the hyperlink")Link text goes here")

E-Mail Links

(A HREF="mailto":e-mail address goes here"(Link text goes here(/A)

Aligning Text and Images.

(IMG SRC="filename.gif" ALIGN=TOP/MIDDLE/BOTTOM/LEFT/RIGHT ALT="alternative text")

Meta Tags.

They can go anywhere between the Head Tags.

(META HTTP-EQUIV="escription NAME="description" CONTENT="Enter a description of your site here, this will be displayed by search engines in the results page")

(META HTTP-EQUIV="keywords" NAME="keywords" CONTENTS="Enter the keywords for your site here, separate them by commas")

To automatically forward a visitor to a new site without them having to press anything: (HEAD)

Using Images as Links

(A HREF="url or file to link to here")(IMG SRC="Filename of picture here")(/A)

Font Size.

(FONT SIZE=Put the size here, generally between 1 and 7)

(BASEFONT=number) changes the base font size.

(FONT FACE="typeface here") to change the font space. Can use multiple seperated by commas.

(BODY TEXT="#insert RGB color here") to change the typeface colour.

Changing Link Colours.

(BODY LINK="#000000" VLINK="#000000" ALINK="#000000") Put RGB numbers in the above.


To Change the colour of a single word or sentence

(FONT COLOR="#000000")Place text to be coloured here(/FONT)

Changing the Bullet Type.

(UL TYPE=write type here)
Possible types= DISC/CIRCLE/SQUARE


Specifying Image height and Widths.

If specified an image becomes faster loading.

(IMG SRC="filename" height=y width=x)
Change x and y to pixel measurements

OR
(IMG SRC="filename" HEIGHT=10% WIDTH=10%)

To Give Pictures More Space From Text.

(IMG SRC="filename" HSPACE=h VSPACE=v)
h = margin above and below v=left and right

Background Colour and Images

(BODY BGCOLOR="#000000")

(BODY BACKGROUND="filename of picture here")

Aligning Paragraphs and Images

(CENTER) text or graphic goes here (/CENTER)

To center a paragraph instead of a paragraph tag or center a heading:

(P ALIGN=CENTER)

(H1 ALIGN=CENTER)

Horizontal Rules

(HR WIDTH=x) = sets the width into x pixels

(HR WIDTH=x%) = same but as a percentage of the screen.

(HR SIZE=n) = sets the thickness of the line in pixels (the default is 1 pixel).

(HR ALIGN=LEFT/CENTER/RIGHT) = aligns the line with the wa specified.

(HR NOSHADE) = as a solid line rather than appearing etched.

Redirecting Browsers (century 21 page)

(META HTTP-EQUIV="REFRESH" CONTENT="2; URL="url here") = This might not work, you'd try it in a small web page with a sentence saying they're being redirected.

Tables



Captions
Aligning text within cells
Spannig text across cols
Table backgrounds
Thickness of table Border
To Set Table Width Manually
Cell Spacing
(td nowrap) = Prevents lines in a cell from being broken to fit.

Captions

(CAPTION ALIGN=TOP/BOTTOM)caption here(/CAPTION)


Aligning text within cells

(TD ALIGN=LEFT/RIGHT/CENTER)


To align vertically
Can also use (tr align or valign)
(TD ALIGN=TOP/MIDDLE/BOTTOM)

Spannig text across cols

(TD COLSPAN=columstobespannedhere)
(TH COLSPAN=columstobespannedhere)


The same with rows
(TH ROWSPAN=rowstobespannedhere)
(TH ROWSPAN=rowstobespannedhere)


Table backgrounds

(TABLE BGCOLOUR="#000000")

For a background

(TABLE BACKGROUND="filename.gif")


Thickness of table Border

(TABLE BORDER=number)

To Set Table Width Manually

(TABLE WIDTH=number%)

Width

(TD WIDTH=50%) = all the cells in the column will adopt the same width

Cell Spacing

(TABLE CELLSPACING=10) = amount of space between cells.

Space between cell contents and it's borders.

(TABLE CELLPADDING=10) so the cells with be self-contained, not touching each other, like spaced boxes.

Can also use VALIGN ect in tables.

Marquee Text

(MARQUEE ALIGN=TOP/BOTTOM BEHAVIOUR=SCROLL/SLIDE/ALTERNATE BGCOLOR=colour here DIRECTION=LEFT/RIGHT LOOP=number of times SCROLLDELAY=time delay in miliseconds between each loop SCROLLAMOUNT=pixels, higher the value the faster the movement HEIGHT=either pixels or percentage WIDTH=percentage or pixels) text here (/MARQUEE)

Sounds

Exactly the same as an image tag.

VIDEO

(IMG DYNSRC="filename" LOOP=times START=FILEOPEN/MOUSEOVER)

Frames

The screen is loaded in two parts,so you have to write a separate rame page to divide the screen. Then name each frame and specify which frame each link will load into.
Put this after the head tag
(FRAMESET ROWS=10%, 90%) (FRAME SRC="filename" NAME="name, like top or left or whatever")
(FRAME SRC="filename" NAME="name, like top or left or whatever")
(/FRAMESET)
(/HTML)

Then with each link you must specify where it will load.

(A HREF="fimename of page" TARGET="the name you gave the frame")Link text(/A)

Target
_self = loads into the page that contains the link _top=loads into entire window _blank = loads into a new browser window.
For a default target
(BASE TARGET="frame name")
Tags that can go in the framepage
NORESIZE = stops the frame being re-sized SCROLLING = will put a scroll car if the frame is too big
BORDER=0 = won't display border, this might only work in IE, for Netscape, try: FRAMEBORDER=0
(NOFRAME)text here for people who's browsers can't handle frames(/NOFRAME)

Dividing a Document up To Apply Style to a Specific Part

(DIV)=divide

(DIV STYLE="font-size=1)
Rest of doc will appear in 1pt
(/DIV)A DIV tag will adda line before and after each section it applies to.

To apply a style to a word or phrase without a linebreak

(SPAN STYLE="font size:20pt")text here(/SPAN) Can use for colour, font faces, etc.

Background (Useful to sectio off only a part of a document, like a sidebar)

{BACKGROUND: #000000}

eg. (DIV STYLE="backgrond; black color: white') text here(/DIV)

Indent and Alignment Styles



Paragraph Indents

(STYLE)
p {text-indent: 0.5in}
(/STYLE)
= all paragraphs indented 0.5 inches

Align

{text-align: left}
{text-align: Center}
{text-align: Right}

Margins

{margin-left: value}
{margin-right: value}
value=pixels


Two examples of the above:
The first sets blockquote 100 pixels left and right
The 2nd sets the overall mnargins 0 top bottom and side


(/HEAD)
(STYLE)
BLOCKQUOTE {margin-left:100px Margin-right:100px; font-size: 14pt; font-family: Arial}
(BODY STYLE="margin-left: 0px; margin-top=0px; margin-right: 0px")
(/STYLE)


To add a Java Applet

(APPLET CODE="filename here" WIDTH=x HEIGHT=y)
x and y are in pixels.

Tags that go with applets

ALIGN=LEFT/CENTER/RIGHT/TOP/MIDDLE/BOTTOM/HSPACE/VSPACE

For address at end of page:

(ADDRESS)address here(/ADDRESS)





How to Use Winzip


1 - click on the winzip icon
2 - click NEW, the new archive dialogue box appears (A zipped file is called an archive).
3 - Go to the folder where you want to create the new zipped file.
4 - Enter a file name in the file name text box.
5 - The ADD dialogue box comes up. Browse to the file to be zipped and select it, or even more than one file.
6 - click ADD.
7 - File ?Exit.

---OR---


1 - Select the file.
2 - Right-click it.
3 - Click ADD TO ZIP to put it in the folder of your choice �OR�click ADD TO FILENAME to put it in the same folder as the file you are zipping.

Extracting


1 - Double-click on the zipped file.
2 - Click MAKE EXE. From the actions menu.
3 - Click OK in the next dialogue box.
4 - The exe. Is created and winzip asks if it should be tested.
5 - when you want to open the file, just click it and specify where it�s to be extracted to.

Passwords

When creating a new file, click the passwords button. Enter the password and confirm. A small plus appears by the file. Close. Now the file is password protected.








































index.html#34">
1