Paragraph is the most appropriate for general text.Once formatted as a paragraph, when typing in a text area, use of the enter key starts a new block of text i.e. This offers a selection of standard text formats. HTML defines a small number of elements specifically for text and it is usually preferable to use these.To format text in a standard element format select the text (it is actually necessary simply to click anywhere within the block of text) and click the first drop-down box on the format toolbar. This prints the page view and not the source code.3.4 Working with text3.4.1 Text on a page3.4.1.1 IntroductionText typed directly onto the KompoZer page defaults to appearing in the format for the body element. 3.3.3 Printing pages INCLUDEPICTURE "" \* MERGEFORMATINET The Print button allows you to print the current page to a printer. This shows that the source is just a simple text document. What you will see will look just like the HTML Source code youve been looking at in Source view. The curious may open the file using any text editor e.g. There is nothing mysterious about the files. Click the Save button.Note KompoZer includes a small red warning icon in the page tab to indicate if a page has not been saved. Hide or view extensions is controlled in Windows by Control Panel > Folder options > View then scroll down and clear 'Hide extensions for known file types'.After you edit files you need to re-save periodically. You will find the file extension completed as html you may prefer to, and you may alter it to htm.Note If you have hidden extensions for file types this becomes unavailable. You will probably want to change this to a shorter, all lower case, name (but you dont have to). You will find the file name already completed with your page title. INCLUDEPICTURE "" \* MERGEFORMATINET You are offered a Save Page as window which allows you to browse to the folder you want to use. Finally, give the document a name and save it.3.3.2 Saving filesGo to File > Save as. A site which runs perfectly in your local Windows environment or on a host running Windows if transferred to a UNIX system might require extensive and time-consuming changes. For this reason if you use mixed cases in filenames you must be very rigorous. UNIX filenames are case-sensitive while Windows are not. Some others are permissible but the rules for incorporating them are more complex.Tip: Web pages are stored (hosted) on servers which usually run either a version of Windows or UNIX operating systems. KompoZer determines the doctype according to the options selected on starting a page.Tip: Filenames should generally be composed of unaccented letters, numbers and the underscore character. This is a reference to the type of HTML document. (For XHTML lower case is mandatory.)The first line, in a different colour, specifies the ∝octype. Actually the case doesnt matter for any tag though its good practice to use lower case. All web pages must carry these in these positions. In some circumstances they can be important the Title and Description, for instance, can be used by search engines to index the page. These will be entered in the HEAD area for you. Here you can enter various parameters including the title and the language you are writing in. Go to Format > Page Title and Properties. There is no need to use source view at all. Well done!If you were too timid to do this all is not lost. Click the tab for Normal view, now the tab at the top carries your page title and youve edited raw HTML. Go for it, between them type My first page or something like that. For instance, between the and tags there isnt anything. Some examples are table, img for image, p for paragraph, br for line break (which is unusual in having no closing tag).Nothing between the and tags will appear on the screen but may have quite useful functions nonetheless. The tag names are usually either the same as element names or abbreviations of them. The tags plus the contents are called elements. For the most part the pairs of tags enclose contents from which the page is built up items like Paragraphs, Headings, Tables, Images. Later as a page builds up many more tags will be added. Tag which is a line break and which is, of course, invisible. And finishing with will appear on your web page.Note In most cases tags occur in pairs opening tags and closing tags Closing tags always start with a forward slash.All the page consists of now is a
0 Comments
Leave a Reply. |