HTML Concepts and Techniques Fourth Edition Project 8 Creating Style Sheets.

Slides:



Advertisements
Similar presentations
Project 8 Creating Style Sheets.
Advertisements

Creating and Editing a Web Page Using Inline Styles
Using Advanced Cascading Style Sheets
Chapter 8 Creating Style Sheets.
Chapter 5 Creating an Image Map
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Excel Web Feature Creating Static and Dynamic Web Pages Using Excel.
Microsoft Office 2007 Excel Web Feature Creating Web Pages Using Excel.
Microsoft Office 2007 Excel Web Feature Creating Web Pages Using Excel.
Creating and Editing a Web Page
Creating a Form on a Web Page
Microsoft Expression Web-Illustrated Unit L: Using Code Tools.
Microsoft Office 2007 Word Web Feature Creating Web Pages Using Word.
Creating a Presentation with Custom Backgrounds and SmartArt Diagrams
Office 2003 Post-Advanced Concepts and Techniques M i c r o s o f t Word Project 7 Creating an Online Form.
Starting BBEdit (Notepad) and Opening an HTML File Open the Public Folder Start Notepad or BBEdit Click File on the menu bar, and then click Open In the.
Microsoft Office 2007 PowerPoint Web Feature Creating Web Pages Using PowerPoint.
Microsoft Office 2010 Access Chapter 1 Creating and Using a Database.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t PowerPoint Web Feature Creating a Presentation on the Web Using PowerPoint.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Word Project 2 Creating a Research Paper.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Word Web Feature Creating Web Pages Using Word.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Outlook Project and Contact Management with Outlook.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Excel Project 1 Creating a Worksheet and an Embedded Chart.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Access Project 1 Creating and Using a Database.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Word Web Feature Creating Web Pages Using Word.
Creating Tables in a Web Site Using an External Style Sheet HTML5 & CSS 7 th Edition.
Using Frames in a Web Site
Creating Tables in a Web Site.  Define table elements  Describe the steps used to plan, design, and code a table  Create a borderless table to organize.
Microsoft Office 2007 Word Integration Feature Linking an Excel Worksheet and Chart to a Word Document.
HTML Concepts and Techniques Fourth Edition Project 3 Creating Web Pages with Links, Images, and Formatted Text.
HTML Comprehensive Concepts and Techniques Third Edition Project 3 Creating Web Pages with Links, Images, and Formatted Text.
Dreamweaver CS4 Concepts and Techniques Chapter 5 Templates and Style Sheets.
HTML Concepts and Techniques Fourth Edition Project 8 Creating Style Sheets.
Adding an Inline Style Sheet Page without Inline Style Sheet Page with Inline Style Sheet.
Creating Tables in a Web Site
Dreamweaver CS4 Concepts and Techniques Chapter 7 Page Layout with Frames.
HTML, XHTML, and CSS Chapter 12 Creating and Using XML Documents.
Microsoft Office 2007 PowerPoint Web Feature Creating Web Pages Using PowerPoint.
Creating and Editing a Web Page using HTML IMED1316.
Creating and Editing a Web Page Project 2. Project Objectives Project 2: Creating and Editing a Web Page 2 Identify elements of a Web page Start Notepad.
Microsoft Office 2007 Excel Graphics Feature SmartArt and Images.
Project 5 Templates and Style Sheets Dreamweaver MX 2004 Concepts and Techniques.
Office 2003 Advanced Concepts and Techniques M i c r o s o f t Excel Integration Feature Object Linking and Embedding (OLE) and Web Discussions.
HTML Concepts and Techniques Fourth Edition Project 6 Using Frames in a Web Site.
HTML, XHTML, and CSS Chapter 8 Adding Multimedia Content to Web Pages.
Project 2 Adding Web Pages, Links, and Images Dreamweaver MX 2004 Concepts and Techniques.
HTML Concepts and Techniques Fourth Edition Project 7 Creating a Form on a Web Page.
HTML Concepts and Techniques Fourth Edition Project 12 Creating and Using XML Documents.
Creating a Form on a Web Page
Dreamweaver CS4 Concepts and Techniques Chapter 9 Using Spry to Create Interactive Web Pages.
Templates and Style Sheets
1 Creating the Header Page The header frame always displays on the AHS Web site The image (screagle.gif) that will go in the header is contained on the.
HTML Comprehensive Concepts and Techniques Third Edition 2 nd Project Creating and Editing a Web Page.
HTML Concepts and Techniques Fourth Edition Project 5 Creating an Image Map.
Using Frames in a Web Site Project 6. Project Objectives Project 6: Using Frames in a Web Site 2 Define terms related to frames Describe the steps used.
HTML Concepts and Techniques Fifth Edition Chapter 4 Creating Tables in a Web Site.
HTML Concepts and Techniques Fifth Edition Chapter 3 Creating Web Pages with Links, Images, and Formatted Text.
Creating and Editing a Web Page
Creating and Editing a Web Page Using Inline Styles
1 Your Web Page title body of Web page main heading H2 heading bulleted list paragraph.
Creating Web Pages with Links, Images, and Embedded Style Sheets
Microsoft Expression Web-Illustrated Unit G: Designing Site Navigation.
PowerPoint Web Feature
Project 8 Creating Style Sheets.
Creating Tables in a Web Site Using an External Style Sheet
Using Frames in a Web Site
Creating Web Pages with Links, Images, and Formatted Text
Integrating JavaScript and HTML
Creating Tables in a Web Site
Project 5 Creating an Image Map.
Presentation transcript:

HTML Concepts and Techniques Fourth Edition Project 8 Creating Style Sheets

Project 8: Creating Style Sheets 2 Project Objectives Describe the three different types of Cascading Style Sheets Add an embedded style sheet to a Web page Change the margin and link styles using an embedded style sheet Create an external style sheet

Project 8: Creating Style Sheets 3 Project Objectives Change the body margins and background using an external style sheet Change the link decoration and color using an external style sheet Change the font family and size for all paragraphs using an external style sheet Change table styles using an external style sheet

Project 8: Creating Style Sheets 4 Project Objectives Use the tag to insert a link to an external style sheet Add an inline style sheet to a Web page Change the text style of a single paragraph using an inline style sheet Understand how to define style classes

Project 8: Creating Style Sheets 5 Style Sheet Precedence

Project 8: Creating Style Sheets 6 Starting Notepad and Opening an HTML File Start Notepad and, if necessary, maximize the window With the USB drive plugged into your computer, click File on the menu bar and then click Open on the File menu. If necessary, click UDISK (G:) in the Look in list. Click the Project08 folder and then click the ProjectFiles folder in the list of available folders If necessary, click the Files of type list arrow and then click All Files Double-click menu.htm in the list of files

Project 8: Creating Style Sheets 7 Starting Notepad and Opening an HTML File

Project 8: Creating Style Sheets 8 Adding an Embedded Style Sheet Highlight the comment,, on line 9 and then press the DELETE key Enter the CSS code as shown on the following slide

Project 8: Creating Style Sheets 9 Adding an Embedded Style Sheet

Project 8: Creating Style Sheets 10 Saving an HTML File With the USB drive plugged into your computer click File on the menu bar and then click Save As. If necessary, type menu.htm in the File name text box If necessary, click UDISK (G:) in the Save in list. Click the Project08 folder, and then click the ProjectFiles folder in the list of available folders Click the Save button in the Save As dialog box. If a Save As dialog box is displayed, click Yes to continue saving

Project 8: Creating Style Sheets 11 Viewing an HTML File Using a Browser Start your browser Click the Address bar. Type G:\Project08\ProjectFiles\ index.htm in the Address text box and then press the ENTER key

Project 8: Creating Style Sheets 12 Viewing an HTML File Using a Browser

Project 8: Creating Style Sheets 13 Printing an HTML File Click the Notepad button on the taskbar Click File on the menu bar and then click Print on the File menu Click the Print button in the Print dialog box

Project 8: Creating Style Sheets 14 Printing an HTML File

Project 8: Creating Style Sheets 15 Creating an External Style Sheet If necessary, click the Notepad button on the taskbar. Click File on the menu bar and then click New Enter the CSS code as shown in Table 8-5 on page HTM 349 With the USB drive plugged into your computer, click File on the menu bar and then click Save As. Type styles1.css in the File name text box. If necessary, click UDISK (G:) in the Save in list. Click the Project08 folder and then click the ProjectFiles folder in the list of available folders. Click the Save button in the Save As dialog box Click the File menu and then click Print on the File menu

Project 8: Creating Style Sheets 16 Creating an External Style Sheet

Project 8: Creating Style Sheets 17 Linking to an External Style Sheet If necessary, click the Notepad button on the taskbar With the USB drive plugged into your computer, click File on the menu bar and then click Open on the File menu Type contact.htm in the File name text box. If necessary, click UDISK (G:) in the Look in list, click the Project08 folder, and then click the ProjectFiles folder in the list of available folders Click the Open button in the Open dialog box

Project 8: Creating Style Sheets 18 Linking to an External Style Sheet Highlight the text,, in line 9 and then press the DELETE key Type as the tag Click File on the menu bar and then click Save on the File menu

Project 8: Creating Style Sheets 19 Linking to an External Style Sheet

Project 8: Creating Style Sheets 20 Linking the Remaining HTML Files to an External Style Sheet With the USB drive plugged into your computer, click File on the menu bar and then click Open on the File menu Type products.htm in the File name text box. If necessary, click UDISK (G:) in the Look in list, click the Project08 folder, and then click the ProjectFiles folder in the list of available folders Click the Open button in the Open dialog box Highlight the text,, and press the DELETE key

Project 8: Creating Style Sheets 21 Linking the Remaining HTML Files to an External Style Sheet Type as the tag Click File on the menu bar and then click Save on the File menu One at a time, open the remaining HTML files, questions.htm and products.htm, and repeat the previous three steps

Project 8: Creating Style Sheets 22 Adding an Inline Style Sheet If necessary, click the Notepad button on the taskbar to display the file, welcome.htm Click immediately to the right of the p in the tag on line 31. Press the SPACEBAR and then type style="font-style: italic; font-size: 8pt" as the code Click File on the menu bar and then click Save

Project 8: Creating Style Sheets 23 Adding an Inline Style Sheet

Project 8: Creating Style Sheets 24 Viewing and Printing Framed Web Pages Click the browser button on the taskbar Click the Blue Cell, Inc. logo in the upper-left corner of the Web page Click File on the menu bar and then click Print on the File menu

Project 8: Creating Style Sheets 25 Viewing and Printing Framed Web Pages When the Print dialog box is displayed, click the Options tab Click As laid out on screen and then click the Print button One at a time, click the remaining links, Contact, Products, and Questions, and repeat the previous three steps

Project 8: Creating Style Sheets 26 Viewing and Printing HTML Files If necessary, click the browser button on the taskbar. If necessary, click the Home link in the menu frame to display the Welcome 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 After the file welcome.htm is opened in Notepad, click File on the menu bar and then click Print on the File menu. Click the Print button on the Print dialog box

Project 8: Creating Style Sheets 27 Viewing and Printing HTML Files Click the browser button on the taskbar, click the Contact link, and then repeat the previous three steps Click the browser button on the taskbar, click the Products link, and then repeat the last three steps on the previous slide Click the browser button on the taskbar, click the Questions link, and then repeat the last three steps on the previous slide

Project 8: Creating Style Sheets 28 Quitting Notepad and a Browser Click the Close button on the browser title bar Click the Close button on the Notepad window title bar

Project 8: Creating Style Sheets 29 Project Summary Describe the three different types of Cascading Style Sheets Add an embedded style sheet to a Web page Change the margin and link styles using an embedded style sheet Create an external style sheet

Project 8: Creating Style Sheets 30 Project Summary Change the body margins and background using an external style sheet Change the link decoration and color using an external style sheet Change the font family and size for all paragraphs using an external style sheet Change table styles using an external style sheet

Project 8: Creating Style Sheets 31 Project Summary Use the tag to insert a link to an external style sheet Add an inline style sheet to a Web page Change the text style of a single paragraph using an inline style sheet Understand how to define style classes

HTML Concepts and Techniques Fourth Edition Project 8 Complete Creating Style Sheets