HTML & XHTML Tutorials
9: Gestures On the iPhone, gestures are two-finger actions: scaling (zoom in and zoom out) and rotation. We learned above that the touches and targetTouches events contain information about each... Read More
4: Orientation Changes Your pages and apps can be viewed in two orientation modes: portrait and landscape. It could be useful for your app to react to changes in the orientation. Using JavaScript you... Read More
Itching to get started with iPhone development? In this tutorial, Stoyan Stefanov introduces us to some tips and tricks you can use to kickstart your journey to building web apps for the iPhone.Read More
Class Selectors To date, we’ve discussed the ways in which we can style various elements, such as paragraphs and headings; we’ve also seen how we can style elements in specific areas of... Read More
Which Rule Wins? When we added the grouped declaration for the headings, we changed some styles that we’d set previously. A look at the source shows that the level two heading, h2, has been set... Read More
Looking at Elements in Context Here’s a riddle for you: which of these items is bigger? A pen or a sheep? Well, the answer is either, depending on the context. If you were a farmer, you’d... Read More
A Beginner’s Palette of Styling Options We’ve looked at some examples of styles that can be applied to your web pages through CSS, but the examples we’ve seen have been a mixed bag... Read More
A Mixture of New Styles Let’s change the look of the site a little more — we’ll add more styles to the body, and change the look of the navigation. Copy the CSS below into your... Read More
Starting to Build Our Style Sheet The style sheet is ready to be used: it’s saved in the right location, and all of your web pages (all three — count ‘em) are linked to it... Read More
External Style Sheets Why External Style Sheets Are Better than Embedded Styles An external style sheet provides a location in which you can place styles that can be applied on all of your web pages.... Read More
Adding Inline Styles Open about.html in your text editor, and add an inline style. We want to make the text in the first paragraph after the “About Us” heading bold and blue. Refer to the... Read More
Chapter 3. Adding Some Style Earlier in this article, we stepped through the process of setting up your computer so that we could develop web sites, and pulled together the beginnings of a web site... Read More
Splitting Up the Page We’ve been making good progress on our fictitious site … but is a web site really a web site when it contains only one page? Just as the question, “Can you... Read More
Adding Structure Paragraphs? No problem. Headings? You’ve got them under your belt. In fact, you’re now familiar with the basic structure of a web page. The small selection of tags that... Read More




