Creating a Web Site: The Missing Manual: The Missing Manual and over one million other books are available for Amazon Kindle . Learn more

Buy Used
Used - Very Good See details
Price: £2.48

or
Sign in to turn on 1-Click ordering.
 
   
Have one to sell? Sell yours here
Creating Web Sites: The Missing Manual
 
 
Start reading Creating a Web Site: The Missing Manual: The Missing Manual on your Kindle in under a minute.

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

Creating Web Sites: The Missing Manual [Paperback]

Matthew MacDonald
4.3 out of 5 stars  See all reviews (16 customer reviews)

Available from these sellers.


‹  Return to Product Overview

Product Description

Product Description

Think you have to be a technical wizard to build a great web site? Think again. For anyone who wants to create an engaging web site--for either personal or business purposes--Creating Web Sites: The Missing Manual demystifies the process and provides tools, techniques, and expert guidance for developing a professional and reliable web presence.

Like every Missing Manual, you can count on Creating Web Sites: The Missing Manual to be entertaining and insightful and complete with all the vital information, clear-headed advice, and detailed instructions you need to master the task at hand. Author Matthew MacDonald teaches you the fundamentals of creating, maintaining, and updating an effective, attractive, and visitor-friendly web site--from scratch or from an existing site that's a little too simple or flat for your liking.

Creating Web Sites: The Missing Manual doesn't only cover how to create a well-designed, appealing, smart web site that is thoroughly up to date and brimming with the latest features. It also covers why it's worth the effort by explaining the rationale for creating a site in the first place and discussing what makes a given web site particularly aesthetic, dynamic, and powerful. It further helps you determine your needs and goals and make well informed design and content decisions.

Creating Web Sites: The Missing Manual includes a basic primer on HTML, working with JavaScript, and incorporating services like Paypal's shopping cart, Amazon's associate program, and Google AdSense and AdWords. It delivers advanced tricks for formatting, graphics, audio and video, as well as Flash animation and dynamic content. And you'll learn how to identify and connect with your site's audience through forms, forums, meta tags, and search engines.

This isn't just another dry, uninspired book on how to create a web site. Creating Web Sites: The Missing Manual is a witty and intelligent guide for all of you who are ready to make your ideas and vision a web reality.

From the Publisher

Think you have to be a technical wizard to build a great web site? Think again. For anyone who wants to create an engaging web site--for either personal or business purposes--Creating Web Sites: The Missing Manual demystifies the process and provides tools, techniques, and expert guidance for making your ideas and vision a reality with a professional and reliable Web presence.

About the Author

Matthew MacDonald is President of ProseTech, a software documentation consultancy, and a project manager at VoiceIQ (http://www.voiceiq.com/), a provider of software for interactive voice-enabled applications and services. Matthew is a coauthor of the ASP.NET in a Nutshell (O'Reilly), and a contributor to the C# in a Nutshell (O'Reilly) API reference.

Excerpted from Creating Web Sites: The Missing Manual by Matthew MacDonald. Copyright © 2005. Reprinted by permission. All rights reserved.

Chapter 6 Style Sheets

Last chapter, you learned HTML ’s dirty little secret —it doesn’t have much formatting muscle.If you want your Web pages to look sharp,you need to add style sheets into the mix.

Style sheets are separate documents that are filled with formatting rules.The browser reads these rules and uses them to format your Web page.For example,a style sheet rule might say,"make all headings bold and fuchsia and draw a box around each one."

There ’s several reasons that you place formatting instructions in a style sheet instead of directly in a Web page. The most obvious one is reuse .For example, thanks to style sheets,you can create a single rule that you can use with every levelthree heading in every Web page on your Web site.The second reason is that style sheets help you make tidy, manageable HTML.Because they do all the formatting, your HTML code doesn ’t need to.All your HTML needs to do is organize the page into logical sections. (For a quick recap of the difference between structuring and formatting a Web page,refer back to page 112.)

The formatting choices in style sheets are much more extensive (and much more overwhelming) than those in HTML alone.Using style sheets,you can control colors, borders,margins,alignment,and (to a limited degree)fonts.You ’ll use style sheets in this chapter and throughout this book.As you ’ll see,style sheets give you options that can jazz up the dullest HTML.

Style Sheet Basics

Style sheets are officially known as the cascading style sheet (CSS)standard.CSS is a system for defining rules about how one or more Web pages should be formatted. When you use CSS in a Web page,the browser reads both the page ’s HTML and the style sheet rules.It then uses the style sheet rules to format the page. Figure 6-1 diagrams the process.

This system gives Web weavers the best of both worlds —a rich way to format pages and a way to avoid mucking up your HTML beyond recognition. In an ideal world, the HTML document describes only the structure of a Web page (what ’s a header, what’s a paragraph, what ’s a list, and so on),and the style sheet explains how to give that Web page a hot new look.

The Three Types of Styles

Before you even get started learning how to write CSS rules,you first have to think about where you ’re going to place those instructions.CSS gives you three different ways to apply style sheets to a Web page:

•An external style sheet is a style sheet that ’s stored in a separate file.This is the most powerful approach,because it completely separates the formatting rulesfrom your HTML pages.It also gives you an easy way to apply the same rules to many pages.

•An internal style sheet is a style sheet that ’s embedded inside an HTML document (it goes right inside the element).You still have the benefit of separating the style information from the HTML,and if you really want,you can copy the embedded style sheet from one page to another (although it gets difficult to keep all of those copies synchronized).Really,the only time you ’ll use an internal style sheet is if you want to give someone a Web page in a single file — for example,if you ’re emailing someone a Web page.

•An inline style is a method for inserting style sheet language directly inside an HTML tag.You’ve already learned that it ’s a bad idea to embed formatting inside a Web page document, because these details are ugly and long. However, you might occasionally use this approach to apply one-time formatting in a hurry. It ’s not all that clean or structured, but it does work.

Up to Speed
The "Other Way " to Format a Web Page

Style sheets aren ’t the only way to format a Web page — they ’re just the most capable tool.But you ’ve also got a few formatting options built right into the HTML tags you learned about in Chapter 5.For example,you can change a page’s background color or center text without touching a style sheet.For the most part,this book doesn’t use these formatting options,for several good reasons:

•They ’re patchy and incomplete.Many features (like paragraph indenting and borders)are completely missing —no HTML tags exist to achieve these effects.Even worse,the model isn ’t consistent —for example,you might be able to line up text in onetype of tag,but not the text that ’s contained in another type of tag.This makes the model difficult to learn and remember.

•According to the HTML standard,these formatting options are deprecated. That means that even though these formatting tweaks are still supported by most browsers, they ’re considered obsolete by the official rulemakers of the HTML standard —that ’d be the good people who work at World Wide Web Consortium (W3C).Many people didn ’t like these fancy flourishes in the first place,but they were wedged in by over-eager software companies such as Microsoft and Netscape. Newer devices(for example, browsers on tiny mobile phones)are more likely to ignore these instructions altogether. Even worse,if you use them,your hard-core Web designer friends won ’t sit with you at restaurants.

•They don ’t allow you to easily reuse formatting changes.So after you format one page,you need to start all over again to fix the next page.And so on,and so on,and so on.

•They won ’t work in XHTML.Right now you might not be concerned about creating XHTML pages (page 47),but by using style sheets,you ’ll simplify your life if you ever decide to switch your Web site over to this new Web standard.

•Why learn something you don ’t need? Seeing as style sheets offer so much more power and flexibility,and now that style sheets are supported (with certain limitations)on virtually every browser around (old and new),it doesn ’t make sense to waste time with something you ’ll outgrow anyway.

‹  Return to Product Overview