Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
×
Image

Sams Teach Yourself HTML and CSS In 24 Hours 107

r3lody writes "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. One small minus was that the publisher's site did not include downloadable examples from the book. I also found no errata until the latter parts of the book. Published in December of 2009, the 8th edition provides reasonably current information." Read on for Ray's review.
Sams Teach Yourself HTML and CSS in 24 Hours (8th edition)
author Julie C. Meloni and Michael Morrison
pages 456
publisher Sams
rating 8/10
reviewer Ray Lodato
ISBN 0672330970
summary A very useful text on web page coding using XHTML and CSS.
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.

Overall, the book is divided into five parts: Getting Started on the Web, Building Blocks of Practical Web Design, Advanced Web Page Design with CSS, Advanced Web Site Functionality and Management, and Appendixes.

Part I: Getting Started on the Web provides the customary introductory material, suitable for beginning users. After describing the seemingly obligatory "history of the web", the first hour concludes with discussions of how to choose a web hosting provider – a topic rarely covered in the books I've read. The second hour teaches how to get web pages uploaded to a web server using FTP, and how to distribute content in a file-based structure without a server. The next two hours then cover the basics of XHTML 1.1 and CSS 2. For both XHTML and CSS, very clear instructions on how to validate your coding help insure that your pages follow the standards.

The next 9 chapters comprise Part II: (Building Blocks of Practical Web Design). This part goes into detail regarding web page coding. Starting with text alignment using paragraph tags and lists, the book has a good collection of text formatting tips using CSS as the preferred style methodology. Tables and links are covered in the next two chapters at a pretty standard level. I found the chapter on using color had a lot of good information, but I believe a beginning user would find it somewhat confusing – especially when hexadecimal notation is introduced.

The next three chapters of this part of the book cover images and multimedia. I liked the focus on getting the right sizing for photos and banners, and the tutorial on how to place the images on the web page (including wrapping text, image maps, and clickable images). I was disappointed in the limited coverage of tiling and GIF animation. The multimedia chapter was a pleasant addition – one I have rarely seen in web design texts. The discussion was tilted toward Microsoft technology, so my testing worked properly only under Internet Explorer at first, however I finally managed to get Firefox to deal with the embedded object. Some information was given for embedding YouTube links, also. I would have liked to have seen more information on the parameters for the WMP object coding. The last chapter in Part II covers frames – both framesets and iframes – with only basic information.

Advanced Web Page Design with CSS is the main topic of Part III. These six chapters dig into the important aspects of CSS alignment. One chapter focuses entirely on margins, padding, alignment and floating, and provides a nice introduction to the full discussion of the CSS box model in the next chapter. Reformatting lists was the principal target of the next chapter, leading to a discussion of navigation bars (horizontal and vertical) in the chapter after that. This is where I started picking up on some irregularities that escaped a review. For example, even though this was supposed to be standard XHTML, I noticed some list item ending tags missing from the examples. Granted, browsers still display the list properly, but this should have been caught before printing.

The last two chapters in this part cover modifying text display using mouse actions, and fixed versus liquid layouts. I liked the mouse techniques to modify a displayed image based on which thumbnail image the mouse is over. It's a simple little method that looks very nice on the page. The liquid layout chapter gave me some problems at first. My attempts didn't work the same under different browsers at first, but when I went back over them while writing the review, they worked just fine. I'm still at a loss to understand what was wrong, so I suspect those starting out may have a similar experience.

The final major part, Advanced Web Site Functionality and Management, wraps up some miscellaneous issues. First, they cover how to create a modified CSS profile to make the web page more print-friendly. The next chapter provides an introduction to JavaScript. Unfortunately, this is where I found some more non-standard XHTML code. Web-based forms are covered only at a high-level in hour 22. The authors do provide examples of each type of form field, with CSS code to neaten up the page, but it appears to be a very cursory handling of the topic.

The final two hours go over the basics of keeping your web site organized, and how to publicize the site on major search engines. The book wraps up with a final part for the two appendixes, containing useful links to further information and a general XHTML and CSS reference.

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 two main disappointments with the book are the obvious errors in the later chapters, and the lack of downloadable examples from the publisher's web site. That said, the content is so worthwhile, I rated it an 8 out of 10.

You can purchase Sams Teach Yourself HTML and CSS in 24 Hours (8th edition) from amazon.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page.

*

This discussion has been archived. No new comments can be posted.

Sams Teach Yourself HTML and CSS In 24 Hours

Comments Filter:
  • Re:Only 24 hours? (Score:2, Interesting)

    by Monkeedude1212 ( 1560403 ) on Monday February 01, 2010 @02:50PM (#30984596) Journal

    Exactly. Some guys I know go "What do you mean I shouldn't be using Tables to layout my page?" because thats basically how it was done a long while ago. (Long in computer years, not human years).

    Learning HTML and CSS are the easy parts of Web Design, and could easily be done in less than a day (I know I learned it pretty quickly). It's when you want to embed some other controls, or add some functionality, that web pages actually get complicated (Why isn't my PHP communicating with mysql properly?!?!?). Or even *shudder* when the client requests for something done in Flash.

  • by tthomas48 ( 180798 ) on Monday February 01, 2010 @03:14PM (#30984932)

    In defense of HTML and CSS, MySpace was not really what I'd imagine the web would look like. MySpace only lets you insert HTML and CSS via what is essentially an injection attack. Tumblr let's you rewrite the entire page and I see plenty of tumblr blogs that look just fine.

  • Re:Only 24 hours? (Score:2, Interesting)

    by MisterZimbu ( 302338 ) on Monday February 01, 2010 @03:19PM (#30984990)

    I'm still a tables guy- to me, doing anything remotely complicated in CSS is completely unintuitive and backwards, and requires ridiculous hacks before you even get to IE (no vertical alignment? lack of proper columns?). The real problem with web layouts today is that neither HTML Tables nor CSS were designed with layout in mind, so everything requires far too much effort to set up properly. To me, I'd rather deal with the (much smaller) hassle of using tables for layout than deal with the significant hacks to get around the severe limitations of CSS.

    Hopefully when CSS3 gains some more widespread acceptance and some of the layout-oriented modules (the CSS3 table ascii-art module and/or the Flex Layout module) gain some traction, I'll be able to switch over.

  • Re:Only 24 hours? (Score:3, Interesting)

    by Blakey Rat ( 99501 ) on Monday February 01, 2010 @03:35PM (#30985252)

    Ok, I consider myself a pretty sharp guy, and I've been working with the web for ages, but I still can't use CSS without running into major problems every single time. Some of them are design issues, some of them are just me not being able to wrap my head around it.

    For example, CSS doesn't have variables... so you can't say something like "headerColor = #5444BB" and just use that wherever you want the header color. What were they thinking!?

    CSS also can't do math, so a simple construct like "width = 10px + 5em" is impossible. (You can't do this without math because the number of pixels in an em can change based on browser/font settings.) What were they thinking!?

    The first thing I need in my CSS site is columns, you know, like newspapers had in the 17th century. What? You mean CSS has no support for columns until version 3, which is only now beginning to get any browser support at all? The only way to get columns is kludgy workarounds. What were they thinking!?

    Design issues aside, I usually end up with a page where there's a completely unexplainable pixel gap, or an element wrapping when it shouldn't, or some thing or another. Usually, the only way I can solve these problems amounts to, basically, guess and check... maybe I'm an idiot, but the way CSS does layouts just won't fit in my head at all.

    Obligatory link to "CSS is awesome" mug: http://www.zazzle.com/css_is_awesome_mug-168716435071981928 [zazzle.com]

  • by mikestew ( 1483105 ) on Monday February 01, 2010 @04:03PM (#30985802) Homepage
    I think I've learned more from Sams books by fixing the numerous bugs in the sample code than reading the text.
  • Re:Why XHTML? (Score:3, Interesting)

    by Blakey Rat ( 99501 ) on Monday February 01, 2010 @05:43PM (#30987540)

    The big problem with XHTML is that the W3C was wasting their time with this format that offers dubious benefit, made browsers more complicated, on the assumption that older versions of HTML would just... I dunno... magically go away. (At which point, browsers could be made simpler again.) Oh, and of course they didn't bother to figure out what actual websites on the actual Internet need, so it's incompatible with a ton of hugely popular tags. (For example, Atlas Universal Action Tags don't validate in XHTML Strict.)

    Oh boy. I can do a XLST transform on my homepage. That gets me... what exactly?

    Not that I'm really that opposed to XHTML, what pisses me off most is that they were working on this useless thing when they could have been actually working on HTML5 in the first place.

Top Ten Things Overheard At The ANSI C Draft Committee Meetings: (5) All right, who's the wiseguy who stuck this trigraph stuff in here?

Working...