HTML tags, attributes, values
Really basic HTML tags, attributes, values
By Gary Mariano
For use in OrgCOMarts classes
De La Salle University

ANCHORBODYFONTHORIZONTAL RULEIMAGESLISTS
PARAGRAPH ALIGNMENTTABLESTEXT STYLESTITLE

TAG ATTRIBUTE VALUE, example
a href filename, URL
mailform, with subject line
onmouseover
onmouseout
<a href="http://www.cnn.com/index.html"
 onmouseover="status='text'; return true" 
 onmouseout="status='text'">text</a>

<a href="mailto:the@dot.com?subject=line" onmouseover="status='text'; return true" onmouseout="status='text'">text</a>

body background
bgcolor
text
link
vlink
alink
a graphic
RGB name or color hex code
RGB name or color hex code
RGB name or color hex code
RGB name or color hex code
RGB name or color hex code
<body background="graphic.gif" text="navy"
 link="#0000ff" vlink="yellow" alink="green">
font face
size
color
True Type or Adobe Type
-2 to +4, 0 to 7
RGB name or hex color code
<font face="helvetica,arial" size="+2"
 color="#ff0000">
hr align
width
left, right, center
pixels or percentage of column
<hr align=left width=85%>
img src
alt
height
width
hspace
vspace
border
the image file name
an alternate statement in lieu of image
pixels or percentage of image
pixels
pixels
pixels
pixels
<img src="image.gif" height=80%
 hspace=5 vspace=5 border=1>
ol li type=A,a,I,i,1
<ol type=disc>
  <li>list item 1
  <li>list item 2
</ol>
ul li type=circle, square, disc
<ol type=disc>
  <li>list item 1
  <li>list item 2
</ol>
p align left, right, center, justify
<p align=justify>
table width
height
align
pixels, or percentage of window
pixels
left, right, center
<table width=90% height=700 align=center>
td width
height
align
valign
bgcolor
pixels, or percentage of window
pixels
left, right, center
top, bottom
RGB name or color hex code
<td width=15% height=200 align=right
 valign=top bgcolor="navy">
text styles italics, boldface, underscored
<i>italics text</i>
<b>boldface text</b>
<u>underscored text</u>
<i><b>text is italicized, boldfaced</i></b>
title none
<title>Title of the document</title>


©2005 Gary Mariano • DLSU