Contents
ickS |
Introduction .................................................................................... xvii
Chapter 1 Creating Your First Web Pages with
Understanding Tools for Creating HTML.......................................................................... 2
Understand HTML, XML, XHTML, and HTML 5............................................................. 2
HTML.................................................................................................................................. 2
XML..................................................................................................................................... 3
XHTML................................................................................................................................ 3
HTML 5............................................................................................................................... 3
Organizing Your Site........................................................................................................... 4
Which Version of HTML Should You Use?........................................................................ 4
Get Started with Your Website........................................................................................... 4
Create a Folder for Your Website....................................................................................... 4
Open Notepad.................................................................................................................... 5
Understanding the DOCTYPE Declaration....................................................................... 6
Create a Web Page and Adding Content to It................................................................... 6
Create the Page’s Structure................................................................................................ 6
Understanding the Header and the Body.......................................................................... 8
Add Header and Body Tags.............................................................................................. 8
Add Content to the Page.................................................................................................... 9
Apply Formatting............................................................................................................. 14
Add a Picture.................................................................................................................... 14
Add Hyperlinks and Tags, and Reloading Pages............................................................ 16
Add a Hyperlink............................................................................................................... 16
Create Linked Files............................................................................................................ 18
Describe Your Pages with Meta Tags............................................................................... 20
Reload a Page Automatically........................................................................................... 20
Understanding How Search Engines Work...................................................................... 21
Redirect the Browser to Another Page.............................................................................. 21
Validate Your HTML and Checking Your Pages............................................................. 22
Validate Your HTML with the W3C Markup Validation Service 22
Check Your Pages with Other Browsers........................................................................... 23
Chapter 2 Choosing a Web Host and
Getting Your Own Website......................................... 27
Understand Web Basics.................................................................................................... 27
Understanding IPv4 and IPv6.......................................................................................... 28
Understand Web Clients and Servers............................................................................... 28
Access a Web Page........................................................................................................... 29
Understanding URLs........................................................................................................ 30
Choose a Web Host........................................................................................................... 30
Assess Your Requirements............................................................................................... 30
Understanding Intranets and Extranets.......................................................................... 31
Choose an ISP or Web Hosting Service............................................................................ 31
Decide on Web Hosting Features..................................................................................... 31
Running Your Own Web Server....................................................................................... 33
Understanding Domains.................................................................................................. 34
Evaluate an ISP................................................................................................................ 34
Evaluate a Web-Hosting Service...................................................................................... 34
Register a Domain Name................................................................................................. 34
Plan, Design, and Create Your Site.................................................................................. 36
Plan Your Site’s Contents................................................................................................. 36
Make Your Site Effective.................................................................................................. 37
Keep Your Web Pages Small Enough to Download Quickly 39
Check Your Website......................................................................................................... 40
Update and Maintain Your Website................................................................................ 40
Transfer Your Site to the Web.......................................................................................... 41
Get the Information Required for FTP............................................................................. 41
Transfer a Site Using an FTP Client................................................................................. 42
Chapter 3 Structuring Web Pages and
Applying Manual Formatting................................ 45
Using Proportional and Monospaced Fonts.................................................................... 46
Understand Considerations for Web Formatting............................................................ 46
Use Paragraphs, Divisions, Breaks, and Hyphens.......................................................... 47
Create Paragraphs............................................................................................................ 47
Group Paragraphs into Divisions.................................................................................... 48
Control Breaks.................................................................................................................. 48
Inserting Special Characters............................................................................................. 49
Keep Text Together with Nonbreaking Spaces................................................................ 49
Control Hyphenation with Optional Hyphens................................................................ 49
Create Headings, Lists, and Indents............................................................................... 49
Create Headings............................................................................................................... 49
Create Numbered, Bulleted, and Definition Lists........................................................... 50
Apply an Indent............................................................................................................... 55
Align Elements................................................................................................................. 56
Use Preformatted Text..................................................................................................... 57
Apply Formatting Tags and Attributes.......................................................................... 57
“Physical” and “Logical” Style Tags.............................................................................. 58
Apply Boldface................................................................................................................ 58
Apply Italics..................................................................................................................... 58
Apply Underline............................................................................................................... 58
Apply Strikethrough........................................................................................................ 59
Apply Monospaced Font................................................................................................. 59
Apply Subscript and Superscript.................................................................................... 59
Control Font Formatting and Styles................................................................................ 60
Understanding Other Format ting................................................................................... 60
Control Font Formatting.................................................................................................. 60
Working with Fonts.......................................................................................................... 62
Change Style Using Inline Styles...................................................................................... 62
Catch the Eye with Moving Text...................................................................................... 65
Chapter 4 Adding Graphics to Your Web Pages 67
Creating or Acquiring Graphics Files 68
Add an Inline Graphic........................................................................ 68
Insert a Graphic................................................................................................................. 68
Use Suitable Alternative Text........................................................................................... 68
Choose Where to Locate the Graphics File....................................................................... 69
Add a Long Description URL.......................................................................................... 70
Align a Graphic................................................................................................................. 70
Change the Size of a Graphic............................................................................................ 70
Using Graphics to Control How Text Appears............................................................... 72
Apply Borders to a Graphic............................................................................................. 72
Add a Title to a Graphic................................................................................................... 72
Position a Graphic with Spacers....................................................................................... 73
Understanding GIF, JPEG, and PNG............................................................................... 74
Add a Background Graphic............................................................................................. 74
Add a Horizontal Rule..................................................................................................... 75
Create an E-mail Signature Containing a Graphic........................................................... 76
Laying Out Your Web Pages............................................................................................ 77
Create an HTML Signature File........................................................................................ 77
Use an HTML Signature File in Windows Mail............................................................... 78
Keeping Down Graphic Size to Make Pages Load Faster 79
Chapter 5 Adding Links................................................................ 81
Create Links...................................................................................................................... 81
Understanding Absolute and Relative Links................................................................... 82
Link to Another Web Page................................................................................................ 82
Link Within a Web Page................................................................................................... 84
Link to a Particular Point on a Web Page........................................................................ 85
Making Your Site Navigable............................................................................................. 86
Open a Link in a New Window........................................................................................ 86
Create a Link to Download a File..................................................................................... 86
Display a ScreenTip for a Link......................................................................................... 87
Create Links to Send E-mail............................................................................................. 88
Making Your Imagemaps Useful and Intelligible............................................................ 91
Create Two or More Links in a Graphic........................................................................... 91
Add Audio and Video to Your Web Pages..................................................................... 93
Understand Audio and Video Formats........................................................................... 94
Understand Audio and Video Delivery Methods............................................................ 94
Create a Link for Downloading an Audio or Video File.................................................. 95
Create a Link to Play an Audio or Video File.................................................................. 95
Embedding a Video File in a Web Page........................................................................... 96
Chapter 6 Creating Tables........................................................... 97
Understand How Tables Work and When to Use Them................................................. 97
Plan a Table....................................................................................................................... 98
Create the Table’s Structure............................................................................................. 98
Add Rows and Columns to a Table............................................................................... 103
Add Table Borders.......................................................................................................... 103
Group Cells by Rows and Columns............................................................................... 105
Set Table and Cell Width................................................................................................
Add Padding and Spacing............................................................................................. 109
Align a Table, Row, or Cell............................................................................................. 110
Make a Cell Span Two Columns or Rows..................................................................... 114
Apply a Background Color or Picture........................................................................... 115
Create a Nested Table.................................................................................................... 115
Create a Vertical Line..................................................................................................... 117
Understanding Frames and Their Alternatives 120
Understand How Frames Work....................................................... 120
Plan a Web Page That Uses Frames.............................................................................. 121
Define Frame Height and Width.................................................................................... 121
Create the Component Documents................................................................................ 123
Create the Frameset Document...................................................................................... 123
Lay Out the Frames........................................................................................................ 124
Add the Component Documents to the Frameset........................................................ 126
Adding Alternative Text to a Frame Page..................................................................... 127
Change a Frame’s Borders and Margins........................................................................ 127
Control Whether a Frame Scrolls.................................................................................... 129
Prevent Visitors from Resizing the Frame...................................................................... 129
Nest One Frameset Inside Another................................................................................ 130
Create Inline Frames....................................................................................................... 130
Create a Link That Changes the Contents of a Frame 133
Chapter 8 Applying Formatting Using
Cascading Style Sheets............................................. 135
Understand CSS Essentials.............................................................. 136
Understanding the Style Cascade.................................................................................. 137
Create a Style Rule.......................................................................................................... 138
Understanding Other Ways of Creating Style Rules..................................................... 139
Create an Embedded Style Sheet................................................................................... 139
Understanding CSS Versions......................................................................................... 140
Create and Apply an External Style Sheet..................................................................... 140
Use Special Selectors...................................................................................................... 142
Apply a Style to Part of an Element.............................................................................. 145
Override Style Sheets...................................................................................................... 146
Control Font Formatting................................................................................................. 146
Set Alignment, Indents, Margins, and Line Height....................................................... 148
Prevent a Background Graphic from Being Tiled or Scrolling 150
Create a Floating Layout with CSS................................................................................ 151
Creating a Three-Column Floating Layout.................................................................... 154
Overriding Style Sheets in Your Browser....................................................................... 155
Chapter 9 Creating Web Pages Using
the Microsoft Office Applications 159
Get Ready to Create Web Pages in the Office Applications 159
Configure Web Options in the Office Applications...................................................... 160
Understanding How the Office Applications Use HTML 161
Adding the New Web Page and Web Page Preview Commands
to the Office Applications ............................................................................................. 165
Start a New Web Page in Word....................................................................................... 166
Create Hyperlinks............................................................................................................. 168
Check How a Page Will Look.......................................................................................... 173
Remove Sensitive Information from the Document........................................................ 173
Save Word Documents as Web Pages............................................................................. 175
Choosing Suitable Web File Formats............................................................................... 176
Remove Office-Specific Tags from a Word Document 177
Using Word to Create HTML Elements.......................................................................... 178
Create Web Pages from Excel and PowerPoint 178
Create Web Pages from Excel Workbooks 178
Create Web Pages from PowerPoint Presentations 181
Create Forms...................................................................................... 183
Understand the Basics of Forms...................................................................................... 184
Define the Form Structure................................................................................................ 184
Understanding the method Attribute.............................................................................. 186
Add Fields to the Form.................................................................................................... 186
Complete a Form.............................................................................................................. 192
Letting Visitors Upload Files........................................................................................... 193
Create a Form That E-mails Its Contents to You............................................................ 194
Use Scripts in Your Web Pages........................................................................................ 195
Understand the Different Categories of User Events...................................................... 195
Dealing with Script Threats............................................................................................. 197
Show When a Page Was Last Updated.......................................................................... 197
Redirect the Browser to Another Page............................................................................. 198
Verify That a Form Is Filled In......................................................................................... 198
Index | 201 | |
0 comments:
Post a Comment