Free Republic
Browse · Search
News/Activism
Topics · Post Article

Skip to comments.

Reference HTML Cheatsheet
WebMonkey ^ | 9.26/2002 | N/A

Posted on 09/26/2002 3:09:27 PM PDT by John Lenin

<b></b>
Creates bold text

<i></i>
Creates italic text

<tt></tt>
Creates teletype, or typewriter-style text

<cite></cite>
Creates a citation, usually italic

<em></em>
Emphasizes a word (with italic or bold)

<strong></strong>
Emphasizes a word (with italic or bold)

<font size=?></font>
Sets size of font, from 1 to 7)

<font color=?></font>
Sets font color, using name or hex value


Links

<html></html>
Creates an HTML document

<head></head>
Sets off the title and other information that isn't displayed on the Web page itself

<body></body>
Sets off the visible portion of the document



Header Tags

<title></title>
Puts the name of the document in the title bar


Body Attributes

<body bgcolor=?>
Sets the background color, using name or hex value

<body text=?>
Sets the text color, using name or hex value

<body link=?>
Sets the color of links, using name or hex value

<body vlink=?>
Sets the color of followed links, using name or hex value

<body alink=?>
Sets the color of links on click


Text Tags

<pre></pre>
Creates preformatted text

<hl></hl>
Creates the largest headline

<h6></h6>
Creates the smallest headline

<b></b>
Creates bold text

<i></i>
Creates italic text

<tt></tt>
Creates teletype, or typewriter-style text

<cite></cite>
Creates a citation, usually italic

<em></em>
Emphasizes a word (with italic or bold)

<strong></strong>
Emphasizes a word (with italic or bold)

<font size=?></font>
Sets size of font, from 1 to 7)

<font color=?></font>
Sets font color, using name or hex value


Links

<a href="URL"></a>
Creates a hyperlink

<a href="mailto:EMAIL"></a>
Creates a mailto link

<a name="NAME"></a>
Creates a target location within a document

<a href="#NAME"></a>
Links to that target location from elsewhere in the document


Formatting

<p></p>
Creates a new paragraph

<p align=?>
Aligns a paragraph to the left, right, or center

<br>
Inserts a line break

<blockquote>
</blockquote>

Indents text from both sides

<dl></dl>
Creates a definition list

<dt>
Precedes each definition term

<dd>
Precedes each definition

<ol></ol>
Creates a numbered list

<li></li>
Precedes each list item, and adds a number

<ul></ul>
Creates a bulleted list

<div align=?>
A generic tag used to format large blocks of HTML, also used for stylesheets


Graphical Elements

<img src="name">
Adds an image

<img src="name" align=?>
Aligns an image: left, right, center; bottom, top, middle

<img src="name" border=?>
Sets size of border around an image

<hr>
Inserts a horizontal rule

<hr size=?>
Sets size (height) of rule

<hr width=?>
Sets width of rule, in percentage or absolute value

<hr noshade>
Creates a rule without a shadow


Tables

<table></table>
Creates a table

<tr></tr>
Sets off each row in a table

<td></td>
Sets off each cell in a row

<th></th>
Sets off the table header (a normal cell with bold, centered text)


Table Attributes

<table border=#>
Sets width of border around table cells

<table cellspacing=#>
Sets amount of space between table cells

<table cellpadding=#>
Sets amount of space between a cell's border and its contents

<table width=# or %>
Sets width of table — in pixels or as a percentage of document width

<tr align=?> or <td align=?>
Sets alignment for cell(s) (left, center, or right)

<tr valign=?> or <td valign=?>
Sets vertical alignment for cell(s) (top, middle, or bottom)

<td colspan=#>
Sets number of columns a cell should span

<td rowspan=#>
Sets number of rows a cell should span (default=1)

<td nowrap>
Prevents the lines within a cell from being broken to fit


Frames

<frameset></frameset>
Replaces the <body> tag in a frames document; can also be nested in other framesets

<frameset rows="value,value">
Defines the rows within a frameset, using number in pixels, or percentage of w idth

<frameset cols="value,value">
Defines the columns within a frameset, using number in pixels, or percentage of width

<frame>
Defines a single frame — or region — within a frameset

<noframes></noframes>
Defines what will appear on browsers that don't support frames


Frames Attributes

<frame src="URL">
Specifies which HTML document should be displayed

<frame name="name">
Names the frame, or region, so it may be targeted by other frames

<frame marginwidth=#>
Defines the left and right margins for the frame; must be equal to or greater than 1

<frame marginheight=#>
Defines the top and bottom margins for the frame; must be equal to or greater than 1

<frame scrolling=VALUE>
Sets whether the frame has a scrollbar; value may equal "yes," "no," or "auto." The default, as in ordinary documents, is auto.

<frame noresize>
Prevents the user from resizing a frame


Forms

For functional forms, you'll have to run a CGI script. The HTML just creates the appearance of a form.

<form></form>
Creates all forms

<select multiple name="NAME" size=?></select>
Creates a scrolling menu. Size sets the number of menu items visible before you need to scroll.

<option>
Sets off each menu item

<select name="NAME"></select>
Creates a pulldown menu

<option>
Sets off each menu item

<textarea name="NAME" cols=40 rows=8></textarea>
Creates a text box area. Columns set the width; rows set the height.

<input type="checkbox" name="NAME">
Creates a checkbox. Text follows tag.

<input type="radio" name="NAME" value="x">
Creates a radio button. Text follows tag

<input type=text name="foo" size=20>
Creates a one-line text area. Size sets length, in characters.

<input type="submit" value="NAME">
Creates a Submit button

<input type="image" border=0 name="NAME" src="name.gif">
Creates a Submit button using an image

<input type="reset">
Creates a Reset button






TOPICS: Miscellaneous
KEYWORDS: cheat; faq; fr; html; htmlcheatsheet; lexicon; sheet
Navigation: use the links below to view more comments.
first previous 1-20 ... 141-160161-180181-200201-215 next last
To: Apple Blossom

ping


161 posted on 06/03/2006 2:41:00 PM PDT by bmwcyle (Only stupid people would vote for McCain, Warner, Hagle, Snowe, Graham, or any RINO)
[ Post Reply | Private Reply | To 1 | View Replies]

To: Dosa26
test


162 posted on 06/03/2006 2:42:37 PM PDT by Dosa26
[ Post Reply | Private Reply | To 160 | View Replies]

To: Dosa26
test


163 posted on 06/03/2006 2:43:16 PM PDT by Dosa26
[ Post Reply | Private Reply | To 160 | View Replies]

To: Dosa26
test
164 posted on 06/03/2006 2:46:26 PM PDT by Dosa26
[ Post Reply | Private Reply | To 163 | View Replies]

To: thackney
ping for later reference

OK, it's later.

165 posted on 06/03/2006 2:49:25 PM PDT by humblegunner (If you're gonna die, die with your boots on.)
[ Post Reply | Private Reply | To 118 | View Replies]

To: Dosa26

166 posted on 06/03/2006 2:50:49 PM PDT by Dosa26
[ Post Reply | Private Reply | To 164 | View Replies]

To: sauropod

.


167 posted on 06/03/2006 2:52:13 PM PDT by sauropod ("Heaven on my left, Hell on my right and the Angel of Death behind me" - Dune)
[ Post Reply | Private Reply | To 1 | View Replies]

To: John Lenin

placemarker


168 posted on 06/03/2006 2:57:12 PM PDT by js1138 (Well I say there are some things we don't want to know! Important things!")
[ Post Reply | Private Reply | To 1 | View Replies]

To: Dosa26

169 posted on 06/03/2006 2:58:47 PM PDT by Dosa26
[ Post Reply | Private Reply | To 166 | View Replies]

To: Dosa26

finally...cool


170 posted on 06/03/2006 2:59:34 PM PDT by Dosa26
[ Post Reply | Private Reply | To 169 | View Replies]

Placemark - BUMP


171 posted on 06/03/2006 3:00:16 PM PDT by 2111USMC
[ Post Reply | Private Reply | To 170 | View Replies]

To: humblegunner

I was wanting to wait at least two years before using that.

Now I gotta start all over again.

Thanks a lot.


172 posted on 06/03/2006 4:13:12 PM PDT by thackney (life is fragile, handle with prayer)
[ Post Reply | Private Reply | To 165 | View Replies]

To: Jasper
Hex Code Color
#CCFFFF  
#CCFFCC  
#CCFF99  
#CCFF66  
#CCFF33  
#CCFF00  
#CCCCFF  
#CCCCCC  
#CCCC99  
#CCCC66  
#CCCC33  
#CCCC00  
#CC99FF  
#CC99CC  
#CC9999  
#CC9966  
#CC9933  
#CC9900  
#CC66FF  
#CC66CC  
#CC6699  
#CC6666  
#CC6633  
#CC6600  
#CC33FF  
#CC33CC  
#CC3399  
#CC3366  
#CC3333  
#CC3300  
#CC00FF  
#CC00CC  
#CC0099  
#CC0066  
#CC0033  
#CC0000  

Hex Code Color
#33FFFF  
#33FFCC  
#33FF99  
#33FF66  
#33FF33  
#33FF00  
#33CCFF  
#33CCCC  
#33CC99  
#33CC66  
#33CC33  
#33CC00  
#3399FF  
#3399CC  
#339999  
#339966  
#339933  
#339900  
#3366FF  
#3366CC  
#336699  
#336666  
#336633  
#336600  
#3333FF  
#3333CC  
#333399  
#333366  
#333333  
#333300  
#3300FF  
#3300CC  
#330099  
#330066  
#330033  
#330000  
Hex Code Color
#99FFFF  
#99FFCC  
#99FF99  
#99FF66  
#99FF33  
#99FF00  
#99CCFF  
#99CCCC  
#99CC99  
#99CC66  
#99CC33  
#99CC00  
#9999FF  
#9999CC  
#999999  
#999966  
#999933  
#999900  
#9966FF  
#9966CC  
#996699  
#996666  
#996633  
#996600  
#9933FF  
#9933CC  
#993399  
#993366  
#993333  
#993300  
#9900FF  
#9900CC  
#990099  
#990066  
#990033  
#990000  

173 posted on 06/03/2006 5:55:20 PM PDT by John Lenin
[ Post Reply | Private Reply | To 153 | View Replies]

To: John Lenin
WOW!!

Thanks.

Printed and filed for reference.

/jasper

174 posted on 06/03/2006 8:03:48 PM PDT by Jasper (Stand Fast, Craigellachie !)
[ Post Reply | Private Reply | To 173 | View Replies]

To: FortWorthPatriot


Testing my HTML skills...
175 posted on 08/04/2006 9:15:50 AM PDT by FortWorthPatriot (Semper Fidelis)
[ Post Reply | Private Reply | To 8 | View Replies]

To: FortWorthPatriot
Testing again...


176 posted on 08/04/2006 9:18:54 AM PDT by FortWorthPatriot (Semper Fidelis)
[ Post Reply | Private Reply | To 175 | View Replies]

To: FortWorthPatriot

Your HTML skills are yummy.


177 posted on 08/04/2006 9:19:13 AM PDT by reagan_fanatic (Get off my lawn!)
[ Post Reply | Private Reply | To 175 | View Replies]

To: reagan_fanatic
"Your HTML skills are yummy."

Well, thank you. I just decided it was time for me to catch up to the 90s!
178 posted on 08/04/2006 9:21:05 AM PDT by FortWorthPatriot (Semper Fidelis)
[ Post Reply | Private Reply | To 177 | View Replies]

To: John Lenin

btt


179 posted on 08/04/2006 9:23:02 AM PDT by TASMANIANRED (The Internet is the samizdat of liberty..)
[ Post Reply | Private Reply | To 1 | View Replies]

To: reagan_fanatic
"Your HTML skills are yummy."

Darn. It just dawned on my that it was the content (Israeli Army Girls) of my post that you considered yummy rather than my skills...



Yet another test...
180 posted on 08/04/2006 9:26:07 AM PDT by FortWorthPatriot (Semper Fidelis)
[ Post Reply | Private Reply | To 178 | View Replies]


Navigation: use the links below to view more comments.
first previous 1-20 ... 141-160161-180181-200201-215 next last

Disclaimer: Opinions posted on Free Republic are those of the individual posters and do not necessarily represent the opinion of Free Republic or its management. All materials posted herein are protected by copyright law and the exemption for fair use of copyrighted works.

Free Republic
Browse · Search
News/Activism
Topics · Post Article

FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson