$[officename] HTML Templates /text/shared/07/09000000.xhp Sun Microsystems, Inc. converted from old format - fpe dedr: fixed #i30840#
HTML; templates overview templates; HTML default template character styles; HTML HTML; character styles formatting; HTML HTML; formatting $[officename] HTML Templates To create a new web page for the Internet, open a new HTML Document by choosing File - New.
A tool for creating new web pages is the Online-Layout-Mode, which you can open by choosing View - Online Layout. As soon as you have activated this mode you will see only those options in the menus and dialogs of $[officename] which can be used on HTML pages. Creating a New Web Page Switch to the Online-Layout-Mode by choosing View - Online Layout or by opening a new HTML document. $[officename] will then internally use the html.stw template which is located in $[officepath]/share/template/english/internal You can enter text and insert objects into the new page as if it were a normal text page. Use the special paragraph and character templates that are provided by the HTML template. When the HTML is exported, $[officename] will try to convert the document as close to the original as possible, depending on what the HTML format permits. To create an HTML page from your $[officename] document, save the page using one of the "HTML Document" file types, such as the .HTM or .HTML extensions. HTML Template (Standard) The pages of the HTML standard template have no margins and unlimited length so that your pages will not have page breaks. HTML Paragraph Styles The special Paragraph Styles for HTML pages have the following meaning: Paragraph Styles Definition BLOCKQUOTE The text will be indented and in italics. DD 1-3, DT 1-3 Glossaries can be structured using DT and DD formats. The first level will be titled DT1; the corresponding glossary text will be titled DD1. The first sublevel will be titled DT2 for the title and DD2 for the text. The third level will be formatted using DT3 and DD3. DT1 is left justified, DD1 is indented once, DT2 is indented like DD1, and so on. DD is followed by a line break <p>, whereas DT is not. HR Inserts a horizontal line the entire width of the page. PRE Text is formatted as preformatted text in the unproportional (TrueType) font, Courier. Since all spaces also appear in HTML text, this format is suitable for program listings with spaces and other similar types of texts.
Character Styles for HTML Pages There are specific font styles for HTML pages available: Font Styles Definition Internet Link Blue underlined font Visited Internet link Red underlined font ABBREV Logical markup for abbreviations ACRONYM Logical markup for acronyms AU Logical markup for author names BLINK Logical markup for blinking text. QUOTE Logical markup for quotations CODE Logical markup for source code DEL Logical markup for deletions (revision marks) DFN Logical markup for definitions EM Logical markup for highlighting INS Logical markup for insertions (revision marks) KBD Logical markup for terminal characters LANG Logical markup for foreign languages PERSON Logical markup for people's names Q Logical markup for short quotations SAMP Logical markup for examples STRONG Logical markup for important text TT Logical markup for text in teletype fonts VAR Logical markup for names of variables
Most of the formatting codes will be exported as HTML tags, but many Web browsers will display it in normal text. Converting Formatting to HTML $[officename] is able to create the correct HTML code from your document. This means that listings in your documents will be exported as HTML tags which can then be displayed as either listings or lists in the Web browsers. Below you will find a selection of some of these formats: Formatting in a $[officename] Document HTML Tag Types (Automatically creating headers) <head> Titles in the Document Properties dialog. <title> Paragraph formatting for headers 1 to x <H1> to <Hx> Sender Paragraph Style <address> Text document tables <table ...> Bold <b> Italic <i> Underline <u> Bulleted list <ul> as the introduction, <li> for each list item Numbered list <ol> as the introduction, <li> for each list item Subscript <sub> Superscript <super> Inserted comments <!-- becomes a comment --> Inserted sections <div ID="section name">.....</div>