Sams Teach Yourself Web Publishing with HTML and CSS in One Hour a Day

Sams Teach Yourself Web Publishing with HTML and CSS in One Hour a Day

by Laura Lemay, Rafe Colburn

NOOK Book(eBook)

$20.49 $35.99 Save 43% Current price is $20.49, Original price is $35.99. You Save 43%.
View All Available Formats & Editions
Available on Compatible NOOK Devices and the free NOOK Apps.
Want a NOOK ? Explore Now


Sams Teach Yourself Web Publishing with HTML and CSS in One Hour a Day by Laura Lemay, Rafe Colburn

Sams Teach Yourself Web Publishing with HTML and CSS in One Hour a Day  is a new edition of the best-selling book that started the whole HTML/web publishing phenomenon. The entire book has been revised and refined to reflect current web publishing practices and technologies. It includes extensive coverage of Cascading Style Sheets (CSS), which have become a staple in web development.


You'll have no problem learning from expert author Laura Lemay's clear and approachable writing style. Simple, step-by-step instructions with lots of practical, interesting examples of web pages will guide you as you master current web publishing technologies and practices.

Product Details

ISBN-13: 9780768690019
Publisher: Pearson Education
Publication date: 06/08/2006
Series: Sams Teach Yourself
Sold by: Barnes & Noble
Format: NOOK Book
Pages: 840
File size: 27 MB
Note: This product may take a few minutes to download.

About the Author

Laura Lemay is the world's most popular author on HTML and web development topics. In addition to the best-selling Teach Yourself Web Publishing books, and she is also co-author of Teach Yourself Java in 21 Days and Teach Yourself Perl in 21 Days.


Rafe Colburn is a programmer and author working in North Carolina. He is the author of Special Edition Using SQL and Sams Teach Yourself CGI in 24 Hours and co-author of Sams Teach Yourself Perl in 21 Days.

Table of Contents


Part I: Getting Started

Lesson 1: Navigating the World Wide Web

   How the World Wide Web Works

       The Web Is a Hypertext Information System

       The Web Is Graphical and Easy to Navigate

       The Web Is Cross-Platform

       The Web Is Distributed

       The Web Is Dynamic

       The Web Is Interactive

   Web Browsers

       What the Browser Does

       An Overview of Some Popular Browsers

       Using the Browser to Access Other Services

   Web Servers

   Uniform Resource Locators





       Quiz Answers


Lesson 2: Preparing to Publish on the Web

   Anatomy of a Website

   What Do You Want to Do on the Web?

   Setting Your Goals

   Breaking Up Your Content into Main Topics

   Ideas for Organization and Navigation



       Linear with Alternatives

       Combination of Linear and Hierarchical


   Storyboarding Your Website

       What’s Storyboarding and Why Do I Need It?

       Hints for Storyboarding





       Quiz Answers


Lesson 3: Introducing HTML and XHTML

   What HTML Is—And What It Isn’t

       HTML Describes the Structure of a Page

       HTML Does Not Describe Page Layout

       Why It Works This Way

       How Markup Works

       A Brief History of HTML Tags

   The Current Standard: XHTML 1.0

   What HTML Files Look Like

       Text Formatting and HTML

   Using Cascading Style Sheets

       Including Styles in Tags

   Programs to Help You Write HTML





       Quiz Answers


Lesson 4: Learning the Basics of HTML

   Structuring Your HTML

       The <html> Tag

       The <head> Tag

       The <body> Tag

   The Title



   Lists, Lists, and More Lists

       List Tags

       Numbered Lists

       Customizing Ordered Lists

       Unordered Lists

       Customizing Unordered Lists

       Glossary Lists

       Nesting Lists






       Quiz Answers


Part II: Creating Simple Web Pages

Lesson 5: Adding Links to Your Web Pages

   Creating Links

       The Link Tag—

   Linking Local Pages Using Relative and Absolute Pathnames

       Absolute Pathnames

       Using Relative or Absolute Pathnames?

   Links to Other Documents on the Web

   Linking to Specific Places Within Documents

       Creating Links and Anchors

       Linking to Anchors in the Same Document

   Anatomy of a URL

       Parts of URLs

       Special Characters in URLs

       HTML 4.01 and the Tag

   Kinds of URLs


       Anonymous FTP

       Non-anonymous FTP


       Usenet Newsgroups






       Quiz Answers


Lesson 6: Formatting Text with HTML and CSS

   Character-Level Elements

       Logical Styles

       Physical Styles

   Character Formatting Using CSS

       The Text Decoration Property

       Font Properties

   Preformatted Text

   Horizontal Rules

       Attributes of the Tag

   Line Break



   Special Characters

       Character Entities for Special Characters

       Character Entities for Reserved Characters

   Text Alignment

       Aligning Individual Elements

       Aligning Blocks of Elements

   Fonts and Font Sizes

       Changing the Font Size

       Changing the Font Face

       Modifying Fonts Using CSS

   <nobr> and





       Quiz Answers


Lesson 7: Adding Images, Color, and Backgrounds

   Images on the Web

   Image Formats




   Inline Images in HTML: The Tag

       Adding Alternative Text to Images

   Images and Text

       Text and Image Alignment

       Wrapping Text Next to Images

       Adjusting the Space Around Images

   Images and Links

   What Is an Imagemap?

   Client-Side Imagemaps

       Imagemaps and Text-Only Browsers

   Creating Client-Side Imagemaps

       Getting an Image

       Determining Your Coordinates

       The <map> and <area> Tags

       The usemap Attribute

   Other Neat Tricks with Images

       Image Dimensions and Scaling

       More About Image Borders

   Using Color

       Specifying Colors

       Changing Background Color of a Page

       Changing Text Colors

       Spot Color

       Specifying Colors with CSS

       Color-Related Properties

   Image Backgrounds

   Image Etiquette





       Quiz Answers


Part III: Doing More with HTML and XHTML

Lesson 8: Building Tables

   Creating Tables

   Table Parts

       The <table> Element

       The Table Summary

       Rows and Cells

       Empty Cells


   Sizing Tables, Borders, and Cells

       Setting Table Widths

       Changing Table Borders

       Cell Padding

       Cell Spacing

       Column Widths

       Setting Breaks in Text

   Table and Cell Color and Alignment

       Changing Table and Cell Background Colors

       Changing Border Colors

   Aligning Your Table Content

       Table Alignment

       Cell Alignment

       Caption Alignment

   Spanning Multiple Rows or Columns

   More Advanced Table Enhancements

       Grouping and Aligning Columns

       Grouping and Aligning Rows

       The frame and rules Attributes

   Other Table Elements and Attributes

   How Tables Are Used





       Quiz Answers


Lesson 9: Creating Layouts with CSS

   Including Style Sheets in a Page

       Creating Page-Level Styles

       Creating Sitewide Style Sheets


       Contextual Selectors

       Classes and IDs

   Units of Measure

   Box Properties

       Controlling Size


       Margins and Padding


   CSS Positioning

       Relative Positioning

       Absolute Positioning

       Controlling Stacking

   Modifying the Appearance of Tables

   The <body> Tag


   Creating Layouts with Multiple Columns





       Quiz Answers


Lesson 10: Designing Forms

   Understanding Form and Function

   Using the <form> Tag

   Creating Form Controls with the <input> Tag

       Creating Text Controls

       Creating Password Controls

       Creating Submit Buttons

       Creating Reset Buttons

       Creating Check Box Controls

       Creating Radio Buttons

       Using Images As Submit Buttons

       Creating Generic Buttons

       Hidden Form Fields

       The File Upload Control

   Using Other Form Controls

       Using the button Element

       Creating Large Text-Entry Fields with textarea

       Creating Menus with select and option

   Adding Extras

       Displaying Control label Elements

       Grouping Controls with fieldset and legend

       Changing the Default Form Navigation

       Using Access Keys

       Creating disabled and readonly Controls

   Applying Cascading Style Sheet Properties to Forms

   Planning Your Forms





       Quiz Answers


Lesson 11: Integrating Multimedia: Sound, Video, and More

   Understanding How to Present Sound and Video

   The Old Standby: Linking

   Embedding Sound and Video

       Using the <embed> Element

       Using the <object> Element

       Combining <embed> and <object>

       Embedding Flash Movies

       Embedding RealAudio and RealVideo

       Multimedia Techniques

   Sound and Video File Types

   Of Plug-Ins and Players

       Windows Media Player

       Macromedia Flash

       Macromedia Shockwave

       Apple QuickTime







       Quiz Answers


Part IV: JavaScript and Dynamic HTML

Lesson 12: Introducing JavaScript

   Introducing JavaScript

       Why Would You Want to Use JavaScript?

   The <script> Tag

       The Structure of a JavaScript Script

       The src Attribute

   Basic Commands and Language Structure

       Properties and Methods

       Events and JavaScript


       Operators and Expressions

   Basic JavaScript Programming

       What Is a Script?





       Quiz Answers


Lesson 13: Using JavaScript in Your Pages

   Creating a Random Link Generator

   Validating Forms with JavaScript

   Creating an Image Rollover





       Quiz Answers


Lesson 14: Working with Frames and Linked Windows

   What Are Frames and Who Supports Them?

   Working with Linked Windows

       The <base> Tag

   Working with Frames

       The <frameset> Tag

       The <frame> Tag

       The <noframes> Tag

   Changing Frame Borders

   Creating Complex Framesets

       Magic target Names

   Floating Frames

   Opening Linked Windows with JavaScript





       Quiz Answers


Lesson 15: Creating Applications with Dynamic HTML and AJAX

   What Exactly Is Dynamic HTML?

   Using the Document Object Model

       DOM Data Types

       Objects in the DOM

       Using the DOM

   Coping with Reality: Cross-Browser DHTML Techniques

       Sniffing for Browsers

       Detecting Capabilities

       Testing for the Existence of Objects

   Using JavaScript to Manipulate Elements

       Hiding and Revealing Elements

       Moving Objects Around

       Creating a DHTML Pull-Down Menu

   Connecting to a Server with AJAX

       How AJAX Works

       An AJAX Example





       Quiz Answers


Part V: Designing Effective Web Pages

Lesson 16: Writing Good Web Pages: Do’s and Don’ts

   Standards Compliance

       Validating Your Pages

       HTML Tidy

   Writing for Online Publication

       Write Clearly and Be Brief

       Organize Your Pages for Quick Scanning

       Make Each Page Stand on Its Own

       Be Careful with Emphasis

       Don’t Use Browser-Specific Terminology

       Spell Check and Proofread Your Pages

   Design and Page Layout

       Use Headings As Headings

       Group Related Information Visually

       Use a Consistent Layout

   Using Links

       Use Link Menus with Descriptive Text

       Use Links in Text

       Avoid the “Here” Syndrome

       To Link or Not to Link

   Using Images

       Don’t Overuse Images

       Use Alternatives to Images

       Keep Images Small

       Watch Out for Assumptions About Your Visitors’ Hardware

       Be Careful with Backgrounds and Link Colors

   Other Good Habits and Hints

       Link Back to Home

       Don’t Split Topics Across Pages

       Don’t Create Too Many or Too Few Pages

       Sign Your Pages

           Provide Nonhypertext Versions of Hypertext Pages





       Quiz Answers


Lesson 17: Designing for the Real World

   What Is the Real World, Anyway?

   Considering User Experience Level

       Add a Search Engine

       Use Frames Wisely

       Use Concise, Sensible URLs

       Navigation Provides Context

       Are Your Users Tourists or Regulars?

   Determining User Preference

   Deciding on an HTML 4.01 or XHTML 1.0 Approach

       HTML 4.01 and XHTML 1.0 Transitional

       HTML 4.01 and XHTML 1.0 Frameset

       HTML 4.01 and XHTML 1.0 Strict

   What Is Accessibility?

       Common Myths Regarding Accessibility

       Section 508

   Alternative Browsers

   Writing Accessible HTML




   Designing for Accessibility

       Use Color


       Take Advantage of All HTML Tags

       Frames and Linked Windows


   Validating Your Sites for Accessibility





       Quiz Answers


Part VI: Going Live on the Web

Lesson 18: Putting Your Site Online

   What Does a Web Server Do?

       Other Things Web Servers Do

   Locating a Web Server

       Using a Web Server Provided by Your School or Work

       Using a Commercial Internet or Web Service

       Setting Up Your Own Server

       Free Hosting

   Organizing Your HTML Files for Publishing

       Questions to Ask Your Webmaster

       Keeping Your Files Organized with Directories

       Having a Default Index File and Correct Filenames

   Publishing Your Files

       Moving Files Between Systems


       I Can’t Access the Server

       I Can’t Access Files

       I Can’t Access Images

       My Links Don’t Work

       My Files Are Being Displayed Incorrectly

   Registering and Advertising Your Web Pages

       Getting Links from Other Sites


       dmoz: The Open Directory Project

       Yellow Pages Listings

       Private Directories

   Site Indexes and Search Engines



       MSN Search

   Search Engine Optimization

   Paying for Search Placement

   Business Cards, Letterhead, Brochures, and Advertisements

   How to Win Friends and Influence People

   Finding Out Who’s Viewing Your Web Pages

       Log Files

       Access Counters





       Quiz Answers


Lesson 19: Taking Advantage of the Server

   Web Applications


       Active Server Pages



   Server-Side Includes

       Using Server-Side Includes

   Using Apache Access Control Files

       Managing Access to Pages

       Redirecting Users





       Quiz Answers


Lesson 20: Understanding Server-Side Processing

   How PHP Works

   Getting PHP to Run on Your Computer

   The PHP Language





       Conditional Statements

       PHP Conditional Operators


       foreach Loops

       for Loops

       while and do...while Loops

       Controlling Loop Execution

   Built-in Functions

   User-Defined Functions

       Returning Values

   Processing Forms

       Handling Parameters with Multiple Values

       Presenting the Form

   Using PHP Includes

       Choosing Which Include Function to Use

   Expanding Your Knowledge of PHP

       Database Connectivity

       Regular Expressions

       Sending Mail

       Object-Oriented PHP

       Cookies and Sessions

       File Uploads





       Quiz Answers


Lesson 21: Using Tools to Make Publishing Easier

   The Rise of Content Management

   Is a Content Management System Right for You?

   Types of Content Management Systems

       Weblogging Tools

       Community Publishing Applications


       Image Galleries

       General-Purpose Content Management Systems

   Working with Packaged Software

       Relational Databases

       Deploying Applications

   TypePad: A Hosted Weblogging Application



       Downloading and Installing MediaWiki

       Using MediaWiki


       Using Coppermine

   Other Applications






       Quiz Answers


Part VII: Appendixes

Appendix A: Sources for Further Information

Appendix B: HTML 4.01 Quick Reference

Appendix C: Cascading Style Sheet Quick Reference

Appendix D: Colors by Name and Hexadecimal Value

Appendix E: MIME Types and File Extensions


Customer Reviews

Most Helpful Customer Reviews

See All Customer Reviews