summaryrefslogtreecommitdiff
path: root/helpcontent2/source/text/shared/01/about_meta_tags.xhp
blob: f6631c57ae06eea613e3d4bcd36a0dc5faac4933 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<?xml version="1.0" encoding="UTF-8"?>
<helpdocument version="1.0">
	
<!--
***********************************************************************
 *
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
 * 
 * Copyright 2000, 2010 Oracle and/or its affiliates.
 *
 * OpenOffice.org - a multi-platform office productivity suite
 *
 * This file is part of OpenOffice.org.
 *
 * OpenOffice.org is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License version 3
 * only, as published by the Free Software Foundation.
 *
 * OpenOffice.org is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License version 3 for more details
 * (a copy is included in the LICENSE file that accompanied this code).
 *
 * You should have received a copy of the GNU Lesser General Public License
 * version 3 along with OpenOffice.org.  If not, see
 * <http://www.openoffice.org/license.html>
 * for a copy of the LGPLv3 License.
 *
 ************************************************************************
 -->
 
	
<meta>
<topic id="textshared01about_meta_tagsxml" indexer="include">
<title id="tit" xml-lang="en-US">HTML import and export</title>
<filename>/text/shared/01/about_meta_tags.xhp</filename>
</topic>
</meta>
<body>
<bookmark xml-lang="en-US" branch="index" id="bm_id3154380"><bookmark_value>importing; HTML with META tags</bookmark_value>
<bookmark_value>exporting; to HTML</bookmark_value>
<bookmark_value>HTML; importing META tags</bookmark_value>
<bookmark_value>HTML documents; META tags in</bookmark_value>
<bookmark_value>META tags</bookmark_value>
<bookmark_value>tags; META tags</bookmark_value>
</bookmark>
<paragraph role="heading" id="hd_id3154380" xml-lang="en-US" level="1" l10n="U" oldref="20">HTML import and export</paragraph>
<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>
<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>
<table id="tbl_id3147304">
<tablerow>
<tablecell>
<paragraph role="paragraph" id="par_id3154935" xml-lang="en-US" l10n="U" oldref="2">File Property</paragraph>
</tablecell>
<tablecell>
<paragraph role="paragraph" id="par_id3151056" xml-lang="en-US" l10n="U" oldref="3">&lt;TITLE&gt;</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph role="paragraph" id="par_id3153778" xml-lang="en-US" l10n="U" oldref="4">Subject</paragraph>
</tablecell>
<tablecell>
<paragraph role="paragraph" id="par_id3147228" xml-lang="en-US" l10n="U" oldref="5">&lt;META NAME="CLASSIFICATION" CONTENT="Field Content"&gt;</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph role="paragraph" id="par_id3154908" xml-lang="en-US" l10n="U" oldref="6">Keywords</paragraph>
</tablecell>
<tablecell>
<paragraph role="paragraph" id="par_id3156422" xml-lang="en-US" l10n="U" oldref="7">&lt;META NAME="KEYWORDS" CONTENT="Field Content"&gt;</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph role="paragraph" id="par_id3151041" xml-lang="en-US" l10n="U" oldref="8">Description</paragraph>
</tablecell>
<tablecell>
<paragraph role="paragraph" id="par_id3125863" xml-lang="en-US" l10n="U" oldref="9">&lt;META NAME="DESCRIPTION" CONTENT="Field Content"&gt;</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell>
<paragraph role="paragraph" id="par_id3159149" xml-lang="en-US" l10n="U" oldref="10">Info fields 1...4</paragraph>
</tablecell>
<tablecell>
<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>
</tablecell>
</tablerow>
</table>

<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>
<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>
<paragraph role="heading" id="hd_id3163822" xml-lang="en-US" level="3" l10n="U" oldref="12">Import Tips</paragraph>
<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>
<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>
<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>
<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>
<paragraph role="heading" id="hd_id3163717" xml-lang="en-US" level="3" l10n="U" oldref="17">Export Tips</paragraph>
<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>
</body>
</helpdocument>