Tag Html
(Un elenco dei principali tag, da conoscere per realizzare pagine html. Ad ogni tag è associata una breve descrizione.)
Tag di base
<html>...</html> » Definire un documento Html.
<head>...</head> » Definire le informazione di intestazione come il titolo ed i meta-tag.
<title>...</title> » Definire il titolo che appare alla cima della finestra di browser.
<body>...</body> » Il corpo del documento Html.
Corpo di un documento Html
<body>...</body> » Il corpo del documento Html.
<body bgcolor="#??????"> » Colore di sfondo del documento.
<body background="nomefile.xxx"> » Immagine come sfondo.
<body text="#??????"> » Colore del testo del documento.
<body link="#??????"> » Colore dei collegamenti ipertestuali.
<body alink="#??????"> » Colore dei collegamenti ipertestuali attivi.
<body vlink="#??????"> » Colore dei collegamenti ipertestuali già visitati.
Formattazione
<p>...</p> » Definire un nuovo paragrafo.
<p align=?> » Allineare un paragrafo a destra,sinistra e a centro.
<br> » Inserire una interruzione di riga.
<blockquote>...</blockquote> » Indentare il testo da entrambi i lati.
Testo
<pre>...</pre> » Testo preformattato.
<hl>...</hl> a <h6>...</h6> » Titoli.
<b>...</b> » Testo in grassetto.
<i>...</i> » Testo in corsivo.
<cite>...</cite> » Citazione, generalmente in corsivo.
<em>...</em> » Enfatizzare una parola (grassetto o corsivo).
<strong>...</strong> » Enfatizzare una parola (grassetto o corsivo).
<sub>...</sub> » Testo apice.
<sup>...</sup> » Testo pedice
Caratteri
<font>...</font> » Attributi dei caratteri.
<font size="value">...</font> » Grandezza dei caratteri con valori da 1 (più piccolo) a 7 (più grande).
<font face="name">...</font> » Tipo di caratteri.
<font color="#??????">...</font> » Colore dei caratteri.
Il tag <font> è disapprovato nell'attuale specifica Html; è preferibile usare i fogli di stile CSS per impostare i caratteri.
Elenchi
<dl>...</dl> » Elenco definizioni.
<dt> » Precede ogni termine di definizione.
<dd> » Precede ogni definizione.
<ol>...</ol> » Elenco ordinato.
<li>...</li> » Precede ogni voce dell'elenco aggiungendo un numero.
<ul>...</ul> » Elenco non ordinato.
<div align=?> » Tag usato per allineare grossi blocchi di testo.
Collegamenti
<a>...</a> » Origine e destinazione di un collegamento ipertestuale.
<a href="url">...</a> » Collegamento ipertestuale.
<a href="#name">...</a> » Collegamento ad un'ancora nel documento stesso.
<a href="URL#name">...</a> » Collegamento ad un'ancora in un altro documento.
<a name="name">...</a> » Ancora in un documento.
<a href="mailto:e-mail">...</a> » Collegamento ad una e-mail.
Tabelle
<table>...</table> » Creare una tabella.
<table border="pixel"> » Grandezza del bordo della tabella.
<table cellspacing="pixel"> » Spazio tra le celle di una tabella.
<table cellpadding="pixel"> » Spazio tra il bordo e il contenuto delle celle di una tabella.
<table height="pixel" or "%"> » Altezza di una tabella.
<table width="pixel" or "%"> » Larghezza di una tabella.
<td>...</td> » Righe di una tabella.
<td colspan="colonne"> » Estendere la cella attraverso il numero di colonne specificato
<td rowspan="righe"> » Estendere la cella attraverso.
<td nowrap> » Forzare il testo di una cella affinché non vada mai a capo.
<th>...</th> » Tabella d'intestazione con il testo in grassetto, allineato al centro.
<tr>...</tr> » Colonne di una tabella.
<tr align="?"> o <td align="?"> » Allineare il contenuto di una cella a destra, sinistra o a centro.
<tr valign="?"> o <td valign="?"> » Allineamento verticale di una cella a centro, sotto o sopra.
|
NAME |
W3C HTML.X.X |
NS |
MSIE |
DESCRIPTION |
||
|
|
|
|
|
|
|
|
|
A |
anchor |
|||||
|
ABBR |
|
|
|
|
abbreviated form (e.g., WWW, HTTP,
etc.) |
|
|
ACRONYM |
|
|
|
|
|
|
|
ADDRESS |
information on author |
|||||
|
APPLET |
|
Java applet |
||||
|
AREA |
|
client-side image map area |
||||
|
B |
bold text style |
|||||
|
BASE |
document base URI |
|||||
|
BASEFONT |
|
base font for the page |
||||
|
BDO |
|
|
|
I18N BiDi over-ride |
||
|
BGSOUND |
|
|
|
|
background sound |
|
|
BIG |
|
enlarge text style |
||||
|
BLINK |
|
|
|
|
blinking text |
|
|
BLOCKQUOTE |
long quotation |
|||||
|
BODY |
document body |
|||||
|
BR |
forced line break |
|||||
|
BUTTON |
|
|
|
push button |
||
|
CAPTION |
|
table caption |
||||
|
CENTER |
|
shorthand for DIV align=center |
||||
|
CITE |
citation font format |
|||||
|
CODE |
computer code fragment |
|||||
|
COL |
|
|
|
table column |
||
|
COLGROUP |
|
|
|
table column group |
||
|
COMMENT |
|
|
|
|
comment ignored by the browser |
|
|
DD |
definition description |
|||||
|
DEL |
|
|
|
deleted text |
||
|
DFN |
|
|
instance definition |
|||
|
DIR |
directory list |
|||||
|
DIV |
|
generic language/style container |
||||
|
DL |
definition list |
|||||
|
DT |
definition term |
|||||
|
EM |
emphasis |
|||||
|
EMBED |
|
|
|
embeds external object in HTML |
||
|
FIELDSET |
|
|
|
form control group |
||
|
FONT |
|
local change to font |
||||
|
FORM |
interactive form |
|||||
|
FRAME |
|
|
subwindow |
|||
|
FRAMESET |
|
|
window subdivision |
|||
|
H1 |
heading |
|||||
|
H2 |
heading |
|||||
|
H3 |
heading |
|||||
|
H4 |
heading |
|||||
|
H5 |
heading |
|||||
|
H6 |
heading |
|||||
|
HEAD |
document head |
|||||
|
HR |
horizontal rule |
|||||
|
HTML |
document root element |
|||||
|
I |
italic text style |
|||||
|
IFRAME |
|
|
|
inline subwindow |
||
|
ILAYER |
|
|
|
|
positioning content |
|
|
IMG |
Embedded image |
|||||
|
INPUT |
form control/field |
|||||
|
INS |
|
|
|
inserted text |
||
|
ISINDEX |
single line prompt |
|||||
|
KBD |
text to be entered by the user |
|||||
|
KEYGEN |
|
|
|
|
for use in web-based certificate management systems |
|
|
LABEL |
|
|
|
form field label text |
||
|
LAYER |
|
|
|
|
positioning content |
|
|
LEGEND |
|
|
|
fieldset legend |
||
|
LI |
list item |
|||||
|
LINK |
a media-independent link |
|||||
|
MAP |
|
client-side image map |
||||
|
MARQUEE |
|
|
|
|
scrolling text field |
|
|
MENU |
menu list |
|||||
|
META |
generic metainformation |
|||||
|
MULTICOL |
|
|
|
|
multiple column formatting |
|
|
NOBR |
|
|
|
ensures that a line of text does not wrap to the next line |
||
|
NOEMBED |
|
|
|
|
alternative text for embedded objects |
|
|
NOFRAMES |
|
|
alternate content container for non frame-based rendering |
|||
|
NOLAYER |
|
|
|
|
positioning content |
|
|
NOSCRIPT |
|
|
alternate content container for non script-based rendering |
|||
|
OBJECT |
|
|
generic embedded object |
|||
|
OL |
ordered list |
|||||
|
OPTGROUP |
|
|
|
|
option group |
|
|
OPTION |
selectable choice |
|||||
|
P |
paragraph |
|||||
|
PARAM |
|
named property value |
||||
|
PLAINTEXT |
|
|
|
text format |
||
|
PRE |
preformatted text |
|||||
|
Q |
|
|
|
sets apart a quotation in text |
||
|
S |
|
strike-through text style |
||||
|
SAMP |
|
sample program output, scripts, etc. |
||||
|
SCRIPT |
|
script statements |
||||
|
SELECT |
option selector |
|||||
|
SERVER |
|
|
|
|
specifies server-side JavaScript statements |
|
|
SMALL |
|
small text style |
||||
|
SPACER |
|
|
|
|
inserts a space in a document |
|
|
SPAN |
|
|
generic language/style container |
|||
|
STRIKE |
|
strike-through text |
||||
|
STRONG |
strong emphasis |
|||||
|
STYLE |
|
style info |
||||
|
SUB |
|
subscript |
||||
|
SUP |
|
superscript |
||||
|
TABLE |
|
table |
||||
|
TBODY |
|
|
|
table body |
||
|
TD |
|
table data cell |
||||
|
TEXTAREA |
multi-line text field |
|||||
|
TFOOT |
|
|
|
table footer |
||
|
TH |
|
table header cell |
||||
|
THEAD |
|
|
|
table header |
||
|
TITLE |
document title |
|||||
|
TR |
|
table row |
||||
|
TT |
teletype or monospaced text style |
|||||
|
U |
|
underlined text style |
||||
|
UL |
unordered list |
|||||
|
VAR |
instance of a variable or program argument |
|||||