Importazione ed esportazione HTML

When you export a file to an HTML document, the description and the user-defined file properties are included as META tags between the HEAD tags of the exported document. META tags are not displayed in a Web browser, and are used to include information, such as keywords for search engines on your Web page. To set the properties of the current document, choose File - Properties, click the Description or Custom Properties tabs, and then type the information you want.

Quando esportate un file come documento HTML, le proprietà file seguenti vengono convertite in tag META:

ODF Property

HTML Tags

Title

<TITLE>

Oggetto

<META NAME="CLASSIFICATION" CONTENT="Contenuto campo">

Parole chiave

<META NAME="KEYWORDS" CONTENT=Contenuto campo">

Descrizione

<META NAME="DESCRIPTION" CONTENT=Contenuto campo">

Custom Properties

<META NAME="Custom field name" CONTENT="Custom field content">


note

Quando importate un file HTML contenente questi tag META, il contenuto dei tag viene aggiunto alla casella delle proprietà file di LibreOffice corrispondente.


tip

Le parole chiave devono essere separate da virgole. Una parola chiave può contenere spazi o punti e virgola.


Suggerimenti per l'importazione

Quando importate un documento HTML, i seguenti tag META vengono automaticamente convertiti in campi di LibreOffice: <META HTTP-EQUIV="REFRESH"...> e <META NAME="..." ...> , dove META NAME può essere AUTHOR, CREATED, CHANGED, CHANGEDBY, DESCRIPTION, KEYWORDS o CLASSIFICATION.

Script, commenti e tag META posizionati direttamente prima di un tag TABLE vengono inseriti nella prima cella della tabella.

Script e tag META nell'intestazione di un documento HTML vengono importati e ancorati al primo paragrafo del documento.

Per impostare le opzioni per importare i tag HTML, scegliete - Carica/Salva - Compatibilità HTML. I tag META noti contengono "HTTP-EQUIV" o "NAME" e vengono importati come commenti di LibreOffice. La sola eccezione è <META NAME="GENERATOR"...> che viene ignorato.

Suggerimenti per l'esportazione

Commenti e campi script all'inizio del primo paragrafo in un documento vengono esportati nell'intestazione di un documento HTML. Se il documento inizia con una tabella, il primo paragrafo nella prima cella della tabella viene esportato nell'intestazione del documento HTML.