background preloader

HTML 5 and CSS 3

Facebook Twitter

Selectivizr - CSS3 pseudo-class and attribute selectors for IE 6-8.

Fixed Positioning

Surfin’ Safari - Blog Archive » WebKit Does HTML5 Client-side Da. Posted by Brady Eidson on Friday, October 19th, 2007 at 4:04 pm The current working spec for the HTML5 standard has a lot of exciting features we would eventually like to implement in WebKit. One feature we felt was exciting enough to tackle now even though the spec is still in flux is client-side database storage. So for the last few weeks andersca, xenon, and I have been cooking up an implementation! The client-side database storage API allows web applications to store structured data locally using a medium many web developers are already familiar with – SQL. The API is asynchronous and uses callback functions to track the results of a database query. Database.executeSql("SELECT * FROM test", function(result1) { // do something with the results database.executeSql("DROP TABLE test", function(result2) { // do some more stuff alert("My second database query finished executing!

") This initial implementation has some things missing from the spec as well as a few known bugs. HTML5 localStorage() – Part Three « PaperKilledRock.com. 11 May You should now have a good idea of how you can use localStorage yourself. However I promised we would create a simple html5 web app and thats what we are going to do. In this post we are going to get our app setup and ready for use. This means it will allow a user to create new entries in their database, display all the entries and allow them to delete a specific entry or remove all entries. First we will take what we learned in the last post and write the function that will allow a user to create a new database entry. Snippet CopiedCopy to Clipboard Not much new here that we haven’t already gone over. Now that we have a way for a user to add new items to the app we still need a way to list all the items in the database.

Nothing to crazy going on there but lets go over the javascript anyways. Our time tracking web app is finally taking shape. The list item now has a delete icon with a class of .delete which we will bind to a .click. We can finally see this web app taking shape. Safari Client-Side Storage and Offline Applications Programming Guide: HTML 5 Offline Application Cache. Use the offline application cache to store HTML, JavaScript, CSS, and media resources locally, to create web-based applications that work even when a returning user is not connected to the Internet. You can also use the offline application cache simply to store static resources locally, to speed access to your website and lessen the server load when a user returns to your site. The offline application cache lets you create web apps—such as canvas-based games, e-readers, and JavaScript calculators—that people can return to your site and continue to use even when they have no internet connection.

To use the offline application cache, you must create and declare a manifest file. The manifest file is a text file that contains a list of resources to be cached. Declare the manifest file in your HTML using the manifest attribute: When you specify a manifest file, you are telling Safari that your website is designed to operate offline. Creating a Manifest File The CACHE Section The NETWORK Section. Cross-Browser Testing: A Detailed Review Of Tools And Services - Advertisement As you probably know, cross-browser testing is an important part of any developer’s routine. As the number of browsers increase, and they certainly have in recent years, the need for automatic tools that can assist us in the process becomes ever greater.

In this article, we present an overview of different cross-browser testing applications and services. Surely, you are already familiar with some of them, and you may have even stumbled across another overview article, but this one takes a different approach. This is not just a list of available tools, but rather a comprehensive analysis based on my experience with each of them.

Probably the most important metric of these services is the capture delay, which I measured for the URL stackoverflow1, with the following browsers enabled: Firefox, IE, Chrome and Safari. BrowserShots BrowserShots2 is the oldest and best known free online multi-browser screenshot service. The interface is not very user-friendly. Conclusion BrowserCam. JS Bin - Collaborative JavaScript Debugging. Dan Rubin's SuperfluousBanter. HTML5 Readiness. When can I use...

Video Tag

C HTML5 Logo. The Movement You're excited about HTML5; we are too. You've not just been enjoying the HTML5-powered web already — you're building it! As adoption and inspiration spreads, the web community will find creative ways to apply HTML5 and related technologies, spark trends, and capture best practices. As momentum builds, we hope you bring this logo along for the ride and paint the world orange. You know that HTML5 badge you've placed oh-so perfectly in your footer? Tweet your HTML5 logo sightings with the hashtag #html5logo. HTML5 canvas graph library - bar chart.

Examples

Techniques. Create offline Web applications on mobile devices with HTML5. Adaptive & Mobile Design with CSS3 Media Queries. Screen resolution nowsaday ranges from 320px (iPhone) to 2560px (large monitor) or even higher. Users no longer just browse the web with desktop computers. Users now use mobile phones, small notebooks, tablet devices such as iPad or Playbook to access the web. So the traditional fixed width design doesn't work any more.

Web design needs to be adaptive. The layout needs to be automatically adjusted to fit all display resolution and devices. This tutorial will show you how to create a cross-browser responsive design with HTML5 & CSS3 media queries. View Demo Responsive Design Download Demo ZIP See It in Action First Before you start, check the final demo to see how it looks like. More Examples If you want to see more examples, check out the following WordPress themes that I designed with media queries: Tisa, Elemin, Suco, iTheme2, Funki, Minblr, and Wumblr. Overview The page's container has a width of 980px which is optimized for any resolution wider than 1024px. HTML Code HTML5.js Step 1 Demo. jQuery Sparklines. News 15 June 2013 - Version 2.1.2 Relased This release adds support for jQuery 1.10.0 and other bug fixes and minor improvements. See the full changelog for details of all changes. 26 January 2013 - Version 2.1.1 Relased This release adds support for jQuery 1.9.0 along with a couple of other bug fixes.

If you're using a version of jQuery later than 1.8, be extra sure you're not rendering your page in quirks mode to avoid breaking tooltips for IE users. See the full changelog for details of all changes. 15 October 2012 - Version 2.1 Released This release is primarily a bug-fix release, but also adds support for Internet Explorer 10. See the full changelog for details of all changes. 29 April 2012 - Version 2.0 Released This release represents a significant code update.

Customizable mouseover tooltips and interaction including highlighting of moused-over values. It should be fully backwards compatible with the 1.x versions with the following exceptions: There's a few non-code updates as well: eg. Websites Shouldn't Look The Same Across Different Browsers…Here Is Why. Aug 11 2011 Not long ago, on our sister site Smashing, we had a post discussing the communities adoption of HTML5 and CSS3 before they have become standards, and during that dialog we stumbled across another point that needed a bit more diving into.

It was proposed that client’s expectations are somewhat unrealistic when it comes to their websites looking the same across all browsers and systems. This is not only something that the client is more than likely not going to be too happy to hear, but as it turns out, this is also a topic that some of us in the design and development communities are uncomfortable broaching with our clients. We believe that the client will not want to hear what we have to say or that they will see this as a positive, so we often refuse to speak such evil. Image Credit For whatever reasons, some members of the community, who may believe in this idea themselves, find it nearly impossible to explain to the client so they make no attempts to. Vendors and Standards. Microformats. In this reference, we cover the standards (or, to use the W3C’s parlance, recommendations) that apply to HTML/XHTML elements and attributes.

If you’ve read through all that information, you may have found yourself thinking from time to time, “Well, that’s all well and good, but how do I mark up the address of the place I live?” Or perhaps you’ve wondered “How should I mark up something like the date of an event?” If you’ve had any thoughts along these lines, you’ll be pleased to hear that these are situations in which Microformats apply. In the current flavours of HTML and XHTML, there are a number of elements that appear, in today’s environment, to be mostly irrelevant. For example, when can you see yourself using the xmp or tt elements? Now, those paying attention—and those who have devoured the contents of this reference from go to woah—may well be saying at this point, “Ah, but there is an element for addresses. Enter: Microformats. Google Maps and hCard. 6.6 Offline Web applications — HTML5 (including next generation. 6.7 Offline Web applications 6.7.1 Introduction This section is non-normative.

In order to enable users to continue interacting with Web applications and documents even when their network connection is unavailable — for instance, because they are traveling outside of their ISP's coverage area — authors can provide a manifest which lists the files that are needed for the Web application to work offline and which causes the user's browser to keep a copy of the files for use offline. To illustrate this, consider a simple clock applet consisting of an HTML page "clock.html", a CSS style sheet "clock.css", and a JavaScript script "clock.js". Before adding the manifest, these three files might look like this: <! /* clock.js */ setInterval(function () { document.getElementById('clock').value = new Date(); }, 1000); If the user tries to open the "clock.html" page while offline, though, the user agent (unless it happens to have it still in the local cache) will fail with an error.

<! An application cache. Graceful Degradation & Progressive Enhancement - Accessites.or. Choosing a Method Both graceful degradation and progressive enhancement obviously assist in making a website accessible, yet providing additional usability for those who can take advantage of it. So which one should we choose? Progressive enhancement is usually preferable to graceful degradation, for the same reason that structural design usually leads to better accessibility than visual design: it starts with the simple basics and adds embellishments on top of that. When designing something from scratch, we should definitely think in terms of progressive enhancement.

If we are maintaining an existing site, trying to improve accessibility and standards conformance, the situation is different. Unless we want to rewrite everything, our only choice is to provide graceful degradation as best we can. Of course it is also possible to mix both methods on one site, or even on the same page. Testing Testing the accessibility is much easier with progressive enhancement than with graceful degradation. The CSS 3 Flexible Box Model ✩ Mozilla Hacks – the Web developer. This article about the Flexible Box Layout was written by Jérémie Patonnier, French open Web enthusiast.

The flexible box model CSS 3 introduces a brand new box model in addition of the traditional box model from CSS 1 and 2. The flexible box model determines the way boxes are distributed inside other boxes and the way they share the available space. You can see the specification here. This box model is similar to the one used by XUL (the user interface language used by Firefox). Usually the flexible box model is exactly what you need if you want to create fluid layouts which adapt themselves to the size of the browser window or elastic layouts which adapt themselves to the font size. In this article, all my examples are based on the following HTML code: Distributing boxes: so what?

By default, the traditional CSS box model distributes boxes vertically depending on the HTML flow. Horizontal or vertical distribution Reversed distribution Explicit distribution And what about flexibility? Box sizing. Rendera - Online HTML5 Editor. Useful HTML Meta Tags - cache, no-cache, robots, refresh, content, keywords, description, expires, author, etc.