Il tag <meta /> fornisce informazioni sulla pagina.
Possiamo usarlo per la descrizione della pagina, per le keywords, informazioni sull'autore etc...
E' un tag vuoto e quindi deve terminare con />
Esempio
<html>
<head>
<title>Morpheusweb.it</title>
<meta name="description" content="Risorse per webmaster">
<meta name="keywords" content="script, manuali, asp, javascript, css">
<meta name="author" content="carmelo">
</head>
<body>
</body>
</html>
Attributi
| Attributo |
Descrizione |
| lang |
la lingua |
| content |
E' il contenuto testuale, obbligatorio
|
| http-equiv |
collega l'attributo "content" ad un header http
Valori possibili sono:
-
content-type
- expires
- refresh
- set-cookie |
| name |
Valori possibili sono:
- author
- description
- keywords
- generator
- revised |
| scheme |
il formato per interpretare l'attributo "content" |
Eventi
- onfocus
- onblur
- onclick
- ondblclick
- onmousedown
- onmouseup
- onmouseover
- onmousemove
- onmouseout
- onkeypress
- onkeydown
- onkeyup