1<?xml version="1.0" encoding="UTF-8"?>
2<helpdocument version="1.0">
3
4<!--***********************************************************
5 *
6 * Licensed to the Apache Software Foundation (ASF) under one
7 * or more contributor license agreements.  See the NOTICE file
8 * distributed with this work for additional information
9 * regarding copyright ownership.  The ASF licenses this file
10 * to you under the Apache License, Version 2.0 (the
11 * "License"); you may not use this file except in compliance
12 * with the License.  You may obtain a copy of the License at
13 *
14 *   http://www.apache.org/licenses/LICENSE-2.0
15 *
16 * Unless required by applicable law or agreed to in writing,
17 * software distributed under the License is distributed on an
18 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19 * KIND, either express or implied.  See the License for the
20 * specific language governing permissions and limitations
21 * under the License.
22 *
23 ***********************************************************-->
24
25
26
27
28<meta>
29<topic id="textshared01about_meta_tagsxml" indexer="include">
30<title id="tit" xml-lang="en-US">HTML import and export</title>
31<filename>/text/shared/01/about_meta_tags.xhp</filename>
32</topic>
33</meta>
34<body>
35<bookmark xml-lang="en-US" branch="index" id="bm_id3154380"><bookmark_value>importing; HTML with META tags</bookmark_value>
36<bookmark_value>exporting; to HTML</bookmark_value>
37<bookmark_value>HTML; importing META tags</bookmark_value>
38<bookmark_value>HTML documents; META tags in</bookmark_value>
39<bookmark_value>META tags</bookmark_value>
40<bookmark_value>tags; META tags</bookmark_value>
41</bookmark>
42<paragraph role="heading" id="hd_id3154380" xml-lang="en-US" level="1" l10n="U" oldref="20">HTML import and export</paragraph>
43<paragraph role="paragraph" id="par_id3145119" xml-lang="en-US" l10n="U" oldref="1">When you export a file to an HTML document, the description and the user-defined file properties are included as META <link href="text/shared/00/00000002.xhp#tags" name="tags">tags</link> 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 <emph>File - Properties</emph>, click the <emph>Description</emph> or <emph>User Defined</emph> tabs, and then type the information you want.</paragraph>
44<paragraph role="paragraph" id="par_id3148552" xml-lang="en-US" l10n="U" oldref="21">The following file properties are converted to META tags when you export a file as an HTML document:</paragraph>
45<table id="tbl_id3147304">
46<tablerow>
47<tablecell>
48<paragraph role="paragraph" id="par_id3154935" xml-lang="en-US" l10n="U" oldref="2">File Property</paragraph>
49</tablecell>
50<tablecell>
51<paragraph role="paragraph" id="par_id3151056" xml-lang="en-US" l10n="U" oldref="3">&lt;TITLE&gt;</paragraph>
52</tablecell>
53</tablerow>
54<tablerow>
55<tablecell>
56<paragraph role="paragraph" id="par_id3153778" xml-lang="en-US" l10n="U" oldref="4">Subject</paragraph>
57</tablecell>
58<tablecell>
59<paragraph role="paragraph" id="par_id3147228" xml-lang="en-US" l10n="U" oldref="5">&lt;META NAME="CLASSIFICATION" CONTENT="Field Content"&gt;</paragraph>
60</tablecell>
61</tablerow>
62<tablerow>
63<tablecell>
64<paragraph role="paragraph" id="par_id3154908" xml-lang="en-US" l10n="U" oldref="6">Keywords</paragraph>
65</tablecell>
66<tablecell>
67<paragraph role="paragraph" id="par_id3156422" xml-lang="en-US" l10n="U" oldref="7">&lt;META NAME="KEYWORDS" CONTENT="Field Content"&gt;</paragraph>
68</tablecell>
69</tablerow>
70<tablerow>
71<tablecell>
72<paragraph role="paragraph" id="par_id3151041" xml-lang="en-US" l10n="U" oldref="8">Description</paragraph>
73</tablecell>
74<tablecell>
75<paragraph role="paragraph" id="par_id3125863" xml-lang="en-US" l10n="U" oldref="9">&lt;META NAME="DESCRIPTION" CONTENT="Field Content"&gt;</paragraph>
76</tablecell>
77</tablerow>
78<tablerow>
79<tablecell>
80<paragraph role="paragraph" id="par_id3159149" xml-lang="en-US" l10n="U" oldref="10">Info fields 1...4</paragraph>
81</tablecell>
82<tablecell>
83<paragraph role="paragraph" id="par_id3157892" xml-lang="en-US" l10n="U" oldref="11">&lt;META NAME="Info field name" CONTENT="Field Content"&gt;</paragraph>
84</tablecell>
85</tablerow>
86</table>
87
88<paragraph role="note" id="par_id3155855" xml-lang="en-US" l10n="U" oldref="22">When you import an HTML containing these META tags, the contents of the tags are added to the corresponding $[officename] file property box. </paragraph>
89<paragraph role="tip" id="par_id0926200812164481" xml-lang="en-US" l10n="NEW">Keywords must be separated by commas. A keyword can contain white space characters or semicolons.</paragraph>
90<paragraph role="heading" id="hd_id3163822" xml-lang="en-US" level="3" l10n="U" oldref="12">Import Tips</paragraph>
91<paragraph role="paragraph" id="par_id3155307" xml-lang="en-US" l10n="U" oldref="13">When you import an HTML document, following META tags are automatically converted to $[officename] fields: &lt;META HTTP-EQUIV="REFRESH"...&gt; and &lt;META NAME="..." ...&gt; , where NAME equals to AUTHOR, CREATED, CHANGED, CHANGEDBY, DESCRIPTION, KEYWORDS or CLASSIFICATION.</paragraph>
92<paragraph role="paragraph" id="par_id3146146" xml-lang="en-US" l10n="U" oldref="15">Scripts, comments, and META tags that are positioned directly before a TABLE tag are inserted in the first cell of the table.</paragraph>
93<paragraph role="paragraph" id="par_id3155366" xml-lang="en-US" l10n="U" oldref="16">Scripts and META tags in the header of an HTML document are imported and anchored to the first paragraph in the document.</paragraph>
94<paragraph role="paragraph" id="par_id3152885" xml-lang="en-US" l10n="U" oldref="14">To set the options for importing HTML tags, choose <emph><switchinline select="sys"><caseinline select="MAC">%PRODUCTNAME - Preferences</caseinline><defaultinline>Tools - Options</defaultinline></switchinline> - Load/Save - HTML Compatibility</emph>. A known META tag contains either "HTTP-EQUIV" or "NAME", and are imported as $[officename] comments. The only exception is &lt;META NAME="GENERATOR"...&gt;, which is ignored.</paragraph>
95<paragraph role="heading" id="hd_id3163717" xml-lang="en-US" level="3" l10n="U" oldref="17">Export Tips</paragraph>
96<paragraph role="paragraph" id="par_id3159180" xml-lang="en-US" l10n="U" oldref="19">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.</paragraph>
97</body>
98</helpdocument>
99