Il tag HTML <META>



Funzione

Il tag HTML <meta> viene usato per aggiungere campi metadata al documento HTML.

Differenze tra HTML e XHTML:

In HTML il tag <meta> non ha un tag di chiusura.

In XHTML dev'esserci un tag di chiusura.

Esempio

<html>
   <head>
      <title>HTML meta tag</title>
      <meta name="keywords" content="HTML, meta tag, metadata" />
      <meta name="description" content="Brief description of the document" />
      <meta http-equiv="refresh" content="10" />
   </head>
   <body style="background-color:orange">
      Document content goes here
   </body>
</html>

Per ulteriori informazioni riguardo i Meta Tag vai alla pagina Meta Tag

Attributi

AttributoValoreDescrizione
Nameauthor
description
keywords
generator
revised
others
Il nome della proprietà
contenttextDefinsce le meta informazioni da associare con http-equiv o il nome.
http-equivcontent-type
expires
refresh
set-cookie
Collega il contenuto dell' attributo ad un header HTTP.
schemetextDefines a format to be used to interpret the value of the content attribute.

Attributi Standard:

AttributoDescrizione
dirIndica la direzione del testo
langImposta il codice lingua.
xml:langImposta il codice lingua.
html_tags_reference.htm
Advertisements