Presentation is loading. Please wait.

Presentation is loading. Please wait.

Creating Tables in a Web Site Using an External Style Sheet HTML5 & CSS 7 th Edition.

Similar presentations


Presentation on theme: "Creating Tables in a Web Site Using an External Style Sheet HTML5 & CSS 7 th Edition."— Presentation transcript:

1 Creating Tables in a Web Site Using an External Style Sheet HTML5 & CSS 7 th Edition

2 Define table elements Describe the steps used to plan, design, and code a table Create a borderless table for a horizontal navigation bar with text links Create an external style sheet to define styles across a Web site Utilize classes to give you more control over styles Chapter 4: Creating Tables in a Web Site Using an External Style Sheet2 Chapter Objectives

3 Link an external style sheet to Web pages where you want its styles applied Create a table with borders and insert text Use the box-shadow property to alter the appearance of an image Alter the spacing between and within cells using the border spacing and padding properties Chapter 4: Creating Tables in a Web Site Using an External Style Sheet3 Chapter Objectives

4 Utilize inline styles to alter the style of individual elements on a Web page Add background color to rows and cells Insert a caption below a table Create headings that span rows using the rowspan attribute Chapter 4: Creating Tables in a Web Site Using an External Style Sheet4 Chapter Objectives

5 Complete Web page planning Analyze the content and organization of the Web page Choose the content and organization for the Web page Identify how to format various elements of the Web page Determine where to save the Web page Create the Web page and links Test all Web pages within the Web site Chapter 4: Creating Tables in a Web Site Using an External Style Sheet5 Plan Ahead

6 Click the Start button on the Windows taskbar to display the Start menu Click All Programs at the bottom of the left pane on the Start menu to display the All Programs list Click Notepad++ in the All Programs list to expand the folder Click Notepad++ in the expanded list to start the Notepad++ program If the Notepad++ window is not maximized, click the Maximize button on the Notepad++ title bar to maximize it Click View on the menu bar and verify that the Word wrap command has a check mark next to it. If it does not, click Word wrap Chapter 4: Creating Tables in a Web Site Using an External Style Sheet6 Starting Notepad++

7 Enter the HTML code shown in Table 4-3. Press ENTER at the end of each line. If you make an error as you are typing, use the BACKSPACE key to delete all the characters back to and including the incorrect characters, then continue typing Position the insertion point on the blank line between the and tags (line 12) and press the ENTER key to position the insertion point on line 13 Compare what you typed to Figure 4–12. If you notice errors, use your mouse pointer or ARROW keys to move the insertion point to the right of each error and use the BACKSPACE key to correct the error Chapter 4: Creating Tables in a Web Site Using an External Style Sheet7 Entering Initial HTML Tags to Define the Web Page Structure

8 Chapter 4: Creating Tables in a Web Site Using an External Style Sheet8 Entering Initial HTML Tags to Define the Web Page Structure

9 Click File on the menu bar, click Save, and then type the desired file name in the File name text box (do not press enter) Navigate to storage device and folder where you save your Data Files and then click the Save button in the Save As dialog box to save the file Chapter 4: Creating Tables in a Web Site Using an External Style Sheet9 Saving an HTML File

10 Chapter 4: Creating Tables in a Web Site Using an External Style Sheet10 Using the Box-Shadow Property

11 Chapter 4: Creating Tables in a Web Site Using an External Style Sheet11 Using the Box-Shadow Property

12 Chapter 4: Creating Tables in a Web Site Using an External Style Sheet12 Inserting, Centering, and Styling an Image with a Box-Shadow

13 Chapter 4: Creating Tables in a Web Site Using an External Style Sheet13 Creating a Horizontal Menu Bar with Image Links

14 Create a new file in Notepad++ to create the style sheet. When you save the style sheet after entering the styles, the file name extension should be.css Chapter 4: Creating Tables in a Web Site Using an External Style Sheet14 Creating an External Style Sheet

15 Chapter 4: Creating Tables in a Web Site Using an External Style Sheet15 Creating an External Style Sheet

16 Chapter 4: Creating Tables in a Web Site Using an External Style Sheet16 Linking to an External Style Sheet

17 Open the file containing the HTML code you wish to copy Select the HTML code to copy Press CTRL+C to copy the selected code to the Clipboard Open the file to which you want to paste the copied HTML code Position the mouse pointer at the position you wish to paste the HTML code Press CTRL+V to paste the contents from the Clipboard into a new file Chapter 4: Creating Tables in a Web Site Using an External Style Sheet17 Copying and Pasting HTML Code to a New File

18 Chapter 4: Creating Tables in a Web Site Using an External Style Sheet18 Creating a Table with Borders and Inserting Text

19 Chapter 4: Creating Tables in a Web Site Using an External Style Sheet19 Adding Border Spacing, Padding, and Row Color to a Table

20 Chapter 4: Creating Tables in a Web Site Using an External Style Sheet20 Adding a Table Caption

21 Chapter 4: Creating Tables in a Web Site Using an External Style Sheet21 Creating the Headings that Span Rows

22 Chapter 4: Creating Tables in a Web Site Using an External Style Sheet22 Adding the Bolder Class to Data Cells

23 Define table elements Describe the steps used to plan, design, and code a table Create a borderless table for a horizontal navigation bar with text links Create an external style sheet to define styles across a Web site Utilize classes to give you more control over styles Chapter 4: Creating Tables in a Web Site Using an External Style Sheet23 Chapter Summary

24 Link an external style sheet to Web pages where you want its styles applied Create a table with borders and insert text Use the box-shadow property to alter the appearance of an image Alter the spacing between and within cells using the border spacing and padding properties Chapter 4: Creating Tables in a Web Site Using an External Style Sheet24 Chapter Summary

25 Utilize inline styles to alter the style of individual elements on a Web page Add background color to rows and cells Insert a caption below a table Create headings that span rows using the rowspan attribute Chapter 4: Creating Tables in a Web Site Using an External Style Sheet25 Chapter Summary

26 Chapter 4 Complete HTML 7 th Edition


Download ppt "Creating Tables in a Web Site Using an External Style Sheet HTML5 & CSS 7 th Edition."

Similar presentations


Ads by Google