background preloader

Coding An HTML 5 Layout From Scratch - Smashing Coding

Coding An HTML 5 Layout From Scratch - Smashing Coding

Understanding aside Please note aside has been redefined since this post was written, please read the updated article. HTML 5 offers a new element to mark additional information that can enhance an article but isn’t necessarily key to understanding it. However, in the interpretation of <aside> there lies confusion as to how it can be used, and with that there is demand for the Doctor to step up and clear the air. In this article I will look at what <aside> was created for, including sample uses and how not to use this useful, misunderstood element. First, a look at how the HTML 5 specification defines <aside>: The aside element represents a section of a page that consists of content that is tangentially related to the content around the aside element, and which could be considered separate from that content. What can often trip-up someone reading the specification is the use of the word “sidebar”. How strict should this relationship be? Example Uses Incorrect use of <aside> Closing Thoughts

In Unix, how do I use the scp command to securely transfer files between two computers In Unix, you can use SCP (the scp command) to securely copy files and directories between remote hosts without starting an FTP session or logging into the remote systems explicitly. The scp command uses SSH to transfer data, so it requires a password or passphrase for authentication. Unlike rcp or FTP, scp encrypts both the file and any passwords exchanged so that anyone snooping on the network cannot view them. Syntax The syntax for the scp command is: scp [options] username1@source_host:directory1/filename1 username2@destination_host:directory2/filename2 The location of the source file is specified by username1@source_host:directory1/filename1 , which includes the: Name of the account on the host computer (username1) Hostname of the computer on which the source file resides (source_host) Name of the directory containing the source file (directory1) Filename of the source file (filename1) Note: Make sure to include a space between the source and destination paths. man scp Examples

HTML 5 Templates, HTML 5 canvas, HTML5 video, HTML 5 XHTML, HTML HTML5 enabling script 7 Jan Since HTML5 is getting more attention by way of marking up our new pages, and the only way to get IE to acknowledge the new elements, such as <article>, is to use the HTML5 shiv, I’ve quickly put together a mini script that enables all the new elements. Download html5shiv.js and must be inserted in the head element (this is because IE needs to know about the element before it comes to render them – so it can’t sit in the footer of the page, i.e. below the elements in question). I’ve updated this post to link to Alexander Farkas’s version of the shiv – it’s the very latest and my simple one line script. The one I originally released was (I thought) beautifully small, but didn’t support print styles nor dynamic injection of HTML5 elements. Good thing there are smarter folk than I!

JavascriptTips - jslibs - JavaScript language advanced tips and tricks - standalone JavaScript development runtime environment with general purpose native libraries These tips and tricks are not related to any web browser or any Document Object Model (DOM), they are only general purpose tips and tricks for the JavaScript language. Some of these tricks are using a latest version of JavaScript language (v1.8) and cannot run with the Microsoft Implementation of JavaScript (v1.5). All these tricks has been tested with the Mozilla SpiderMonkey/TraceMonkey JavaScript engine (v1.8). You can try these examples using jshost, a command-line JavaScript interpreter. If you need more explanation about one of the following tips, don't hesitate to ask me or use the comment section at the end of this page. See the TOC at the end of the page. Append an array to another array var a = [4,5,6];var b = [7,8,9];Array.prototype.push.apply(a, b); uneval(a); // is: [4, 5, 6, 7, 8, 9] Milliseconds since epoch +new Date() // 1259359833574 Simulate threads using yield operator JavaScript 1.7 //// thread definitionfunction Thread( name ) { for ( var i = 0; i < 5; i++ ) { prints: note output:

HTML5 This specification defines the 5th major version, second minor revision of the core language of the World Wide Web: the Hypertext Markup Language (HTML). In this version, new features continue to be introduced to help Web application authors, new elements continue to be introduced based on research into prevailing authoring practices, and special attention continues to be given to defining clear conformance criteria for user agents in an effort to improve interoperability. This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current W3C publications and the latest revision of this technical report can be found in the W3C technical reports index at This document was published by the Web Platform Working Group as a W3C Recommendation for HTML 5.2 that would obsolete the HTML 5.1 Recommendation. This document was produced by a group operating under the W3C Patent Policy.

HTML5 and The Future of the Web - Smashing Coding Advertisement Some have embraced it1, some have discarded it2 as too far in the future, and some have abandoned a misused friend3 in favor of an old flame in preparation. Whatever side of the debate you’re on, you’ve most likely heard all the blogging chatter surrounding the “new hotness” that is HTML5. It’s everywhere, it’s coming, and you want to know everything you can before it’s old news. Things like jQuery plugins, formatting techniques, and design trends change very quickly throughout the Web community. When looking for some stability, we can usually turn to the code itself as it tends to stay unchanged for a long time (relatively speaking). In this article, I’m hoping to give you some tips and insight into HTML5 to help ease the inevitable pain that comes with transitioning to a slightly different syntax. Welcome to HTML5. What are the basics? The DOCTYPE When I first started researching HTML5 a few months ago, one of the main things I struggled to find was the doctype. Conclusion

AJAX Suggest Front End The front end of the AJAX Suggest Tutorial is pretty straight forward. There is one form with a textbox for entering the search query, a button for submitting the search, and a DIV that we will display our suggested searches in. The only thing that should look a little strange to you is the autocomplete="off" command. This just stop the default behavior of most modern web browsers from listing a set of terms that you have recently entered in the textbox. This would end up interfering with our auto suggest dropdown we will create with the DIV. The onkeyup event will start our AJAX request to check the server for suggestions. As you can see, for the tutorial I have the form submitting to the Search page of DynamicAJAX. We will also create a couple of styles in the header and include our JavaScript file that we will create later on in the tutorial. After our textbox and button, we will add our suggestion DIV. This DIV will have some styling applied to it in order for it to appear right.

40 New JavaScript Tutorials with Helping Techniques We are like to presenting some useful JavaScript tutorials, jQuery snippets, libraries, articles, tools and resources, we’re today with some latest techniques about javascript. In this round-up we sharing calendars, forms, buttons, navigation, debugging, optimization and compatibility tables as well as handy resources and tools. We also cover various jQuery-plugins that will help you extend the functionality of your website development and improve user experience with ready components or coding solutions. Most of the Web Developers and Designers are using mostly JavaScript as per latest design requirements, because now many modern techniques are available on world wide web, we always follow various web techniques and scripts for best user experience, we sharing most wanted JavaScript Tutorials as per modern web needs. Hope you like all listed tutorials which will more helping in your web development, you may share your own experience about js (JavaScript) here as comment. SlideViewer

Xtext - Download Build the Language You Want! Xtext can build full-featured text editors for both general-purpose and domain-specific languages. In the background it uses the LL(*) parser generator of ANTLR, allowing to cover a wide range of syntaxes. Xtext editors have already been implemented for JavaScript, VHDL, Xtend, and many other languages. Compile to Whatever You Want! You define the target format to which your language is compiled. Highly Customizable The default behavior of Xtext is optimized to cover a wide range of languages and use cases. Single Sourcing The grammar definition language of Xtext is not just for the parser. Incremental Compiler Xtext is built to scale, so no matter if you have a few source files written in your language or hundreds of them, the IDE remains responsive and reacts smoothly to any text change. Compatible with Graphical Editors You can combine the text-based formats created with Xtext with many graphical editing frameworks, e.g.

CSS / DHTML Hybrid Navigation Bar Inspired by Eric Meyer's pure CSS menus and the recently re-vamped DevEdge, I created this hybrid of CSS and DHTML, based on a simple unordered-list. Since the core data is HTML, it degrades all the way back to white text on a black background. It's coded to work up to six levels deep, but this can easily be extended, with just two lines of CSS per additional level. The whole thing, including the list itself, weighs in at less than 10K! Please note this menu is of an experimental, and not entirely stable, nature; I later acheived much better results by abandoning behaviors and using minimal OO JavaScript instead. For Mozilla 1.0 RC2 or later, Opera 7 and Safari the menus work with pure CSS. For Windows Internet Explorer 5 or later, which doesn't support :hover on list-items, it uses a DHTML behaviour attached to the same element. One of these is a white background on the menu list containers, to stop events passing through them (!

TechCrunch A Collection of HTML5 Resources and Tutorials : Speckyboy Design Magazine By now everyone has heard of HTML 5 and its new functionalities. Pretty exciting isn't it… also a little daunting. Of course, there are two sides to the excitement, most developers love it, others feel it has come to soon and we are not ready for it. Introduction to HTML 5 Video This is an educational “Introduction to HTML 5″ video that goes over many of the major aspects of this new standard and the video is choc full of demos and sample source code. HTML5 + CSS3 = Awesome on Vimeo HTML5 is the next version of the web markup standard. CSS Code Structure for HTML 5: Some Useful Guidelines In this post they offer some useful guidelines about how to implement a well organized CSS code structure in view of the introduction of the HTML5 markup language. HTML 5 and CSS 3: The Techniques You’ll Soon Be Using In this tutorial, you are going to build a blog page using next-generation techniques from HTML 5 and CSS 3. Have a Field Day with HTML5 Forms Coding a HTML 5 Layout From Scratch Modernizr

Underscore.js

Related: