HTML-import och -export

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öljande filegenskaper konverteras till META-taggar nÀr du exporterar en fil som ett HTML dokument:

ODF Property

HTML Tags

Title

<TITLE>

Ämne

<META NAME="CLASSIFICATION" CONTENT="FÀltinnehÄll">

Nyckelord

<META NAME="KEYWORDS" CONTENT="FÀltinnehÄll">

Beskrivning

<META NAME="DESCRIPTION" CONTENT="FÀltinnehÄll">

Custom Properties

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


note

NÀr du importerar HTML som innehÄller de hÀr META-taggarna lÀggs innehÄllet i taggarna till i motsvarande filegenskapsruta i LibreOffice.


tip

Nyckelord mÄste separeras med kommatecken. Ett nyckelord kan innehÄlla tomma tecken eller semikolon.


Importtips

NÀr du importerar ett HTML dokument konverteras följande META-taggar automatiskt till LibreOffice-fÀlt: <META HTTP-EQUIV="REFRESH"...> och <META NAME="..." ...> , dÀr NAME motsvarar AUTHOR, CREATED, CHANGED, CHANGEDBY, DESCRIPTION, KEYWORDS eller CLASSIFICATION.

Skript, kommentarer och META-taggar som placeras direkt före en TABLE-tagg infogas i den första cellen i tabellen.

Skript och META-taggar i rubriken pÄ ett HTML dokument importeras och förankras i det första stycket i dokumentet.

Du kan stĂ€lla in alternativ för HTML-taggar genom att vĂ€lja – LĂ€s in/spara – HTML-kompatibilitet. En kĂ€nd META-tagg innehĂ„ller antingen "HTTP-EQUIV" eller "NAME" och importeras som LibreOffice-kommentarer. Det finns dock ett undantag: <META NAME="GENERATOR"...> ignoreras.

Exporttips

Kommentars- och skriptfÀlt i början av det första stycket exporteras som HTML-dokumentets rubrik (header-fÀlt). Om dokumentet inleds med en tabell sÄ exporteras det första stycket i den första cellen som HTML-dokumentets rubrik.