Contents
Index 🔎︎

# 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.

將檔案匯出為 HTML 文件時，下列檔案屬性將被轉換為 META 標記：

ODF Property | HTML Tags
--- | ---
Title | </p> </td> </tr> <tr> <td rowspan="" colspan="" dir="auto"> <p id="par_id3153778" class="paragraphintable" dir="auto">主題</p> </td> <td rowspan="" colspan="" dir="auto"> <p id="par_id3147228" class="paragraphintable" dir="auto"><META NAME="CLASSIFICATION" CONTENT="Field Content"></p> </td> </tr> <tr> <td rowspan="" colspan="" dir="auto"> <p id="par_id3154908" class="paragraphintable" dir="auto">關鍵字</p> </td> <td rowspan="" colspan="" dir="auto"> <p id="par_id3156422" class="paragraphintable" dir="auto"><META NAME="KEYWORDS" CONTENT="Field Content"></p> </td> </tr> <tr> <td rowspan="" colspan="" dir="auto"> <p id="par_id3151041" class="paragraphintable" dir="auto">說明</p> </td> <td rowspan="" colspan="" dir="auto"> <p id="par_id3125863" class="paragraphintable" dir="auto"><META NAME="DESCRIPTION" CONTENT="Field Content"></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">當您匯入包含這些 META 標記的 HTML 文件時，這些標記的內容將被加入至對應的 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">關鍵字必須用逗號分隔。關鍵字可以包含空格字元或分號。</p></div> </div> <br> <h3 id="hd_id3163822" dir="auto">匯入提示</h3> <p id="par_id3155307" class="paragraph" dir="auto">當您匯入 HTML 文件時，下列 META 標記將被自動轉換為 LibreOffice 欄位：<META HTTP-EQUIV="REFRESH"...> 和 <META NAME="..." ...> ，其中 NAME 可等於 AUTHOR、CREATED、CHANGED、CHANGEDBY、DESCRIPTION、KEYWORDS 或 CLASSIFICATION。</p> <p id="par_id3146146" class="paragraph" dir="auto">在表格第一個儲存格中插入直接位於 TABLE 標記前的程式檔、註解和 META 標記。</p> <p id="par_id3155366" class="paragraph" dir="auto">將 HTML 文件頁首的程式檔和 META 標記匯入並鎖定至文件中的第一個段落。</p> <p id="par_id3152885" class="paragraph" dir="auto">若要設定匯入 HTML 標籤的選項，請選擇 <span class="emph"><span id="swlnsystextshared01about_meta_tagsxml_1" class="switchinline"><span hidden="true" id="MACtextshared01about_meta_tagsxml_1" class="MAC">[LibreOffice] - [喜好設定]</span><span hidden="true" id="defaulttextshared01about_meta_tagsxml_1">[工具] - [選項]</span></span> - [載入/儲存] - [HTML 相容性]</span>。已知的 META 標籤包含「HTTP-EQUIV」或「NAME」，並且會匯入成 LibreOffice 評註。只有 <META NAME="GENERATOR"...> 例外，其會遭忽略。</p> <h3 id="hd_id3163717" dir="auto">匯出提示</h3> <p id="par_id3159180" class="paragraph" dir="auto">將文件中第一段起始位置的評註與程式檔欄位匯出到 HTML 文件的頁首。若文件以表格開頭，則將表格的第一個儲存格中的第一段匯出到 HTML 文件的頁首。</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 匯入和匯出</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>