Presentation is loading. Please wait.

Presentation is loading. Please wait.

Adding an Inline Style Sheet Page without Inline Style Sheet Page with Inline Style Sheet.

Similar presentations


Presentation on theme: "Adding an Inline Style Sheet Page without Inline Style Sheet Page with Inline Style Sheet."— Presentation transcript:

1 Adding an Inline Style Sheet Page without Inline Style Sheet Page with Inline Style Sheet

2 Adding an Inline Style Sheet If necessary, click the Notepad button on the taskbar or BBEdit on the dock to display the file, welcome.htm Click immediately to the right of the P in the tag on line 24. Press the SPACEBAR and then type STYLE=“font-style: italic; font-size: 8pt” as the code

3 Adding an Inline Style Sheet Click File on the menu bar and then click Save As. Type welcome.htm in the File name text box. Click the Save button in the Save As dialog box

4

5 Viewing and Printing Framed Web Pages Click the browser button on the taskbar Click the Community Hospital logo in the upper-left corner of the Web page Click File on the menu bar and then click Print When the Print dialog box displays, click As laid out on the screen and then click the OK button

6 Viewing and Printing Framed Web Pages One at a time, click the remaining links, Services, Calendar, Staff, and Contact, and repeat the last two steps

7

8 Viewing and Printing HTML Files If necessary, click the browser button on the taskbar. Click the Home link in the menu frame to display the Web page, welcome.htm, in the right frame Right-click anywhere on the Welcome page except on a link Click View Source on the shortcut menu

9 Viewing and Printing HTML Files Once the file, welcome.htm, is opened in Notepad, click File on the menu bar and then click Print Click the remaining links (Services, Calendar, Staff, and Contact) and repeat the last three steps

10 Closing Notepad and Closing Your Browser Click the Close button on the Notepad title bar Click the Close button on the browser title bar

11 Working with Classes in Style Sheets Using classes, you can selectively apply styles to HTML tags within a page You can only define classes in embedded or external style sheets Defining styles is a two-step process  Mark the elements in your HTML code that belong to the class by adding the tag, CLASS=classname  Define a specific style for that class

12 Working with Classes in Style Sheets

13 HTML Code with Classes Defined

14 Resulting Web Page

15 Summary Describe the three different types of cascading style sheets Add an embedded style sheet to a Web page that changes the link styles Add an external style sheet that changes the background, link styles, paragraph text, and table styles

16 Summary Use the tag to insert a link to an external style sheet Add an inline style sheet to a Web page that changes the text style Understand how to define style classes

17 What You Should Know

18 Project 7 Complete Please go to scsite.com/html2e/exs.htm to prepare for the exam on Projects 6 & 7


Download ppt "Adding an Inline Style Sheet Page without Inline Style Sheet Page with Inline Style Sheet."

Similar presentations


Ads by Google