170 likes | 185 Views
CA201 Word Application. Creating Document for the Web Week # 9 By Tariq Ibn Aziz Dammam Community college. Objectives. In this chapter you will learn to: Create and modify a Web document. Add hyperlinks. Create an XML document. Web Document.
E N D
CA201Word Application Creating Document for the Web Week # 9 By Tariq Ibn Aziz Dammam Community college
Objectives • In this chapter you will learn to: • Create and modify a Web document. • Add hyperlinks. • Create an XML document. Tariq Aziz, Dammam Community College
Web Document • if you are trying to reach a broad audience transform your documents into Web pages so that people can read them on the Web using Web browser. • Professional Web designers use special programs, such as Microsoft FrontPage, to design sophisticated Web sites • you can use Microsoft Office Word 2003 to create simple Web pages or to convert existing documents to Web pages. • You can also add hyperlinks to the document to provide a quick way of jumping to other documents, Web pages, or e-mail addresses. Tariq Aziz, Dammam Community College
HTML code • When you convert a document to a Web page, Word translates the styles and formatting in the document to Hypertext Markup Language (HTML) codes, called tags, that tell your Web browser how to display the document. Tariq Aziz, Dammam Community College
XML code • You can also convert a document using Extensible Markup Language (XML). • XML is a system for defining, validating, and sharing documents. • XML uses tags to distinguish document structures, attributes to define extra document information • XML transforms to extract different items of tagged information for different purposes. Tariq Aziz, Dammam Community College
Creating and Modifying a Web Document [1] • You can save any Word document as a Web page • It become a special document designed to be viewed in a Web browser such as Microsoft Internet Explorer. • When you convert a document, most of the formatting is preserved • Some formatting, such as text wrapping around pictures and objects, is not converted • Some features, such as table formatting, character formatting, page layout features, and security and document protection, are not supported by all Web browsers. Tariq Aziz, Dammam Community College
Creating and Modifying a Web Document [2] • If you know which Web browser people will use to view your Web page, it’s a good idea to specify that browser and have Word disable any features that won’t work. Tariq Aziz, Dammam Community College
Creating and Modifying a Web Document [3] • To see how a document will be displayed in a Web browser, you can preview it as a Web page • You can convert existing Word documents to Web pages using the Save as Web Page • You can also create new Web pages from within Word, by using a Web page template. • Click File New, • Click “On my computer” in the New Document task pane, and • Click the Web Pages icon on the General tab of the Templates dialog box. Tariq Aziz, Dammam Community College
Creating and Modifying a Web Document [4] • You can also use Word to open Web pages created in other programs and saved with a .htm or .html file name extension. • You can also display a Web document in an area called a frame, and then include other items of interest in the other frames so that they can be viewed at the same time as the document. Tariq Aziz, Dammam Community College
Adding Hyperlinks • Web pages use hyperlinks (links) as a quick way to perform tasks such as opening another Web page, downloading a file, or sending an e-mail message. • You can insert hyperlinks into a Web document or a regular Word document by clicking the Insert Hyperlink button on the Standard toolbar to display the Insert Hyperlink dialog box, or press Ctrl + K Tariq Aziz, Dammam Community College
Adding Hyperlinks • When you insert a hyperlink into a document, you can click Target Frame in the Insert Hyperlink dialog box and use the Set Target Frame dialog box to control how the linked page is displayed in the document. • You can display the linked page in the same window as the original page, in a new window, or in a frame. Tariq Aziz, Dammam Community College
Adding Hyperlinks Tip • To link to another Web page, you specify a Uniform Resource Locator (URL), which is a unique address for the Web page, such as www.microsoft.com. • When you type a URL, you do not have to type http:// in front of it—your Web browser will add http:// for you. Tariq Aziz, Dammam Community College
Adding Hyperlinks • Text hyperlinks appear in Word documents as blue underlined text • You can jump to the target of a hyperlink in a Word document by holding down the Ctrl key and clicking the link. • To edit a hyperlink, you right-click it and then click one of the commands on the shortcut menu Tariq Aziz, Dammam Community College
Creating an XML Document • Web documents are coded with Hypertext Markup Language (HTML) • HTML is a small, fixed subset of the Standard Generalized Markup Language (SGML) • The Extensible Markup Language (XML) is another subset of SGML. Tariq Aziz, Dammam Community College
Creating an XML Document [2] • However, instead of being fixed like HTML, XML can be customized (extended) to store data so that it can be used in many ways or in many environments—for example, as text, in a database or spreadsheet, or as a Web page. • To save a Word document in XML format, you need to attach an XML schema to it. Tariq Aziz, Dammam Community College
Creating an XML Document [3] • If you don’t have a custom schema, you can still save a Word document as an XML document by using Word’s built-in XML schema, which is called WordML. • To use WordML, create a Word document and then save it as an XML document. Word will apply XML tags that define the document’s structure and store formatting information. Tariq Aziz, Dammam Community College
Chapter Key Points • You can save any Word document as a Web page, and you can preview the page and edit it as necessary. • You can insert hyperlinks into a Web document or any other type of Word document to link to another Web page, file, e-mail address, or bookmark. • You can convert a Word document into an XML document that can be used by other programs in other environments. Tariq Aziz, Dammam Community College