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

</p> </td> </tr> <tr> <td rowspan="" colspan="" dir="auto"> <p id="par_id3153778" class="paragraphintable" dir="auto">Ämne</p> </td> <td rowspan="" colspan="" dir="auto"> <p id="par_id3147228" class="paragraphintable" dir="auto"><META NAME="CLASSIFICATION" CONTENT="Fältinnehåll"></p> </td> </tr> <tr> <td rowspan="" colspan="" dir="auto"> <p id="par_id3154908" class="paragraphintable" dir="auto">Nyckelord</p> </td> <td rowspan="" colspan="" dir="auto"> <p id="par_id3156422" class="paragraphintable" dir="auto"><META NAME="KEYWORDS" CONTENT="Fältinnehåll"></p> </td> </tr> <tr> <td rowspan="" colspan="" dir="auto"> <p id="par_id3151041" class="paragraphintable" dir="auto">Beskrivning</p> </td> <td rowspan="" colspan="" dir="auto"> <p id="par_id3125863" class="paragraphintable" dir="auto"><META NAME="DESCRIPTION" CONTENT="Fältinnehåll"></p> </td> </tr> <tr> <td rowspan="" colspan="" dir="auto"> <p id="par_id3159149" class="paragraphintable" dir="auto">Custom Properties</p> </td> <td rowspan="" colspan="" dir="auto"> <p id="par_id3157892" class="paragraphintable" dir="auto"><META NAME="Custom field name" CONTENT="Custom field content"></p> </td> </tr> </table> <br> <div class="note"> <div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/note.svg" alt="note" style="width:40px;height:40px;"></div> <div class="notetext"><p id="par_id3155855" dir="auto">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.</p></div> </div> <br> <div class="tip"> <div class="noteicon" dir="auto"><img src="media/icon-themes/res/helpimg/tip.svg" alt="tip" style="width:40px;height:40px;"></div> <div class="notetext"><p id="par_id0926200812164481" dir="auto">Nyckelord måste separeras med kommatecken. Ett nyckelord kan innehålla tomma tecken eller semikolon.</p></div> </div> <br> <h3 id="hd_id3163822" dir="auto">Importtips</h3> <p id="par_id3155307" class="paragraph" dir="auto">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.</p> <p id="par_id3146146" class="paragraph" dir="auto">Skript, kommentarer och META-taggar som placeras direkt före en TABLE-tagg infogas i den första cellen i tabellen.</p> <p id="par_id3155366" class="paragraph" dir="auto">Skript och META-taggar i rubriken på ett HTML dokument importeras och förankras i det första stycket i dokumentet.</p> <p id="par_id3152885" class="paragraph" dir="auto">Du kan ställa in alternativ för HTML-taggar genom att välja <span class="emph"><span id="swlnsystextshared01about_meta_tagsxml_1" class="switchinline"><span hidden="true" id="MACtextshared01about_meta_tagsxml_1" class="MAC">LibreOffice – Inställningar</span><span hidden="true" id="defaulttextshared01about_meta_tagsxml_1">Verktyg – Alternativ</span></span> – Läs in/spara – HTML-kompatibilitet</span>. 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.</p> <h3 id="hd_id3163717" dir="auto">Exporttips</h3> <p id="par_id3159180" class="paragraph" dir="auto">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.</p> </div> <div id="SearchFrame"></div> <div id="DonationFrame"></div> <footer><div id="DEBUG" class="debug"> <h3 class="bug">Help content debug info:</h3> <p dir="auto">This page is: <a href="https://opengrok.libreoffice.org/xref/help/source/text/shared/01/about_meta_tags.xhp" target="_blank">/text/shared/01/about_meta_tags.xhp</a></p> <p dir="auto">Title is: HTML-import och -export</p> <p id="bm_module" dir="auto"></p> <p id="bm_system" dir="auto"></p> <p id="bm_HID" dir="auto"></p> </div></footer> </body> </html>