HTML-import og -eksport

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.

Følgende filegenskaper blir gjort om til META-tagger når du eksporterer en fil til et HTML-dokument:

ODF Property

HTML Tags

Title

<TITLE>

Emne

<META NAME="CLASSIFICATION" CONTENT="Field Content">

Nøkkelord

<META NAME="KEYWORDS" CONTENT="Field Content">

Beskrivelse

<META NAME="DESCRIPTION" CONTENT="Field Content">

Custom Properties

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


note

Når du importerer et HTML-dokument som inneholder disse META-taggene, blir innholdet i taggene lagt til i den tilsvarende LibreOffice-filegenskapboksen.


tip

Nøkkelord må skilles med kommaer. Et nøkkelord kan inneholde blanke tegn eller semikoloner.


Tips ved import

Når du importerer et HTML-dokument, vil følgende META-tagger automatisk gjøres om til LibreOffice-felter: <META HTTP-EQUIV="REFRESH"…> og <META NAME="..." …>, der «NAME» er «AUTHOR», «CREATED», «CHANGED», «CHANGEDBY», «DESCRIPTION», «KEYWORDS» eller «CLASSIFICATION».

Skript, kommentarer og meta-tagger, som er plassert rett før en tabell-tagg, vil bli satt inn i den første cellen i tabellen.

Skript og meta-tagger i hodet av et HTML-dokument blir importert og forankret til det første avsnittet i dokumentet.

To set the options for importing HTML tags, choose - Load/Save - HTML Compatibility. A known META tag contains either "HTTP-EQUIV" or "NAME", and are imported as LibreOffice comments. The only exception is <META NAME="GENERATOR"...>, which is ignored.

Tips ved eksport

Comments and script fields at the beginning of the first paragraph in a document are exported to the header of an HTML document. If the document begins with a table, the first paragraph in the first cell of the table is exported to the header of the HTML document.