
DigitalDan's Scientific Website
HTML Crib Sheet
NoteSome of these tags will only work on certain browsers. The list is not complete, please let me know about errors and omissions.
a | anchor (link to another page or web object) | href= usemap= name= mailto: file:// ftp:// news: gopher:// | |
abbr | abbreviation | abbr | |
acronym | acronym | acronym | |
address | address | address | |
applet | Run web code (usually Java) | ||
area | define hot-spot (image maps) | shape= rect= circle= polygon= point= default= | |
b | bold | b | |
base | defines default path | target= | |
basefont | defines default font | size= | |
big | increase font size | big | |
blockquote | indent both sides | blockquote | |
body | identifies main page content | background= color= bcolor= text= link= vlink= alink= | |
br | start new line here | ||
button | create a mouse clickable button on screen | ||
caption | display a caption for a table | align={bottom} | |
center | centre text | ||
cite | citation | ||
code | program code | code | |
col | used in tables for linking coloumns | &mbsp; | |
colgroup | used in tables to define a group of columns | width= span= width= | |
dd | definition (in definition list) | ||
del | show as deleted (cross out) | ||
dfn | definition | dfn | |
div | division (similar to a paragraph) | accepts most attributes | |
dl | definition list | ||
dt | item being defined (in definition list) | ||
em | emphasise | em | |
fieldset | used to group controls | ||
font | sets the font | size= color= fontface= font-style={normal}{italic}{oblique} font-weight={normal}{bold}bolder}{lighter}{100}{200}{300}{400}{500}{600}{700}{800}{900} font-size={xx-small}{x-small}{small}{medium}{large}{x-large}{xx-large}{larger}{smaller} | |
form | Defines section of page that can accept data input tags | method={post}{get} action= | |
frame | frame | name= target={_self}{_top}{_parent}{_blank} | |
frameset | define layout for frames | cols= frameborder= bordercolor= noresize scrolling={yes}{no}{auto} | |
h1...h6 | heading (1=major to 6=minor) | size= color= fontface= font-style={normal}{italic}{oblique} font-weight={normal}{bold}bolder}{lighter}{100}{200}{300}{400}{500}{600}{700}{800}{900} | |
head | header section of page | ||
hr | horizontal line | size= width= noshade | |
html | start/end of page | ||
i | italic | i | |
iframe | inline frame | ||
img | image | src= align={left}{right}{center} alt= width= height= border= hspace= vspace= | |
input | area for user to enter information | type={button}{text}{submit}{checkbox}{radio}{image} src= onClick name= size= submit reset value= maxlength= checked | |
ins | inserted text | ins | |
isindex | line for user to enter search data | ||
kbd | keyboard | kbd | |
label | label for a control | ||
legend | Name part of a form | ||
li | list item |
| |
link | link to another web resource | ||
map | client side image map | name= | |
marquee | scrolling text | behaviour={scroll}{slide}{alternate} direction={left}{right} scrollamout= scrolldelay= | |
menu | Menu (type of unordered list) | ||
meta | meta data | name= content= | |
noframes | action to take if frames not available | ||
noscript | action to take if scripts not available | ||
object | embed object | ||
ol | ordered list | type={disc}{circle}{square} | |
option | option (in select tag) | value= selected | |
p | paragraph | align= {left}{centre}{right}{justify} | |
param | parameters (of an object) | ||
pre | display exactly as typed | pre | |
q | quotation | q | |
s | strike-through | ||
samp | sample | samp | |
script | script (eg. vbs or JavaScript) | ||
select | drop down data selection (for form) | name= size= multiple | |
small | decrease font size | small | |
span | similar to paragraph but remains in same line | accepts most attributes | |
strong | emphasise | strong | |
style | style sheet | type= | |
sub | subscript | sub | |
sup | superscript | sup | |
table | data table | border= cols= width= align= bgcolor= background= cellspacing= cellpadding= bordercolorlight bordercolordark frame={void}{above}{below}{hsides}{vsides}{lhs}{rhs}{box}{border} rules={none}{groups}{rows}{cols}{all} | |
textarea | region in which user can type text | name= cols= rows= | |
tbody | table body | ||
td | cell definition (inside table) | align= valign= bgcolor= background= width= height= | |
th | cell definition for the table header | colspan= rowspan= | |
tfoot | table footer row | ||
thead | table header row | ||
title | name for current page | ||
tr | table row | ||
tt | Used fixed width font | tt | |
u | underline | u | |
ul | unordered list |
| |
var | show as a variable | var |
DigitalDan.uk is part of the DigitalDan.co.uk group