Wednesday, September 16, 2009

Creating a Page Using the Template And a Script

You now have a template, and you are ready to start building pages. In this lesson, you will build the welcome page. Starting from the template you created in the previous lesson, you will insert and format both text and graphics.
Using any word processor, open the welcome_text.txt file, found in the Text Files folder in the Lesson02/Start folder, as well as in the root folder of the Dante site.
This is a plain text file, with no formatting, such as bold, italics, or special font colors, applied. When you copy and paste into Dreamweaver, all word-processor formatting is lost anyway. The screenshot shows the text as it appears in WordPad, the minimalist word processor that ships with Windows.

Select all of the text, and choose Edit > Copy.
This copies the text to the clipboard, which makes it available to paste into Dreamweaver.
Open template.html in Dreamweaver, and click in the blank line below the page title.
You'll paste the text below the page title.
Choose Edit > Paste.
The text appears in Dreamweaver. It is unformatted, but it is all there. If you click inside each line and look in the tag selector, you will see that each paragraph has been separated with a
tag. Each of those paragraphs needs to be within a set of

tags, though. You can't attach CSS styles to a
tag.

0 comments:

Post a Comment