Sams Teach Yourself HTML and CSS in 24 Hours (Sams Teach Yourself Series)

( 4 )

Overview

In just 24 lessons of one hour or less, you can learn how to use HTML and CSS to design, create, and maintain world-class web sites. Using a clear, down-to-earth approach, each lesson builds upon the previous one, allowing even complete beginners to learn the essentials from the ground up.

Full-color figures and clear step-by-step ...

See more details below
Paperback (Eighth Edition)
$25.60
BN.com price
(Save 26%)$34.99 List Price

Pick Up In Store

Reserve and pick up in 60 minutes at your local store

Other sellers (Paperback)
  • All (9) from $1.99   
  • New (3) from $25.84   
  • Used (6) from $1.99   
Sams Teach Yourself HTML and CSS in 24 Hours (Includes New HTML 5 Coverage)

Available on NOOK devices and apps  
  • NOOK Devices
  • NOOK HD/HD+ Tablet
  • NOOK
  • NOOK Color
  • NOOK Tablet
  • Tablet/Phone
  • NOOK for Windows 8 Tablet
  • NOOK for iOS
  • NOOK for Android
  • NOOK Kids for iPad
  • PC/Mac
  • NOOK for Windows 8
  • NOOK for PC
  • NOOK for Mac
  • NOOK Study

Want a NOOK? Explore Now

NOOK Book (eBook)
$15.49
BN.com price
(Save 44%)$27.99 List Price

Overview

In just 24 lessons of one hour or less, you can learn how to use HTML and CSS to design, create, and maintain world-class web sites. Using a clear, down-to-earth approach, each lesson builds upon the previous one, allowing even complete beginners to learn the essentials from the ground up.

Full-color figures and clear step-by-step instructions help you learn quickly.

Practical, hands-on examples show you how to apply what you learn.

Quizzes and Exercises help you test your knowledge and stretch your skills.

Learn how to…

Build your own web page and get it online in an instant

Format text for maximum clarity and readability

Create links to other pages and to other sites

Add graphics, color, and visual pizazz to your web pages

Work with transparent images and background graphics

Design your site’s layout and typography using CSS

Get user input with web-based forms

Publicize your site and make it search-engine friendly

Test a web site for compatibility with different browsers

Make your site easy to maintain and update as it grows

Free Access to Online Learning Lab

Register your book at informit.com/register for free, exclusive access to the Online Learning Lab to supplement this book’s lessons:

Video walkthroughs to show you how to complete the step-by-step examples in the book

Fast and fun online quizzes to test your understanding of each lesson

Updates or corrections as they become available

Read More Show Less

Product Details

  • ISBN-13: 9780672330971
  • Publisher: Sams
  • Publication date: 12/30/2009
  • Series: Sams Teach Yourself Series
  • Edition description: Eighth Edition
  • Edition number: 8
  • Pages: 445
  • Sales rank: 608,407
  • Product dimensions: 7.50 (w) x 9.00 (h) x 1.10 (d)

Meet the Author

Julie C. Meloni is both the technical director for i2i Interactive, a multimedia company located in Los Altos, CA, and a scholar working in the field of Digital Humanities. She has written several books and articles on Web-based programming languages and database topics, including the bestselling Sams Teach Yourself PHP, MySQL, and Apache All in One.

Michael Morrison is a writer, developer, toy inventor, and author of a variety of computer technology books and interactive web-based courses. In addition to his primary profession as a writer and freelance nerd for hire, Michael is the creative lead at Stalefish Labs, an entertainment company he co-founded with his wife, Masheed.

Read More Show Less

Table of Contents

Contents

PART I: Getting Started on the Web

HOUR 1: Understanding How the Web Works

A Brief History of HTML and the

World Wide Web ..............................................1

Creating Web Content ......................................2

Understanding Web Content Delivery ................3

Selecting a Web Hosting Provider ......................6

Testing with Multiple Web Browsers ..................8

HOUR 2: Publishing Web Content

Creating the Sample File for this Hour ............13

Using FTP to Transfer Files..............................14

Understanding Where to Place

Files on the Web Server ................................18

Distributing Content without a Web Server ......22

Testing Web Content ....................................24

HOUR 3: Understanding HTML and XHTML

Connections

Getting Started with a Simple Web Page..........28

HTML Tags Every XHTML Web

Page Must Have ............................................32

Organizing a Page with Paragraphs

and Line Breaks ............................................34

Organizing Your Content with Headings ............36

Validating Your Web Content ..........................39

The Scoop on HTML, XML, XHTML,

and HTML 5 ..................................................41

HOUR 4: Understanding Cascading Style Sheets

How CSS Works ............................................48

A Basic Style Sheet........................................49

A CSS Style Primer ........................................54

Using Style Classes ......................................58

Using Style IDs ..............................................61

Internal Style Sheets and Inline Styles ............62

PART II: Building Blocks of Practical

Web Design

HOUR 5: Working with Text Blocks and Lists

Aligning Text on a Page ..................................68

The Three Types of HTML Lists ......................71

Placing Lists Within Lists................................73

HOUR 6: Working with Fonts

Boldface, Italics, and Special Text Formatting......82

Tweaking the Font ..........................................85

Working with Special Characters ....................89

HOUR 7: Using Tables to Display Information

Creating a Simple Table..................................96

Controlling Table Sizes ..................................99

Alignment and Spanning Within Tables ..........102

Page Layout with Tables................................105

HOUR 8: Using External and Internal Links

Using Web Addresses ..................................111

Linking Within a Page Using Anchors ............114

Linking Between Your Own Web Content ........117

Linking to External Web Content....................120

Linking to an Email Address ........................120

Opening a Link in a New Browser Window......122

Using CSS to Style Hyperlinks ......................123

HOUR 9: Working with Colors

Best Practices for Choosing Colors ..............131

Understanding Web Colors............................133

Using Hexadecimal Values for Colors ............135

Using CSS to Set Background,

Text, and Border Colors ................................136

HOUR 10: Creating Images for Use on the Web

Choosing Graphics Software ........................143

The Least You Need to Know About Graphics ....144

Preparing Photographic Images ....................145

Creating Banners and Buttons ......................151

Reducing the Number of Colors in an Image ....153

Working with Transparent Images ..................154

Creating Tiled Backgrounds ..........................154

Creating Animated Web Graphics ..................156

HOUR 11: Using Images in Your Web Site

Placing Images on a Web Page ....................162

Describing Images with Text..........................163

Specifying Image Height and Width................165

Aligning Images............................................165

Turning Images into Links ............................169

Using Background Images ............................172

Using Imagemaps ........................................173

HOUR 12: Using Multimedia in Your Web Site

Linking to Multimedia Files ..........................184

Embedding Multimedia Files ........................187

Additional Tips for Using Multimedia..............190

HOUR 13: Working with Frames

What Are Frames?........................................197

Building a Frameset ....................................199

Linking Between Frames and Windows ..........202

Using Inline Frames ....................................204

PART III: Advanced Web Page Design

with CSS

HOUR 14: Working with Margins, Padding,

Alignment, and Floating

Using Margins..............................................212

Padding Elements ........................................219

Keeping Everything Aligned ..........................223

Understanding the Float Property ..................224

HOUR 15: Understanding the CSS Box Model

and Positioning

The CSS Box Model ....................................231

The Whole Scoop on Positioning ..................235

Controlling the Way Things Stack Up..............239

Managing the Flow of Text ............................242

HOUR 16: Using CSS to Do More with Lists

HTML List Refresher ....................................245

How the CSS Box Model Affects Lists ..........246

Placing List Item Indicators ..........................249

Creating Image Maps with List

Items and CSS ..........................................251

HOUR 17: Using CSS to Design Navigation

How Navigation Lists Differ

from Regular Lists........................................259

Creating Vertical Navigation with CSS ............260

Creating Horizontal Navigation with CSS ........270

HOUR 18: Using Mouse Actions to Modify

Text Display

Creating a Tool Tip with CSS ........................277

Displaying Additional Rollover Text with CSS ....281

Accessing Events ........................................283

Using onclick to Change
Appearance....284

HOUR 19: Creating Fixed or Liquid Layouts

Understanding Fixed Layouts ........................294

Understanding Liquid Layouts ......................295

Creating a Fixed/Liquid Hybrid Layout............298

PART IV: Advanced Web Site

Functionality and Management

HOUR 20: Creating Print-Friendly Web Pages

What Makes a Page Print-Friendly? ................312

Applying a Media-Specific Style Sheet............315

Designing a Style Sheet for Print Pages ........317

Viewing a Web Page in Print Preview..............320

HOUR 21: Understanding Dynamic Web Sites

Understanding the Different

Types of Scripting ........................................325

Including JavaScript in HTML ........................326

Displaying Random Content ..........................328

Understanding the Document Object Model ......332

Changing Images Based on User Interaction ....333

HOUR 22: Working with Web-Based Forms

How HTML Forms Work ................................339

Creating a Form ..........................................340

Accepting Text Input ....................................344

Naming Each Piece of Form Data ..................345

Including Hidden Data in Forms ....................345

Exploring Form Input Controls ......................346

Submitting Form Data ..................................349

HOUR 23: Organizing and Managing a Web Site

When One Page Is Enough............................356

Organizing a Simple Site ..............................357

Organizing a Larger Site................................360

Writing Maintainable HTML Code ..................364

HOUR 24: Helping People Find Your Web Pages

Publicizing Your Web Site ..............................371

Listing Your Pages with the

Major Search Sites ......................................373

Providing Hints for Search Engines ................374

Additional Tips for Search

Engine Optimization......................................379

PART V: Appendixes

APPENDIX A: HTML and CSS Resources on

the Internet

General HTML, XHTML, and CSS Information ....385

Web Browsers..............................................386

Web Page Design ........................................386

Software......................................................386

Colors and Graphics ....................................387

Multimedia ..................................................388

Advanced Developer Resources ....................388

Web Site Hosting ........................................389

Web Site Services........................................389

APPENDIX B: HTML and CSS Quick Reference

HTML Structure............................................392

HTML Text Phrases and Paragraphs ..............395

XHTML Text Formatting Elements ..................398

XHTML Lists ................................................399

XHTML Links................................................400

XHTML Tables ..............................................402

XHTML Embedded Content ..........................407

XHTML Style ................................................410

XHTML Forms ..............................................410

XHTML Scripts ............................................413

XHTML Common Attributes ..........................414

CSS Dimension Style Properties ..................415

CSS Text and Font Style Properties ..............416

CSS Background Style Properties..................419

CSS Border Style Properties ........................420

CSS Margin Style Properties ........................423

CSS Padding Style Properties ......................424

CSS Layout and Display Style Properties ......424

CSS List and Marker Style Properties ............427

CSS Table Style Properties ..........................428

Read More Show Less

Customer Reviews

Average Rating 5
( 4 )
Rating Distribution

5 Star

(3)

4 Star

(1)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously
Sort by: Showing 1 – 17 of 4 Customer Reviews
  • Posted January 29, 2010

    A very useful text on web page coding using XHTML and CSS.

    Sams Teach Yourself HTML and CSS in 24 Hours 8th edition, by Julie C. Meloni and Michael Morrison, provides the beginning and intermediate web designer with the tools needed to create standards-based web sites. The major focus of the book is XHTML 1.1 and CSS 2, but HTML 5 and some XHTML 1.0 are discussed. Overall, the presentation and content are very good. I noticed that there were no noticeable errata until the latter parts of the book. Published in December of 2009, the 8th edition provides reasonably current information.

    Each "hour" of the book includes a "What You'll Learn in this Hour" section at the beginning, and Q&A, Quiz and Exercises sections at the end. Most chapters also include a "Try It Yourself" section, indicating what you should be accomplishing with your own web site. The examples have color coding for the various tags, comments, etc., and the book's examples work with a number of browsers. Specifically, Apple Safari, Google Chrome, Microsoft Internet Explorer, Mozilla Firefox, and Opera browsers were used to test the examples. If you use the coding standards espoused in the book, your web pages should appear properly formatted across most computers. Handheld browsers are only covered briefly, in the section discussing media-specific style sheets.

    Teach Yourself HTML and CSS in 24 Hours appears to be a properly authoritative text that would help you create a standards-based web site. Like most texts of this type, it does not reference web design software such as DreamWeaver. Rather, it addresses understanding exactly what code standards-based browsers will handle, and how you can manipulate them to create exactly what you want. The only disappointment with the book was the obvious errors in the later chapters. That said, the content is so worthwhile, I rated it an 4 out of 5.

    1 out of 1 people found this review helpful.

    Was this review helpful? Yes  No   Report this review
  • Posted December 8, 2011

    Easy and Definitive

    Meloni and Morrison¿s ¿Teach Yourself HTML and CSS in 24 Hours¿ is an easy read. On the cover, it says ¿in full color¿, and if you think that a black and white version is just as good, you¿re mistaken. They use color effectively, not only for illustrations, but to highlight key concepts and key words, in a systematic way. The ¿24 hours¿ concept is effective, too. Starting out with the real basics of HTML, gradually introducing CSS, and ending with more sophisticated uses of HTML 5, the careful reader builds on earlier concepts, and can, in fact, grasp the most important aspects of web design in a useful way. Finally, though the treatment is succinct, it is as definitive a work on the subject as books of twice its length. including reference appendices with links to the most authoritative sources on the subject.

    I¿ve read several books on web design. Some are too simplistic. Most are too voluminous. It¿s not easy to produce a book which starts with the absolute basics and thoughtfully moves to the subtleties, but this book does an admirable job. It¿s worth owning.

    Was this review helpful? Yes  No   Report this review
  • Posted August 11, 2011

    Great for Beginners!

    I know most of the content covered in this book, so it was an easy read. Still, there is a great pull to brush up on what you already know by getting this book. The color coding in the book really helps focus your attention on each key aspect of the syntax. Each chapter/section ends with questions and answer, so that is a great way to review what you just read. The CSS review is also a good selling point for the book, especially for me who has had little CSS experience. Getting a good look at it from a beginner's standpoint is very helpful. This book will definitely help me with getting down the basics of page layout and design. I look forward to putting some of the examples into practice.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted January 10, 2010

    No text was provided for this review.

  • Anonymous

    Posted January 26, 2010

    No text was provided for this review.

  • Anonymous

    Posted January 10, 2010

    No text was provided for this review.

  • Anonymous

    Posted January 27, 2010

    No text was provided for this review.

  • Anonymous

    Posted January 27, 2010

    No text was provided for this review.

  • Anonymous

    Posted January 19, 2010

    No text was provided for this review.

  • Anonymous

    Posted February 7, 2012

    No text was provided for this review.

  • Anonymous

    Posted January 18, 2010

    No text was provided for this review.

  • Anonymous

    Posted January 25, 2010

    No text was provided for this review.

  • Anonymous

    Posted January 26, 2010

    No text was provided for this review.

  • Anonymous

    Posted January 6, 2010

    No text was provided for this review.

  • Anonymous

    Posted January 20, 2010

    No text was provided for this review.

  • Anonymous

    Posted January 9, 2010

    No text was provided for this review.

  • Anonymous

    Posted January 26, 2010

    No text was provided for this review.

Sort by: Showing 1 – 17 of 4 Customer Reviews

If you find inappropriate content, please report it to Barnes & Noble
Why is this product inappropriate?
Comments (optional)